SimHorizon
Posts: 44
Joined: Sun Jan 31, 2021 7:11 am
Contact:  Website

How to prevent Uninstall from removing folders?

Thu May 06, 2021 8:08 am

I'm running a custom action on Uninstall that will prompt the user to keep or discard application data. Which works fine. However, AI will always remove the folders even if data in those folders have been modified by the user and more recent than the original files installed.

Reading your documentation and it seems the "recommended" process is to have my application generate the files (a simple copy) of the deployed originals.

Is this really the best way? I was hoping a simple "Prevent Removal/Uninstall" property under AI Files and Folders section right click the folder to select "Prevent Removal on Uninstall" ... but there is no such property?

Any hints?

Cheers, Rob.

SimHorizon
Posts: 44
Joined: Sun Jan 31, 2021 7:11 am
Contact:  Website

Re: How to prevent Uninstall from removing folders?

Thu May 06, 2021 7:59 pm

I was able to resolve this problem via this hint in your documentation ... using Method 1.
AIFilesAndFoldersSetting1.jpg
AIFilesAndFoldersSetting1.jpg (58.09KiB)Viewed 1916 times
Haven't tested with an upgrade/update yet, so will have to see if this is really going to work for me.

Cheers, Rob.

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: How to prevent Uninstall from removing folders?

Mon May 10, 2021 6:52 pm

Hello Rob,

Thank you for your followup on this!

I am glad you managed to solve this.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”