TheSaint
Posts: 4
Joined: Tue Dec 26, 2006 11:27 pm

Preserving xml file across upgrades

Hi I know Microsoft doesn't want you to use xml files for settings, but we do it anyway, so there. The problem we have on upgrades is, the old settings get overwritten. We were using vbs script files to copy and restore settings on upgrades, until Vista was released. Then we learned that Vista virtualizes the /program files/app directory, so changes made to xml files by the application aren't actually written there, which breaks the whole backup/restore scheme.

And we thought we could use a static version number for ai to get it to avoid replacing the xml file, no luck there.

So the generic question is, is there someway to get ai NOT to replace an xml file, or for that matter any file?

TIA
Daniela Petrescu
Posts: 30
Joined: Tue Aug 14, 2007 10:03 am

Hi,

Advanced Installer has a "How To's" tutorial that guides you step by step.
For more details please see the following page http://www.advancedinstaller.com/user-g ... le-ca.html

However those scripts do not work correctly in Windows Vista. Please contact us on support at advancedinstaller dot com and will shall give you a version that works correctly in Vista.

Regards,
Daniela

_________________
Daniela Petrescu
Advanced Installer Team
http://www.advancedinstaller.com
paodelta
Posts: 15
Joined: Thu Jan 25, 2007 12:50 pm
Location: Italy

How do I prevent a file from being replaced...

I need the updated scripts that work correctly in Windows Vista as the restore script fails with "Permission denied error" while executing the copy to the original folder.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The Backup/Restore scripts have been updated and improved:
  • both scripts are generic (the files/folders on which they operate are specified through Properties) and modifying their code is not required
  • both scripts work correctly on Vista
  • optionally, it is possible to specify a new location for each file/folder (where it should be restored to)
  • debug messages are written to the WI log file
The scripts, sample projects and instructions can be found here:
http://www.advancedinstaller.com/user-g ... le-ca.html

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”