Search code examples
registryinstallshield

Use installshield custom parameters in registry values


I am using Installshield, and Configure Target System > Registry I've added few registry entries. When installing it creates this entries. But I need put custom parameter as a value. Parameter which passed when installing.

Setup.msi /qb /l* log.txt DEFAULTPRINT="Printer1"

As I know it is possible in registry values put installation directory [INSTALLDIR] or %PATH% environment variable.

Question is how do I pass DEFAULTPRINT value to the registry value


Solution

  • Use the same approach; include [DEFAULTPRINT] in your registry value (see Formatted for details). Note that for this to work, you need to use a public property like you show (no lower-case characters in its name), and may also have to list its name in SecureCustomProperties (edit that property in the Property Manager).

    (If that doesn't work, run with /l*v and analyze the log to see if and where DEFAULTPRINT goes bad.)