Check IIS Version Before Installing: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Adding new author and category links.)
Line 9: Line 9:
</highlight-nsis>
</highlight-nsis>


== The Function ==
[[http://www.shrentcar.com 租车]]
<highlight-nsis>
[[http://www.shrentcar.com 汽车租�]] [[http://www.rentcarcompany.com 租车]][[http://www.shrentbus.cn 租车]]
;--------------------------------
[[http://rentcar.host2.9466.net/ 汽车租�]][[http://rentcar.host2.9466.net/ 租车]][[http://www.shrentbus.cn 上海租车]]
; CheckIISVersion Function
[[http://www.11rentcar.com/ 汽车租�]][[http://www.11rentcar.com/ 租车]]
;
; This is built off MSFT's required keys for IIS
; (info at ttp://tinyurl.com/thon)
; and the NSIS archive (http://tinyurl.com/thom)
Function CheckIISVersion


ClearErrors
[[http://www.dela88.com/ 防�电]] [[http://www.haungsanok.com/ 防�电]] [[http://www.tripto.com/ 三亚]]
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\InetStp" "MajorVersion"
[[http://www.tripto.com/ 三亚旅游]][[http://www.postdream.org 公�注册]][[http://www.dreamhk.org 注册香港公�]]
ReadRegDWORD $1 HKLM "SOFTWARE\Microsoft\InetStp" "MinorVersion"
[[http://www.postdream.org 注册公�]][[http://www.regsh.com/ 注册公�]][[http://www.regsh.com/ 公�注册]]
[[http://www.dreamatsh.com 公�注册]][[http://www.dreamatsh.com 注册公�]]


IfErrors 0 NoAbort
[[http://www.dreamathk.com 注册香港公�]]
Abort "Setup could not detect Microsoft Internet Information Server v5 or later; this is required for installation. Setup will abort."
[[http://www.companyforyou.com/ 注册公�]][[http://www.companyforyou.com/ 上海注册公�]]
[[http://www.hkcompanyforyou.cn 注册香港公�]][[http://companyok.68l.net/ 公�注册]]
[[http://companyok.68l.net/ 注册公�]][[http://okcomapany.68l.com/ 注册海外公�]]
[[http://okcomapany.68l.com/ 注册美国公�]][[http://www.11company.com/ 注册香港公�]]
[[http://www.11company.com/ 香港公�]][[http://www.companyforhk.cn/ 注册香港公�]]
[[http://www.companyforhk.cn/ 香港公�]] [[http://www.shregister.com/ 注册公�]]
[[http://www.shregister.com/ 公�注册]] [[http://www.mesoresources.com/blog/dzyblog/ 租车]]
[[http://www.for-sme.com 注册商标]][[http://www.for-vip.com 公�注册]]
[[http://www.for-sme.com 商标注册]][[http://www.for-vip.com 注册香港公�]]


IntCmp $0 5 NoAbort IISMajVerLT5 NoAbort
[[http://www.mesoresources.com/blog/dzyblog/ 汽车租�]]
[[http://nowbot.com/blog/dzybog/ 上海租车]]
[[http://www.hplc.cn/ 租车]]
[[http://www.hplc.cn/ 汽车租�]]
[[http://www.companyforhk.cn/ 注册香港公�]]
[[http://www.companyforhk.cn/ 香港公�]]
[[http://www.for-vip.net 注册商标]]
[[http://www.for-vip.net 注册英国公�]]
[[http://www.for-vip.net 注册美国公�]]


NoAbort:
[[http://www.shticketcenter.com 机票]]
DetailPrint "Found Microsoft Internet Information Server v$0.$1"
[[http://www.cnticket.net 机票]]
Goto ExitFunction
[[http://www.ticketsh.net 机票]]
 
[[http://www.55377.com 香港六�彩]]
IISMajVerLT5:
[[http://www.55377.com 六�彩]]
Abort "Setup could not detect Microsoft Internet Information Server v5 or later; this is required for installation. Setup will abort."
[[http://www.52lac.net 六�彩]]
 
[[http://www.88299.net 六�彩]]
ExitFunction:
[[http://www.88t99.com �费电影]]
 
[[http://www.88t99.com 电影下载]]
FunctionEnd
</highlight-nsis>
 
[[Category:Other Products Version Detection Functions]]

Revision as of 01:32, 26 July 2005

Author: icebrrrg (talk, contrib)


Description

Here's a quick function that will check the registry to see (1) if IIS is installed, and (2) the version is at least v5.0. You can manipulate it to check for other versions. I call this in a section which installs the web virtual directory, so we only check for IIS if that module is selected by the user.

Function Call

	Call CheckIISVersion

[租车] [汽车租�] [租车][租车] [汽车租�][租车][上海租车] [汽车租�][租车]

[防�电] [防�电] [三亚] [三亚旅游][公�注册][注册香港公�] [注册公�][注册公�][公�注册] [公�注册][注册公�]

[注册香港公�] [注册公�][上海注册公�] [注册香港公�][公�注册] [注册公�][注册海外公�] [注册美国公�][注册香港公�] [香港公�][注册香港公�] [香港公�] [注册公�] [公�注册] [租车] [注册商标][公�注册] [商标注册][注册香港公�]

[汽车租�] [上海租车]

[租车] [汽车租�] [注册香港公�] [香港公�] [注册商标] [注册英国公�] [注册美国公�]

[机票] [机票] [机票] [香港六�彩] [六�彩] [六�彩] [六�彩] [�费电影] [电影下载]