Click here to Skip to main content
15,665,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to return a error message to web setup installer from custom action (my custom action is windows form). How to pass the value to installer from window form?
Now I am using the following code,

from Installer I am overriding the Install method
C#
public override void Install(IDictionary stateSaver)
        {
            try
            {
                base.Install(stateSaver);
            }
            catch(Exception ex)
            {
               throw new InstallException("error");
            }
        }

In windows form,
C#
throw new InstallException("error");

This is working fine in form constrctor when first custom action form is calling from installer. But it will not return a value to installer from an Event. So how to do?
Posted
Updated 16-Dec-11 16:07pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900