How to retain files after uninstall - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

How to retain files after uninstall

Using AI 7.7:
We have a config directory that we decided that even after uninstall: we want to leave the entire directory.
Some files came with the installation, and some generated on normal run of the program.
So if I have a directory "c:\program files\<company>\<product>\config", how can I pertain/save/leave this directory and all of it's files (new and existing from the msi) after I perform an uninstall of my product? Think about it like in computer games, you have the "saved games" folder that you want to leave behind.

Many thanks, Dashut.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to retain files after uninstall

Hi Dashut,

For all file components which correspond to this folder you can set the Permanent attribute. Another approach is to not register these components with Windows Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: How to retain files after uninstall

Perfect! works for me.
Thanks, Dashut.

Return to “Common Problems”