Is it possible to make a small code snippet. Thanks.

The link also says --

SourceDir Property
The SourceDir property is the root directory that contains the source cabinet 
file or the source file tree of the installation package. This value is used 
for directory resolution.

Default Value

The directory that contains the installation package.

Remarks

The ResolveSource action must be called before using the SourceDir property in 
any expression or attempting to retrieve the value of SourceDir with 
MsiGetProperty. The ResolveSource action should not be run while the source is 
unavailable, such as when uninstalling an application, because this can cause 
an unintended prompt for the source media.


Arun Perregattur

-----Original Message-----
From: Alexander Shevchuk (Volt) [mailto:a-ale...@microsoft.com]
Sent: Monday, December 28, 2009 8:04 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

SourceDir property - 
http://msdn.microsoft.com/en-us/library/aa371857(VS.85).aspx
It will be resolved to a root dir of the installation package (whatever it 
might be - CD ROM or admin installation somewhere on the network share, etc.), 
but be careful - you may get undesired prompts for source.




-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Monday, December 28, 2009 3:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

CA Type 34 - does it give me the D:\ drive (CD ROM Drive). If it does then half 
problem is solved.

Yes, I wish bootstrapper - I do have it but got to remove it, well requirements 
are that we need to install items on demand based on user selection.



Arun Perregattur


-----Original Message-----
From: Alexander Shevchuk (Volt) [mailto:a-ale...@microsoft.com]
Sent: Monday, December 28, 2009 5:44 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

You need CA Type 34 
(http://blogs.technet.com/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx)
 and use [SourceDir] (instead of [cdromdir]).
Still, bootstrapper is probably a better choice to install SQL prerequisite.



-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Monday, December 28, 2009 2:09 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

Thanks, I will try that.

I was thinking of using a CustomAction to run the external program, which I 
already do for creating a database from the installed folder, but all I wanted 
is access CDROM drive (Source Drive) to execute a CustomAction. I thought that 
can be done?




Arun Perregattur

-----Original Message-----
From: Chad Petersen [mailto:chad.peter...@harlandfs.com]
Sent: Monday, December 28, 2009 4:20 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

Don't take what I said the wrong way. WiX is just an MSI authoring tool,
and as such has many of the same or comparable capabilities that
InstallShield does (I've used both and much prefer WiX). It's just that
launching one installer from within another is not something Microsoft
supports or allows with the current MSI technology (InstallSheild or
WiX). However, if your Setup.exe doesn't ultimately run an MSI, then
maybe.

Snag a verbose log file and see what is says. We use a Setup.exe that
launches our installer with logging, as a verbose log file is critical
for debugging many issues.

Good luck with your project.

-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Monday, December 28, 2009 11:52 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

In InstallShield, its very simple I can literally launch any program
using LaunchAppAndWait(SOURCEFOLDER\SQLServer2008\setup.exe) but here I
can't find any tutorials or sample or even a code snippet to say you can
do that.

Arun Perregattur


-----Original Message-----
From: Chad Petersen [mailto:chad.peter...@harlandfs.com]
Sent: Monday, December 28, 2009 2:25 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

You can't generally launch one install program from within another.
However, I am not familiar with the specifics of this scenario, so,
maybe?

-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Monday, December 28, 2009 10:23 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install external program from CDROM drive

Anyone?

Arun Perregattur

From: Arun Perregatturv
Sent: Monday, December 28, 2009 10:15 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Install external program from CDROM drive

I searched all over the Wix but couldn't find anywhere how to install
application from cdrom drive.

I have wix install which should install SQL Server 2008 based on user
selection. Say, if user selects client install I don't have to install
SQL Server but if he selects Server install then I have to install it
and SQL Server folder is on the CD.

CD ROM Directory structure looks like this
CD\Setup.exe - Wix Installer with BootStrapper to Install .NET
Framework.

CD\SQLSERVER2008 - this folder includes x86 and x64 installer for SQL
Server 2008 Express Edition.

I need one to install SQL Server from the CD Folder.

Something like
<var.Platform = x64>
<CustomAction Id="InstallSQLx64"
                FileKey="[cddromdir]\SQLServer2008\SQLEXPR_x64_ENU.EXE"
                ExeCommand ="/q /hideconsole /action=Install
/features=SQL /INSTANCENAME=MSSQLSERVER /TCPENABLED=1 /SECURITYMODE=SQL
/SAPWD="****"  /enableranu=1 /sqlsvcaccount= "NT Authority\System"
/SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
/skiprules=RebootRequiredCheck"

<var.Platform = x86>
<CustomAction Id="InstallSQLx86"

FileKey="[cddromdir]\SQLServer2008\SQLEXPR32_x86_ENU.EXE"
                ExeCommand ="/q /hideconsole /action=Install
/features=SQL /INSTANCENAME=MSSQLSERVER /TCPENABLED=1 /SECURITYMODE=SQL
/SAPWD="****"  /enableranu=1 /sqlsvcaccount= "NT Authority\System"
/SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
/skiprules=RebootRequiredCheck"

Is this possible?

Thanks,
Arun Perregattur

------------------------------------------------------------------------
------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to