You can pack two msi files using iexpress.exe (the standard Window tool), and add a custom batch file that you set as the command to launch your iexpress package. The script package will determine the architecture and run the corresponding msi file:
if %PROCESSOR_ARCHITECTURE% EQU x86 ( echo "x86" call setup-x86.msi ) ELSE ( echo "x64" call setup-x64.msi )
Put this code in a batch file named installmsi.bat. Then, in the IExpress wizard, enter the following installation command:
cmd.exe /C installmsi.bat
Here you need to explicitly call cmd.exe , because otherwise IExpress will use the old command.com .
You probably also want to hide the package window, which you can do by setting the appropriate option in the IExpress wizard.
source share