Repair cause incorrect values to be written to XML file changes
We have a installer that does some XML file changes. One of the changes can be specified by the command line or entered into a text box in the GUI during installation. The value is a key from which the actual XML changes are derived by a custom action.
However, if we run a repair on the installation the XML changes are overwritten with our default values and thus the repair actually breaks the installation. I would have expected the entered values (CommandLine or GUI) to be persisted somehow, so that the repair feature would know what to do.
I don't have much experience with InstallShield and was wondering if anyone can guide me in a direction? Or how would one implement this?
Re: Repair cause incorrect values to be written to XML file changes
Hi @hugener ,
Here you can block the XML changes during the repair, and allow only during the installation. All the xml changes are done through the custom actions.
So, right click on the custom actions root node, and select Show All Custom Actions. Then you can find InstallShield's XML actions and change their conditions to prevent them from running. Condition to this XML custom actions can be set from the sequences tree, by selecting each xml custom actions and conditions grid will be listed in the right hand side.
examples for custom action conditions:
To execute a custom action only if the product has not been installed, check the value of the Installed property with this condition.