InstallShield a little idea of how a. NET installation requires a restart and an extension of the installation package that continues to install after a reboot

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.