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?