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
- :
- Modifying web.config based on condition
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 20, 2009
08:13 AM
Modifying web.config based on condition
Hi all,
I have a project where I need to conditionally create a key in my appSettings section of my web.config based on whether a value is entered into a dialog box during install.
If a value is entered, I want to create the key, if no value is entered, I dont want the key created. I'm rather new to InstallShield 2009 and although I have used the XML File Changes before, I don't know how to link the entry in the XML file Changes to a condition.
Any help would be greatly appreciated.
I have a project where I need to conditionally create a key in my appSettings section of my web.config based on whether a value is entered into a dialog box during install.
If a value is entered, I want to create the key, if no value is entered, I dont want the key created. I'm rather new to InstallShield 2009 and although I have used the XML File Changes before, I don't know how to link the entry in the XML file Changes to a condition.
Any help would be greatly appreciated.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 21, 2009
07:51 AM
Are you using a Basic MSI project? If so, can you try setting the condition on the XML file's component? (When you configure changes for an XML file in the XML File Changes view, InstallShield automatically creates a component for those changes.) If the component's condition evaluates as false, the XML file changes won't be made.