Do Not Uninstall Touched Files? - 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!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Do Not Uninstall Touched Files?

One of our merge modules lays do some configuration files that another of our apps can update. Is there an easy way (from within a merge module) to not uninstall these "touched" files by default?

For example, if the date is newer than when it was installed do not uninstall it? I'm hoping that all of these being in a config folder makes the task simpler.

Thanks,
Scott J.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Do Not Uninstall Touched Files?

Hello Scott,

I'm afraid we don't have predefined support for this. However, in order to achieve what you want you want you can develop your own custom actions. You can create a custom action which will create a backup for the related file on uninstall if the modified date is different from created date and another custom action which will restore the file after it is removed from target machine. The backup custom action should be scheduled before "Install Execution Stage -> Remove Resources" and the restore custom action should be scheduled after "Install Execution Stage -> Remove Resources" action group.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”