hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Loading properties from an external file

Is it possible to load predfined values from an external file?

i know that properties can be specified when running msiexec from the command line, but is it possible to load them from an external file?

the purpose of this would be to simplify installation by skipping some dialog pages if certain properties are already defined
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Loading properties from an external file

Hello,

You can schedule a custom action on the Begin standard action in the InstallUISequence to set public properties in the installer at install time.

In VBScript, installer public properties can be set like this:

Code: Select all

Session.Property("YOUR_PROPERTY_NAME") = value
In a C++ DLL you can use the MsiSetProperty function.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”