I want to support optional parameters for my installer. For example:
msiexec /i myinstaller.msi INSTALL_REG_ID="heij3jlncnlnlndjl"
And this installer will only create the registry key IF that parameter is supplied.
To accomplish this, I created the registry key entry with the key name I wanted based on the property:
/.../Extensions/[INSTALL_REG_ID]/
And a value under that key:
update_url = "https://www.someurl.com"
This works great when I supply INSTALL_REG_ID.
However, when I don't supply it, it automatically tacks the update_url value under the parent registry key (in this case "Extensions").
What I'd like is for that value to not be created at all when I don't supply the INSTALL_REG_ID property on the command line.
What's the easiest way to do this? Will it require a custom action to check for the existence of the property?
Thanks!