Web Set-up Project Conditional Dialogs RRS feed

  • Question

  • User1240721346 posted

    Hi all,

    I'm currently putting together a web set-up project to deploy a web site on a customer site. What I'd like to be able to do is have different routes through deployment depending on the installation technicians response.

    For example asking: Use existing or create new membership database? Then depending on the response prompting for database location etc.

    Not sure if this is possible with web set-up projects. I understand about adding custom actions and additional dialog boxes, but cant quite understand how to add custom dialogs, or conditional dialogs.

    Can anybody point me in the right direction?


    Friday, December 18, 2009 5:07 AM


  • User372121194 posted


    You can set CustonActionData in Custom Actions, and set corresponding name/value pairs in User Inferface and then decide whether create database basing on the value.

    For example, we create Custom Action and use following CustonActionData: /SelectValue="[RADIOSELECTVALUE]" . And then we add RadioButton (2 buttons) dialog to set its ButtonProperty to "RADIOSELECTVALUE". Then we can get select value from Custom Action:

            public override void Install(System.Collections.IDictionary stateSaver)
                string str = Context.Parameters["SelectValue"];
                if (str == "1" )

    For same example, see http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx and about RadioButtons User Interface Dialog Box, see http://msdn.microsoft.com/en-us/library/taa17f7s.aspx

    To create database in Custom Action, you can refer to http://forums.asp.net/p/1276061/2433139.aspx#2433139

    I look forward to receiving your test results.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 22, 2009 1:20 AM