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
- :
- Installshield 2018 R2 Unable to get Detect / Exit Conditions to work for exe Packages
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 11, 2021
04:31 AM
Installshield 2018 R2 Unable to get Detect / Exit Conditions to work for exe Packages
Unable to get Detect / Exit Conditions to work for Packages
I just cannot figure out how to achieve following:
Only install my package (exe) when it's not installed already
Abort setup when package execution fails
Seems to be pretty basic and exactly what Detection / Abort Conditions seem to exist for.
So what I do is following:
Create Registry key xyz in myPackage.exe if it succeeded, otherwise skip creating registry xyz
and use that for the Detect Conditon and configure Prompting for ExitCondition.
<Exe>
<UIProperties>
<Id>{7A209608-5253-49D4-A016-5AEBF77080E9}</Id>
<DisplayName>ID_STRING51</DisplayName>
</UIProperties>
<Package Name="[LocalAppDataFolder]Downloaded Installations">
<Folder Name="{34E138B0-8B12-4099-B097-B148690BF00D}" Location="Stream">
<File Name="myPackage.exe" LinkPath="<PATH_TO_SOURCE_FILES>\Bin"/>
</Folder>
</Package>
<Property Name="Elevation">Required</Property>
<Operation Name="Install" Target="myPackage.exe">
<Property Name="ExitBehavior">DetectPrompt</Property>
<CommandLine>Install</CommandLine>
<Property Name="RebootRequest">DetectIgnore</Property>
</Operation>
<Detect>
<When>
<All>
<RegistryExists Check64Bit="False" Key="HKCU\Software\keyxyz"/>
</All>
</When>
</Detect>
<Operation Name="Remove" Target="myPackage.exe">
<Property Name="ExitBehavior">DetectPrompt</Property>
<Property Name="RebootRequest">DetectIgnore</Property>
<CommandLine>Remove</CommandLine>
</Operation>
<Events>
<OnParcelConfiguring/>
<OnParcelConfigured/>
</Events>
</Exe>
(0) Replies