How to cancel installing from .net custom action - 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!

Jiraffus
Posts: 3
Joined: Wed Sep 24, 2008 2:19 pm

How to cancel installing from .net custom action

I have a .net class library with custom action for Install sequence. In this action i have a form with "Cancel" button. How can I cancel installing by pressing this button? I tried throwing InstallException from my code, but this approach is not accpetable because after that I have another exception - "the savedState dictionary is corrupted...".

Is there any way to cancel installing in proper way without any exceptions?
Jiraffus
Posts: 3
Joined: Wed Sep 24, 2008 2:19 pm

Re: How to cancel installing from .net custom action

I've managed with my problem. I have forgotten to call base.Install(stateSaver) in my Install method, so the stateSaver was empty =)

Return to “Common Problems”