I'm trying to combine my package in a single setup exe file and upload it to internet.
I have used a WIX bootstrapper (BURN) that contains project msi output, and pre-requisite .net framework 2.0, windows installer 3.1 , visual c++ 2005 redistributables, and microsoft report viewer. I have used WIX 3.6 in Visual studio 2008.
I have attached the msi file and prerequisites in the bootstrapper using following commands.
<ExePackage SourceFile ="ReportViewer\ReportViewer.exe" Compressed ="yes" Vital ="no" Permanent = "yes" />
<ExePackage SourceFile ="vcredist_x86\vcredist_x86.exe" Compressed ="yes" Vital ="no" Permanent ="yes"/>
<ExePackage SourceFile ="WindowsInstaller-KB893803-v2-x86.exe" Compressed ="yes" Vital ="no" Permanent ="yes"/>
<MsiPackage SourceFile ="myproject.msi" Compressed ="yes" ForcePerMachine ="yes"/>
Now the bootstrapper will compress all pre-requisites in a single exe.
Now i need to install the pre-requisites only when it is not exists already ?
How to write this install condition in the above. I have checked InstallCommand option but don't know how to use it ? Any code snippets for it ?