FrankS
Posts: 4
Joined: Sat Nov 17, 2018 11:31 pm

Not removing certain files when uninstalling

Hello to the community!
I'm very new to this product, so forgive me if my question is rather basic: I have built my first installer, an msi file. It works! Now when I'm uninstalling the product, I do NOT want to remove all files that the installer installed, I want to leave some files behind, on the user's hard drive. (The user will need these files later.) How can I achieve that, and tell the program what NOT to remove? (I have the Pro version.)
Thanks for any help or pointers to resources!
Greetings,
Frank
Catalin
Posts: 6597
Joined: Wed Jun 13, 2018 7:49 am

Re: Not removing certain files when uninstalling

Hello Frank,

In order to achieve that, you can go to "Files and Folders" page --> right click on the file that you do not want removed upon uninstall --> "Properties" --> "Operations" tab --> select the "Do not overwrite existing file" with the following condition:

Code: Select all

REMOVE = "ALL"
For more information about this, please have a look over our "How do I prevent a file or registry entry from being uninstalled or repaired?" article.

Hope this helps!

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

Return to “Building Installers”