Custom Actions when installation is cancelled - 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!

tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Custom Actions when installation is cancelled

I´m trying to make a custom action to erase a file when an installation is canceled during the installation process. I´ve tried putting it in the rollback part but it doesn´t seem to do nothing.
Any help, please?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Actions when installation is cancelled

Hello,

The file should be automatically erased in the rollback phase.

If this file is created by your own custom action during the installation, you should schedule your rollback custom action before the custom action you want reverted. Also, you should set your rollback custom action with the "Rollback" execution option in the custom action's properties pane. Please note that a rollback can be triggered only by a custom action scheduled between "InstallInitialize" and "InstallFinalize" standard actions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Custom Actions when installation is cancelled

Hello,

sorry I said 'file' when I wanted to refer to an empty folder that it's not erased when the installation is cancelled. I´ve put the custom action in the Installinitialize part and I've realised that, if I stop the installation before the installer is writting the INI files, the folder is erased, but if it starts to write them it doesn´t erase it.

Thanx
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom Actions when installation is cancelled

Hi,

Can you please send us the .AIP (project) file you are using and a verbose installation log to support at advancedinstaller dot com so we can investigate them?

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

Return to “Common Problems”