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