Backup config file....possible ??
Posted: Mon Oct 15, 2012 1:09 pm
Hi.
I need to have the msi backup (ie copy) an existing config file before installation. This will allow us to install a newer MSI and not loose the current configuration.
Example: Version 1.2 of software installed and working. Config file is stored in C:\Program Files\MySoftware\config.config
Version 1.3 of the msi needs to copy this config.config file first, before installing. This will allow us to install version 1.3 'on top' of version 1.2, thus updating everything. And since we would have a copy of the config.config file (say it was copied to C:\Temp); we can copy back this config file and away we go.
Is this possible ? It seems like when I lauch the 1.3 installer, it removes 1.2 FIRST. Thus using 'Run Program' to copy the config file doesn't work as the files from 1.2 are already removed at this point.
Thoughts ?
Thanks!
Patrick.
I need to have the msi backup (ie copy) an existing config file before installation. This will allow us to install a newer MSI and not loose the current configuration.
Example: Version 1.2 of software installed and working. Config file is stored in C:\Program Files\MySoftware\config.config
Version 1.3 of the msi needs to copy this config.config file first, before installing. This will allow us to install version 1.3 'on top' of version 1.2, thus updating everything. And since we would have a copy of the config.config file (say it was copied to C:\Temp); we can copy back this config file and away we go.
Is this possible ? It seems like when I lauch the 1.3 installer, it removes 1.2 FIRST. Thus using 'Run Program' to copy the config file doesn't work as the files from 1.2 are already removed at this point.
Thoughts ?
Thanks!
Patrick.