Search code examples
c#installationcustom-action

Installer Class For Validate Serial Number MS Visual Studio 2010


I create a setup project in visual studio and want to add custom action to validate serial number. How can I do it?

EDIT 1: I add Customer Information dialog in user interface of my setup project, and set ShowSerialNumber property to True. and want to validate entered user serial number , when user click next button on this dialog.


Solution

  • In VS solution explorer

    Right click yoursetup >> View >> USerInterface

    Right Click Start >> Add Dialog >> Select TextBox

    enter image description here

    Now made a Custom Class And add Install class file

    In Install.cs

    public override void Install(IDictionary stateSaver)
        {
                    base.Install(stateSaver);
        }