- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Prerequisite Install Conditions - Find product by UpgradeCode
- 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
Prerequisite Install Conditions - Find product by UpgradeCode
Hi,
I'm currently creating some prerequisites but am stuck on the install conditions.
I know I can configure registry, file,... conditions but am missing something like MsiEnumRelatedProducts to find registry entries (versions) via the UpgradeCode.
Is there no such feature? I have some components that don't store any version info at a centralized place in registry or so.
BR, Stefan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Just an idea, not sure if it's feasible:
Make this a feature based prerequisite.
Use appSearch (or even the Upgrade table with "" in the Remove column) to search for your other product.
Use the result as a condition for the feature to which you attached your prerequisite.
InstallSite.org / InstallSite.de
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Stefan,
I know both appSearch and Upgrade table. That could be a valid solution.
But I didn't pick that one because I thought I couldn't launch a second Windows Installer from the first one. Will give it a try though...
BR
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
More precisely, you can't run another Windows Installer setup from the Execute sequence. Feature prerequisites are launched at the end of the UI sequence.
InstallSite.org / InstallSite.de
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Then it should work perfectly fine!
Just to make sure:
I could create a new feature, use that only for the feature prerequisite and have that feature's install condition bound to the result of appSearch or Upgrade Table.
From the prerequisite itself I then remove the install conditions!?
Correct?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
You still need the condition that checks whether the prerequisite is already installed or needs to be installed. This is also used to verify the sucessful installation of the prerequisite.
Please note that I haven't tried this, it's just an idea, something you could try.
InstallSite.org / InstallSite.de
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
You also need to consider the silent install scenario because the UI sequence is skipped in this case.
InstallSite.org / InstallSite.de
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Good hint.
With that I cannot use the feature prerequisite. I got some use cases for a silent installation. I need to find another install condition then (e.g. date of a file) and stick with a normal prerequisite.
InstallShield should support a detection by UpgradeCode for the prerequisites though...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
... or ProductCode
You may want to submit a feature request.
InstallSite.org / InstallSite.de