NSIS-check whether IIS is installed and version

Source: Internet
Author: User

1. Determine whether to install iis and the version code:

Function CheckIISVersionClearErrorsReadRegDWORD $0 HKLM "SOFTWARE \ Microsoft \ InetStp" "MajorVersion" ReadRegDWORD $1 HKLM "SOFTWARE \ Microsoft \ InetStp" "MinorVersion" IfErrors 0 IISVersion; the installation program does not install iisMessageBox MB_ OK. It cannot detect Microsoft Internet Information Server v6 or a later version. This is required. The installer is aborted. "Abort IISVersion:; version judge IntCmp $0 6 NoAbort IISMajVerLT6 NoAbortNoAbort:; MessageBox MB_ OK" detected Microsoft Internet Information Server Version v $0. $1 "Goto ExitFunction IISMajVerLT6: MessageBox MB_ OK" Your currently installed Microsoft Internet Information Server Version v $0. $1 is earlier than the required version v6.0. The installer is aborted. "Abort ExitFunction: FunctionEnd 2. callback function, Call CheckIISVersion as needed

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.