cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shawny
Level 3

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.
Labels (1)
0 Kudos
(1) Reply
DebbieL
Level 17

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.
0 Kudos