C#: Setup Project VS2010 Custom Actions RRS feed

  • Question

  • User-187731752 posted

    I am creating a setup and deployment project in visual studio 2010.  I need some custom action to be performed.  I want to add an user interface with a text box that will accept the mail ID from user during installation and check from the database whether the mail id already exists in my user table. How to do this?

    Please help me.

    Wednesday, March 26, 2014 3:04 AM


  • User-417640953 posted

    Hi AshwiniSH,

    Thank you post the issue to asp.net fourm.

    Based on your description, I see you want to add some custom actions in setup project for user input something with database validation.

    In my mind I think you should implement the Installer class like below.

    public class MyInstaller : Installer
        public override Install(IDictionary stateSaver)
        public override Uninstall(IDictionary savedState)

    For how to add custom actions in web setup projects, please follow below article.



    Best Regards!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 28, 2014 1:59 AM