I have two custom dialogs (Ent ver) that collect several bits of info from the human installer. The goal is to set an app to use a specific IP address depending on the Network the user is installing the app on (as opposed to having a separate build for each network)
I have two static Install Parameters set;
ISSP01_AuditServerIP = 192.168.1.1
ISSP02_AuditServerIP = 10.10.10.1
The first custom dialog contains a radio button group called ID_ISSP_SYSTEM_ID
The two radio button values are ISSP01 and ISSP02
I also have an Edit Box that accepts input from the user at runtime, called ID_AssetTag.
The second custom dialog is sequentually immediately after the first.
I have a 'Static Text' control which is set to show the value ID_ISSP_SYSTEM_ID selected on the previous dialog. This works, at runtime it displays either ISSP01 or ISSP02 depending on the radio button chosen.
I also have an 'Edit Box' control called IDAuditServerIPEdit. This is where I want to display the appropriate IP address depending on the radio button choice.
I did this by adding two 'Init' Control Events on the second dialog.
Name: IDAuditServerIPEdit
Argument: [ISSP01_AuditServerIP]
Condition: ID_ISSP_SYSTEM_ID = "ISSP01"
and
Name: IDAuditServerIPEdit
Argument: [ISSP02_AuditServerIP]
Condition: ID_ISSP_SYSTEM_ID = "ISSP02"
At runtime this works properly.
For example-the dialog may look like this:
ISSP Lan ID: ISSP02
Audit Server IP Address: 10.10.10.1
It will update properly even if I go back to the previous dialog and change the option.
Thats it.
I have three registry values set for this install using the default registry settings:
Name: IP_ISSP01
Data: [ISSP01_AuditServerIP]
~
Name: Asset_Tag
Data: ID_AssetTag
~
Name: ISSP-SystemID
Data: ID_ISSP_SYSTEM_ID
The first entry is my test to ensure that I can store the IP address at all. (from the static Install Param.)
The second is the variable collected from the user via Edit Box on the first dialog.
The third, (my problem child)(calculated via the Init Event process) is not created at all. No Reg Value Name or Value Data.
There is no difference in the AI settings of any of the registry settings. They are all in the same key. Two contain essentially the same data (an IP address). All REG_SZ.
I figure the ID_ISSP_SYSTEM_ID variable was set correctly as it displayed correctly on the second dialog.
I even added a custom DoAction, UpdateMSIEditControls Publish event on the Next button of the second dialog. No change. Although I did not have to do this for the ID_AssetTag Edit Box/Registry update settings on the first dialog box to work.
I also tried to create an Environment Variable instead of a Reg entry. Same-no go.
The IDAuditServerIPEdit Edit Box is also intended to allow the human installer to override and manually enter an IP address if it were necessary, but that is secondary to getting the predefined IP addresses recorded. I would expect it to work though as the ID_AssetTag Edit Box worked as expected.
Anyway, I am at a loss for why this won't work and have spent many hours on it.
Help!
FOLLOW US
Get the latest news in Application Packaging