Preserving files when Uninstalling - Advanced Installer Community
stanlyn
Posts: 3
Joined: Sat Jan 16, 2016 8:38 pm

Preserving files when Uninstalling

Hi,

How do I deal with preserving (not uninstalling) the users data files when uninstalling the program? I see no references to it. I was expecting to find it in the "Folders and Files" section when right clicking a file or folder, however its not there. I have some InstallShield experience and that is how they do it... It is not that intuitive here...

Thanks,
Stanley
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving files when Uninstalling

Hi Stanley and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve this you can right-click on a folder, select "Properties", then go in the "Operations" tab and check the "Do not overwrite existing files" option. If you want the files to be preserved only during an upgrade, you can use this condition: OLDPRODUCTS

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stanlyn
Posts: 3
Joined: Sat Jan 16, 2016 8:38 pm

Re: Preserving files when Uninstalling

Hi Eusebiu,

Thanks for your reply...

The operation I'm needing has little to do with overwriting files or folders. I need the ability to selectively delete some files in the data folder and preserve others upon user uninstalls or update the product.

Currently, when the product is uninstalled, it deletes everything including the install folder. So, are you saying that the uninstaller will NOT delete any files or folders set the you have indicated with the OLDPRODUCTS as condition?

Same with updating, data file we supply needs to be overwritten and files that contains client data needs to remain and if they need updating, I'll have a script that does that.

Thanks,
Stanley
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving files when Uninstalling

Hi Stanley,

If you set the "Do not overwrite existing files" option with the "OLDPRODUCTS" condition, the files will be preserved only during an upgrade. If you want them to be also preserved during a complete uninstall, you do no need to set that condition anymore.

When the "Do not overwrite existing files" option is set the existing files are backed up before the uninstallation starts and they are restored after the uninstallation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”