How can I execute a .EXE that contains an .MSI from another .MSI?

Article:HOWTO3760  |  Created: 2006-06-05  |  Updated: 2009-11-10  |  Article URL http://www.symantec.com/docs/HOWTO3760
Article Type
How To



Question
How can I execute a .EXE that contains an .MSI from the .MSI?

Answer
Nested Installations are not recommend by Microsoft. The .EXE file will reside on the CD in the same directory as the .MSI.

1.  Use a Execute Program from Path action to launch the .EXE wrapped .MSI
2.  Place this custom action after Cost Initialize in the User Interface.  (The User Interface is the only script that a .MSI can be launched in without creating a nested installation).
3.  Place a condition around the custom action to ensure that the Custom Action only executes in specific cases.  Example:  If a System Search is used to determine if the Custom Action should launch, use an If Statement around the custom action that checks the property.

If <SEARCHPROPERTY> then
Execute Program from Path
End Statement

Note: if this .EXE that launches an .MSI needs to be run to have your installation complete, you cannot run the main .MSI silently, as  the User Interface section is not run during a silent installation.




Legacy ID



23301


Article URL http://www.symantec.com/docs/HOWTO3760


Terms of use for this information are found in Legal Notices