How about setting an MSIProperty? <Bundle ... > <Variable Name="IniPath" Type="string" bal:Overridable="yes" Value="" Persisted="yes"/> <MsiPackage ... > <MsiProperty Name="INIPATH" Value="[IniPath]"/> </MsiPackage> </Bundle>
Using this method you can also change the path from within your bootstrapper application, if you have one, and the user can also set it when calling the bootstrapper. Hope this helps! Best regards, Chris Adkins -----Original Message----- From: Jerome [mailto:jero2r...@gmail.com] Sent: Dienstag, 8. April 2014 13:58 To: General discussion about the WiX toolset. Subject: [WiX-users] SqlExpress Exepackage InstallCommand ConfigurationFile How to pass .ini configuration file to InstallCommand for a SQLEXPR_x64_ENU.exe ExePackage element. <ExePackage Id="SQLExpressx64" Name="SQLEXPR_x64_ENU.exe" DisplayName="Microsoft(r) SQL Server(r) 2008 R2 SP2 - Express Edition x64" SourceFile="$(var.PreRequisites_x64)SQLEXPR_x64_ENU.exe" InstallCommand="/ConfigurationFile=$(var.PreRequisites_x64)ConfigurationFileSQL2008ExpressR2SP2.ini" InstallCondition="Not SqlInstanceFoundx64 AND Not SqlInstanceFoundx64Express AND Not SqlInstanceFoundx86 AND Not SqlInstanceFoundx86Express AND VersionNT64" DetectCondition="SqlInstanceFoundx64" Cache="no" Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes"> <Payload Id="ConfigurationFileSQL2008ExpressR2SP2" Compressed="yes" SourceFile="$(var.PreRequisites_x64)ConfigurationFileSQL2008ExpressR2SP2.ini" Name="ConfigurationFileSQL2008Express" /> </ExePackage> I have a lot of install parameter to pass. Which I have put in the configuration file. If I give absolute path then I get the following error: Applying execute package: SQLExpressx64, action: Install, path: C:\ProgramData\Package Cache\E768A3B70E3F3B596EFFA9F57D812F95C0A0506B\SQLEXPR_x64_ENU.exe, arguments: '"C:\ProgramData\Package Cache\E768A3B70E3F3B596EFFA9F57D812F95C0A0506B\SQLEXPR_x64_ENU.exe" /ConfigurationFile=SomePath\ConfigurationFileSQL2008ExpressR2SP2.ini' ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users