PDA

View Full Version : XML file is overwritten



DLee65
01-29-2016, 01:31 PM
I have a MSI project file that includes a component that is used to manage our application configuration file, called SystemSettings.xml.
During a clean install all is good, the file is installed and configured correctly.
During an upgrade, all is good. The file is not overwritten.
If I uninstall, the file is left behind, exactly as I want.
However, when I reinstall, the file is overwritten with default values!

I checked the msi log file and the components are not flagged for install. BUT apparently the script to run the XML executes.

Here is a part of the log file:

InstallShield 12:59:03: Attempting to determine component state for SystemSettingsClient.xml
InstallShield 12:59:03: Install state of component is 2, action is ffffffff
InstallShield 12:59:03: Attempting to determine component state for SystemSettingsClient.xml
InstallShield 12:59:03: Install state of component is 2, action is ffffffff
InstallShield 12:59:03: Attempting to determine component state for SystemSettingsMain.xml
InstallShield 12:59:03: Install state of component is 2, action is ffffffff
InstallShield 12:59:03: Attempting to determine component state for SystemSettingsMain.xml
InstallShield 12:59:03: Install state of component is 2, action is ffffffff

After install, since the component action is ffffffff, I do not expect the process to write xml to execute. However, when I check my xml file after, the values are all reset to the defaults.

I have not tried this yet on a new install package yet to see if I can reproduce it.

Is there something else I need to do to manage this one scenario?
Thanks.