UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Is it possible to pass a file of properties to an .msi ?

We have some testing automation that installs the .msi file automatically. We're configuring various parameters by passing property=value arguments on the command line. The problem is the command line is getting too long for Windows. Is it possible to create a file of property=value pairs, and pass that file to an installer ?
Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this cannot be done with a file which holds the properties because it is not supported by Windows Installer.

However, there are two workarounds:
1) You use transforms for the MSI package. For this you follow these steps:
- open the MSI with Orca
- go to the "Transform" menu and select "New Transform"
- edit the values of the properties and set them to the values you need
- go to the "Transform" menu and select "Close Transform"
- save the transform
- when you launch the MSI you use the transform like this:

Code: Select all

msiexec /i my_package.msi TRANSFORMS=my_transform.mst
2) You use a custom action which parses a file that contains the properties with their values. This custom action will set the properties in the package and it should be scheduled as early as possible in the "Custom Actions" page.
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”