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”