Original: InstallShield about. NET installation requires a restart, and a little idea of an extended installation package that continues to install after a reboot
When a lot of friends do the installation package, the packaged software requires environments such as the. NET Framework, and they will detect if the system already has. NET installed, and if not, call it. NET installation package to install. But. NET installation is required to restart, in general, we recommend using the/q/norestart silent installation function to postpone the restart until the end of installation, using the following:
Launchappandwait (supportdir^ "Dotnetfx40_full_x86_x64.exe", "/q/norestart", WAIT);
. NET will not take effect until after the reboot, but if it is finished installing. NET after the installation behavior immediately need to use the. NET feature, then must starters the computer restarts, but the restart to let users click Setup.exe again to continue the installation is unfriendly behavior, if you can restart after the automatic call to install package to continue the next installation, then how good.
So my idea is to write the path of the setup.exe to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Key, this will automatically run your setup.exe after your computer restarts to continue the installation.
Remember at the end of the installation, write the script to delete this key value, or every time the computer boot to run this setup.exe