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
- :
- Re: Prerequisite condition
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
Jul 27, 2015
10:19 AM
Prerequisite condition
Hello
I have two Basic MSI projects, (installerA and installerB) one of them (installerA) set as prerequisite of the second (installerB).
I am trying to run installerA if it hasn't been installed or older version exist. Below are my prerequisite settings.
Conditions
Type of condition: A registry entry has a specified version value
Specify the registry key name to check: HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\InstallerCache\{GUID}
Specify the registry value name to check: ProductVersion
Specify the registry value data to check: 1.5.0
Run this prerequisite if: Data on target system is less than specified data
Registry Location: Default
Behavior
The prerequisite requires administrative privileges: Check
If, after installing the prerequisite, the conditions still indicate it is required
Abort the setup
installerA installs fine for me but after clicking finish in installerA and returning to prerequisite screen I get error
I think because it checks prerequisite again after installing installerA as described in settings above, but I am not sure why it fails I can see that that registry entry is created with value 1.5.0
What condition should I use if I would like to invoke prerequisite if it doesn't exist or older version is installed?
Thank you for your time reading this.
I have two Basic MSI projects, (installerA and installerB) one of them (installerA) set as prerequisite of the second (installerB).
I am trying to run installerA if it hasn't been installed or older version exist. Below are my prerequisite settings.
Conditions
Type of condition: A registry entry has a specified version value
Specify the registry key name to check: HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\InstallerCache\{GUID}
Specify the registry value name to check: ProductVersion
Specify the registry value data to check: 1.5.0
Run this prerequisite if: Data on target system is less than specified data
Registry Location: Default
Behavior
The prerequisite requires administrative privileges: Check
If, after installing the prerequisite, the conditions still indicate it is required
Abort the setup
installerA installs fine for me but after clicking finish in installerA and returning to prerequisite screen I get error
I think because it checks prerequisite again after installing installerA as described in settings above, but I am not sure why it fails I can see that that registry entry is created with value 1.5.0
What condition should I use if I would like to invoke prerequisite if it doesn't exist or older version is installed?
Thank you for your time reading this.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 27, 2015
12:21 PM
I changed registry location from Default to 64-bit (my Basic MSI is x64 bit) this seems to solve the issue.
Thank you.
Thank you.