Which Custom Action to use for backup? - 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

Which Custom Action to use for backup?

Using AI 7.7:
I want to create a backup of some directory I have, but I want this to be done BEFORE the remove happens (meaning: files installed still exist).
The remove can happen either when someone removes the MSI (== uninstalls our MSI/program), or at upgrade: first it removes and then installs the new.

Thanks for all, Dashut.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Which Custom Action to use for backup?

Hi Dashut,

For this, simply place your custom action doing the backup before the RemoveFiles standard action. Condition it with REMOVE="ALL". Thus, it should be executed before RemoveFiles.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Which Custom Action to use for backup?

I actually found that "ProcessComponents" was a better place, since it's just before Scheduled Tasks are inserted (when first time installation) or removed (when upgrading).

Return to “Common Problems”