cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Cygnusx1
Level 8

Frustration in getting LaunchCondition to wok correctly

Have two searches: file & registry creating FILEEXISTS and REGISTRYEXISTS if the values are found
In LaunchCondition Table I have condition: (Not FILEEXISTS) And (Not REGISTRYEXISTS)
I need to abort the install ONLY if both items are present. the log file clearly shows that only one of these properties are set.
The install always aborts if only one of the searches are found.
Also tried setting properties with same results
Labels (1)
0 Kudos
(3) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

I think you have the logic reversed here; in order for the installation to continue, the launch condition must be true. Thus you probably want a condition like this:
Not (FILEEXISTS And REGISTRYEXISTS)
Note that it's typically a good idea to avoid preventing maintenance or uninstallation by adding Installed Or ... to the front of the condition.
0 Kudos
Cygnusx1
Level 8

the suggested condition does not work. The installation installs regardless of the values
0 Kudos
TsungH
Level 12

MichaelU's condition should have worked. I tried it in a MSI install, and was able to confirm that. Otherwise, you can try the following condition, which is longer than MichaelU's answer.
(Not FILEEXISTS) OR (Not REGISTRYEXISTS)
0 Kudos