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
- :
- Frustration in getting LaunchCondition to wok correctly
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
‎Mar 26, 2014
08:14 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2014
09:48 AM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2014
11:56 AM
the suggested condition does not work. The installation installs regardless of the values
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 27, 2014
03:55 PM
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)
(Not FILEEXISTS) OR (Not REGISTRYEXISTS)