Hello,
Since you only have one prerequisite and you need to search for so much registries (400), you should have another approach for this, not to create 400 searches. Also, you want to show a dialog based on the searches result, so you should have all these search properties in the
Show only if... condition for the related dialog.
For example, you can create your own custom executable (.EXE) which will search through the related registry on the target machine.
Then you can add this search to the
prerequisite install condition, the
Search done by a custom executable option. This option enables you to specify your own EXE file. The setup will interpret the result based on the return code of your EXE. In case of the EXE doesn't find the related registry entries, the returned value must be 0. Any other value will be interpreted as failure.
Also, if the return code of your EXE will be 0, the property assigned in the
AI_AppSearchEx table from the
Table Editor page will be set, otherwise it will not be set, it will be empty.
Since the property will be set when the prerequisite needs to be installed too, then you can use this property from the
AI_AppSearchEx table which has been assigned to the search operation in the
Show only if... option to display the related dialog.
You can take a look on the
How to search in registry using C# thread which may be useful to you.
Please let us know if that helped.
Best regards,
Dan