Feature based prerequisite that is already isn't displayed as disabled - Advanced Installer Community
LuisD
Posts: 1
Joined: Mon Oct 24, 2022 1:26 am

Feature based prerequisite that is already isn't displayed as disabled

I have a feature-based prerequisite that doesn't appear disabled if its already installed on the machine. The feature doesn't get re-installed if I proceed with the installation so I'm certain that the Install Conditions for the prerequisite are correct.

From what I've read on other community posts, feature-based prerequisites should appear disabled in the SetupTypeDlg.

Are there settings that could interfere with this? I'm current running version 20.0.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature based prerequisite that is already isn't displayed as disabled

Hello Luis and welcome to our forums,

The feature should not be disabled automatically if the prerequisite is already installed, but you can do that if you want.

First of all, we will need to get the prerequisite's install detection condition and transform that in a search in the "Search" page.

For instance, the following prerequisite has the "Product Version (identify by UpgradeCode)" type.
Screenshot_6.png
Screenshot_6.png (50.72 KiB) Viewed 1823 times

In the "Search" page, we can find the same type and we can add it there.
Screenshot_7.png
Screenshot_7.png (90.52 KiB) Viewed 1823 times
Screenshot_8.png
Screenshot_8.png (12.77 KiB) Viewed 1823 times

After that, we can use the property in the "Disabled if" field of our prerequisite (in the "Organization" page).
Screenshot_9.png
Screenshot_9.png (46.45 KiB) Viewed 1823 times

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”