I'm currently using part of an installer to update XML keys in various locations within the installer/s.
The current Scenario is as follows: IIS Server application.
1. During install, the user selects http or https using a combo box and this populates a variable called 'IIS_PROTOCOL'.
2. Depending on what the user selects, a second variable called 'USER_PROTO' is populated with a '0' for http or a '1' for https.
3. Both variables are used in the XML files to populate various keys, for example key "User_Proto" value = [USER_PROTO] (which ends up populating the XML field with a '0' or '1' depending on user choice at install time.
Previous method was to update the XML key with a '1' by setting a condition on the Element Settings of the Edit XML File dialogue.
So for example the source XML file would have a key set such as key "User_Proto" value ="0"
The value would be updated if the user during install had decided upon https and there for the condition would be to set the value to "1" if 'IIS_PROTOCOL' =1
The problem is (and this is why we now have the current scenario) this only works correctly if the underlying source has a value = '0' to begin with.
So here is my question, should i move back to the original method and put in two elements per variable, ie. with conditions for http (0) and https (1) just in case the XML source is a 0 or a 1,
or is the current scenario fine.
Thanks in advance.
FOLLOW US
Get the latest news in Application Packaging