Hi Matt,
Here is what you need to do.
You need to determine in the main installation package if the prerequisite needs to be installed. For this, you can create same searches from the
Prerequisite Install Conditions Tab of the prerequisite in the
Search page.
Then, you can set a property e.g. REQUIRE_REBOOT with
Yes value using
Set installer property predefined custom action. Condition the execution of this custom action depending the result of your searches.
If the prerequisite needs to be installed, then make sure you set this property too.
Then, you can create another help setup package(e.g. create a new project in Advanced Installer. Go to Product Details page and uncheck the option to "Register product with Windows Installer". ) which will be added as a
post-install prerequisite after the existing one. Pass this property, REQUIRE_REBOOT through the
Install Commands Line field from the
Setup Files tab of the prerequisite.
In this help setup you can set the
REBOOT property only if the REQUIRE_REBOOT property is Yes.
Please take a look on the
Change in the reboot behaviour forum thread which may be useful to you.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.
Best regards,
Dan