Custom Action on Rollback - 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!

Marcel
Posts: 7
Joined: Mon Feb 08, 2010 12:40 pm

Custom Action on Rollback

Hello,

I have a custom action which uses installutil.exe to install a service.
That custom action is placed under the standard InstallServices action and works.
However.. when something goes wrong after that service is installed and a rollback takes place,
i want to uninstall the previously installed service using another custom action which should have a condiction that a rollback is taking place.
So basicly i do a DetectService action to see if the service is actually installed.
Then i want to run another custom action using installutil.exe to uninstall that service if it was installed and the installation is being rolled back.

Thanks in advance
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Action on Rollback

Hi Marcel,

In order for your custom action to execute during rollback, select it and select "rollback" from the right pane, under Execution options.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”