Hi,
I have a project in which I set a property based on the user's selection of a radio button. The way it works is I have a Radio Group called RADIO_GROUP with two Radio buttons called RadioA and RadioB with values of RadA and RadB respectively. I have a published event which checks the value of the selected Radio button and sets a property MY_PROPERTY to one of two values based on the user's selection.
This works fine for the GUI. However, we want to automate the installation of the MSI using msiexec and limiting the the GUI to the basic user interface. What I would like to do is set the RADIO_GROUP property to either RadA or RadB in order to set the MY_PROPERTY value. OK, so I hear you ask, why not set the MY_PROPERTY value directly? Because in the real world, the string I need to set is too long and we wouldn't want installers to set this value to something arbitary, it needs to be one of two values only.
When I set the RADIO_GROUP property to "RadA" or "RadB" the MY_PROPERTY is not set. Is there a way to set this property based on the value of the RADIO_GROUP property when running the install using msiexec?
msiexec /i MyInstaller.msi RADIO_GROUP="RadA" - does not set the MY_PROPERTY to the text required when RadA is requested.
Glenn
FOLLOW US
Get the latest news in Application Packaging