cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
heiner_violet
Level 7

How to install an xml component conditionally

(Installshield 2008, Basic-MSI)

My setup installs several xml files. Some xml files should not be installed during an update.
To achieve this, i put a condition on the xml file component: Not Installed.

Problem: The condition is ignored and the xml file is installed during an update.
The Msi-log tells
Action 11:59:16: ISXmlInstall.
InstallShield 11:59:16: Installing 1 XML component(s)


I don't want to install the xml file during an update because in this case the setup failed and rolled back. (See posts Post1 and Post2).

How can I install an xml component conditionally?

Any help would be greatly appreciated.
H.
Labels (1)
0 Kudos
(2) Replies
heiner_violet
Level 7

In order to get a condition of a component evaluated during an update, the value of "Reevaluate Condition" has to be "Yes".

Next problem: Now the xml file is removed during an update. But I would prefer to leave it as it is.

How can I prevent a setup to change or remove an xml file during an update?

Any hint is welcome. Thanks.
H.
0 Kudos
heiner_violet
Level 7

A component whose condition evaluates to false during an update is removed provided "Reevaluate condition" is set to "Yes".
Is this right?

I solved my issue by imposing condition "Not Installed" on the ISXmlInstall standard action (install sequence).

Another way would be to store all xml-values in properties at the beginning of the setup by a System Search and to update the xml files using these properties.
0 Kudos