Search code examples
build-processinstallshieldinstallshield-2010

InstallShield: Setting a Custom Action's Property Value from a Release Property


I'm trying to automate InstallShield from my build process, and I need to set a type 51 Custom Action's Property Value from my Release's Product Configuration Flags property. What is the syntax (something in square brackets?) to do that?

From here... alt text

...to here: alt text


Solution

  • You'll probably need to do a string replace on the InstallShield project to pull this off:

    1) Under General Information | Project File Format, set the format to "XML", and save the project.

    2) Next write a script to search the xml file for the name of your custom action, and replace the value with your Product Configuration Flags.

    We've used this straightforward technique to change a number of properties at build time, including version numbers.