This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Dynamic Web.Config file version to install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Apr 30, 2009
05:25 AM
Dynamic Web.Config file version to install
HI.. not sure if re-post.. anyways..
i have an assignment to create installer that will select web.config of my choice file to install for example..
we had 3 servers:
Development Server
QA Ser
Production Server
during installation i want to select web.config designated to selected server (radio button) on the dialog.. thus, if the installer gone thru other servers i can select my web.config of my choice for the Server i'm currently installing..
for now, i created 3 sets of web.config inside my installer..
i successfully created radio button group... and test event. but the problem is the web.config dynamic selector.
any possible solution/scripts about this? thanks and god bless..
i have an assignment to create installer that will select web.config of my choice file to install for example..
we had 3 servers:
Development Server
QA Ser
Production Server
during installation i want to select web.config designated to selected server (radio button) on the dialog.. thus, if the installer gone thru other servers i can select my web.config of my choice for the Server i'm currently installing..
for now, i created 3 sets of web.config inside my installer..
i successfully created radio button group... and test event. but the problem is the web.config dynamic selector.
any possible solution/scripts about this? thanks and god bless..
(3) Replies
‎Apr 30, 2009
10:32 AM
The best way I know of to handle this is to place each of the different web.configs into their own component and then to use conditional statements on each component to determine when they should be installed. Since you said you are using a radio button you can use the property from the radio button group to determine which one should be installed at a given time depending on the value of the property.
James
James
‎May 04, 2009
11:05 AM
What I was refering to is that if you select a component among the settings for it is the condition. You can set this condition so that the component is only installed if the property from your radiobutton group is a specific value.
The conditional statement would look something like
RadioButtonGroupProperty=1 for the first component
RadioButtonGroupProperty=2 for the second
RadioButtonGroupProperty=3 for the third
etc..
On the dialog for the radiobuttongroup you can set what the name of the property this value is stored in is. By default the first radiobutton sets the property to 1 the second to 2 and so on.
The conditional statement would look something like
RadioButtonGroupProperty=1 for the first component
RadioButtonGroupProperty=2 for the second
RadioButtonGroupProperty=3 for the third
etc..
On the dialog for the radiobuttongroup you can set what the name of the property this value is stored in is. By default the first radiobutton sets the property to 1 the second to 2 and so on.