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.
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)
{
base.Install(stateSaver);
string str = Context.Parameters["SelectValue"];
if (str == "1" )
{
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
niceguymattx
Member
12 Points
4 Posts
Web Set-up Project Conditional Dialogs
Dec 18, 2009 09:07 AM|LINK
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?
Matt
web set-up
Thomas Sun –...
All-Star
64969 Points
5621 Posts
Re: Web Set-up Project Conditional Dialogs
Dec 22, 2009 05:20 AM|LINK
Hi,
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)
{
base.Install(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.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.