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!

MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Remove folder does not work for rollback

I'm using Version 12.6.1

I have a directory where the content is created during installation with a custom action.
I enabled the remove folder option with the Uninstall Cleanup Assistant.
This all works fine if installation and uninstall are successful.
The problem is that the cleanup doesn't work when the installation fails. The rollback doesn't remove the folder and there is no option to enable it for rollback.

Kind regards,
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remove folder does not work for rollback

Hello Michael,
The problem is that the cleanup doesn't work when the installation fails. The rollback doesn't remove the folder and there is no option to enable it for rollback.
In this case, you can create a custom action that will be executed when the rollback is triggered. For details, please take a look on the Setting execution time for custom actions article.

For example, you can create your custom action as a custom action written in C# or a custom action written in C++, instead of VBScript and you can see some reasons why not to use VBScript .

To execute the custom action, please take a look on the Integrate the C# custom action in Advanced Installer article.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Re: Remove folder does not work for rollback

Hi Dan,

Thanks for the hint to the custom actions, I know it is possible with some extra effort.
But in my opinion this should work out of the box. If something should be cleaned on uninstall it should also be cleaned on rollback. Please consider this as feature request.

Kind regards,
Michael
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Remove folder does not work for rollback

Hello Michael,

We forwarded your request to our development team and maybe this improvement will be considered in the future. Thank you for your suggestion.

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

Return to “Common Problems”