- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Help with custom prerequisite
- 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
- Email to a Friend
- Report Inappropriate Content
Help with custom prerequisite
I have Installshield 2018R2 Premier edition. I have a custom prerequisite to install DacFramework.msi. This prereq needs to be installed only if a specific registry key does not exist.
I have tried both these scenarios:
1. When the registry key exists
2. When the registry key does not exist
In both these cases, the prereq installation is being kicked off and I get an error message about installation failure.
In the second case, the installation of the prereq finishes (registry key entry appears, the relevant files are installed to C:\Program Files, Windows Event Viewer shows the installation completion step) but I still get the same error message.
There seem to be two issues: 1. The condition is not being evaluated correctly 2. Errors even when the prereq msi installation finishes
Attached are screenshots of what I have. Can someone point me in the right direction as to what is wrong?


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
It looks like you are missing a value for: "Specify the registry value name to check"
Try using:
Specify the registry key name to check:
HKEY_LOCAL)MACHINE\SOFTWARE\Microsoft|Microsoft SQL Server\Data Tier Application Framework
Specify the registry value name to check:
InstallLocation
Specifiy the registry value data to check:
C:\Program Files\Microsoft SQL Server\150\DAC\bin
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
Thank you for your quick response and pointing out what could be wrong. I tried your suggestion but still have the same issue. I tried the attached changes and can still not resolve the issue.
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
If you want to base the condition on the existance of a registry entry, why don't you select that option but instead use "has a specific value"?
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
I tried using that condition as well with no luck. I even tried file does exists or does not exist option too.
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
InstallLocation is the key, not the value. Append it to the registry path in the first box.
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
There's a - missing between Data and Tier and a \ after bin
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Help with custom prerequisite
Thank you so much for taking the time to look into this and walking me through this 🙂 @Stefan_Krueger
I made those changes but still no luck