Hello,
First of all, please let me try to explain real quick the 3 states a prerequisite can have (in the "PrerequisitesDlg" dialog):
- Installed => checkbox is checked.
- Not installed => checkbox is not checked.
- Disabled => the prerequisite does not appear.
By
How to fix this?
do you mean that you want the prerequisite to not be present or you want its checkbox to not be checked?
Now, one more important thing is made up of the install conditions that the prerequisite has ("Prerequisites" page --> "Install Conditions" tab). This condition is evaluated twice:
- first time, the condition must be
false in order for the prerequisite to be installed. If the condition is true, it means that the prerequisite is already installed, meaning that there is no need to try to install it again
- second time, the condition must be
true, meaning that the prerequisite was correctly installed.
Now, in order to achieve what you want, here is how you can proceed: You can create a
"Search" based on the prerequisite's install condition(s). Then, since the prerequisite is a feature based, you can condition the installation of the feature that contains it ("Organization" page) based on the search that you have earlier created. For instance, the "Installation Behavior" of the feature that contains the prerequisite can be something as it follows:
Installed --> Not installed if: THE_NAME_OF_THE_SEARCH
or
Installed --> Disabled if: THE_NAME_OF_THE_SEARCH
depending on whether you want to completely hide the prerequisite or you simply want its state to be unchecked.
Hope this helps.
All the best,
Catalin
FOLLOW US
Get the latest news in Application Packaging