How to insert a custom action at rollback of UNinstallation - 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!

vermefr
Posts: 10
Joined: Thu Jul 26, 2007 2:57 pm

How to insert a custom action at rollback of UNinstallation

I'd like to run a custom action at rollback of UNinstallation process: how ?
Thanks !
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If you want to scheduled a custom action on rollback switch to "Custom Action" page and add it under "InstallExecuteSequence->RollBack" section.

Note that only deferred type of custom action generates rollback information.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
vermefr
Posts: 10
Joined: Thu Jul 26, 2007 2:57 pm

Yes, but my underlying question was : how to make the difference between the roll back of installation and UNinstallation ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The difference between an installation and an uninstall is made by the condition REMOVE="ALL" in the "Expression" field ("Custom Action Properties" page, "Execution Condition" section). This condition makes that custom action to run during an uninstall.
In order to make a custom action run during a rollback you must select "Rollback" in the "Custom Action Properties" page, "Execution Options".

Why do you need to run a custom action during the rollback of an uninstall?
Please note that in order to do that you need to have a deferred custom action which will be placed after your rollback custom action.

You can read more about the rollback of an installation here:
http://msdn2.microsoft.com/en-us/library/aa371370.aspx

Look here for more information about rollback custom actions:
http://www.advancedinstaller.com/user-g ... tions.html
http://www.advancedinstaller.com/user-g ... rties.html

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”