Hello Lusine and welcome to Advanced Installer forums,
First of all, please allow me to explain how we do the prerequisite checks. We only do two checks, and those are:
-- This is related to the condition that is defined in the
"Install Conditions" tab of the prerequisite -->
"Install Conditions" section.
1. first, we check this condition before the prerequisite is installed. If the condition is false ==> it means the prerequisite is not installed ==> we proceed with the installation
2. second, we check this condition after the prerequisite was installed. If the condition is true ==> it means that the prerequisite was installed ==> we proceed further. If the condition is false, we abort the installation.
Now, .NET Framework, in general, is quite a special package. As you can see, the condition that we evaluate is:
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Release
should be
461813 or above.
So, basically:
- we check for that registry entry before installing .NET Framework. We see that the key does not exist or has a lower value than the one specified ==> we proceed with the installation
- after the installation, we check once again for it. Here comes the special part about .NET Framework:
That registry key, specified above, is only written
after the reboot - I can't tell you why, unfortunately. With that being said,
a must so you can install .NET Framework as a prerequisite is to have the
"Continue with the main installation even if the prerequisite is not installed" (
"Properties" tab). The reason behind this is the above explanation. Basically, Advanced Installer will check for that and will fail the installation, because the registry entry is not written, due to the fact that the reboot did not happen.
Now, your condition for reboot was:
"Reboot system after installing this prerequisite" ==>
"Only if prerequisite was installed successfully"
Basically, here, the reboot is not happening because, when the condition is checked, the registries are not written, therefore the setup interprets the installation as failed ==> the reboot prompt is not happening.
Fortunately, .NET Framework has its own command line switches which can be used. For instance, the "/promptrestart" switch will prompt the user for a restart in case one is needed. What you need to do here is to go to
"Setup Files" tab and set the
"Install Command Lines" field for
"Full UI" and
"Basic UI" to
"/promptrestart".

- promptrestart.png (116.63 KiB) Viewed 4766 times
This way, the prerequisite will prompt for restart after it is installed.
In addition to that, please remove the
"Reboot system after installing this prerequisite" option from
"Properties" tab.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging