Return actual version of IIS

Post specialized setup scripts you have created here.
MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Return actual version of IIS

Postby MLS » Thu Jul 19, 2007 7:29 am

Here is a simple script to return the version of iis installed. Install aware only checks to see if the minimum version is installed (which is fine in most cases).

The script populates a IISVERSION variable for you to compare to it just stores the versions number i.e. 6, 5.1, 5 etc

Code: Select all

~InstallAware Clipboard Data~
~End~
~{4DEB978D-A8CB-4600-805B-602C0F01F8A5}~
~End~
~{D4E83C7E-81B0-4BC6-A25C-E3E6A0C56A72}~
~Set Variable~
~{37CFFBD4-FA3B-4666-9BB7-D71B6E22089F}~
~IISVERSION$MYAH$MYAH$FALSE~
~5~
~If~
~{15D36699-FE7E-42E8-AAEB-E9FA5104FEA8}~
~CHECKSYSTEM~
~0~
~TRUE~
~FALSE~
~If~
~{79001E51-7336-461C-A691-FF7D37A8322C}~
~IISVERSION~
~0~
~0~
~FALSE~
~Get System Settings~
~{A2F87A1A-027F-43B5-8E6C-3696F53A30BB}~
~CHECKSYSTEM~
~55~
~Comment~
~{6D162097-4F3E-491A-A582-04958400B729}~
~~
~End~
~{0F167CF3-07C0-436B-82A1-69D2F53A75F1}~
~End~
~{CC79A67A-04EB-4F71-A244-E73D263DD265}~
~Set Variable~
~{16C23ED3-A91A-400E-8162-C477515ED854}~
~IISVERSION$MYAH$MYAH$FALSE~
~5.1~
~If~
~{ECA2F7CF-083F-4365-9942-25459165F97F}~
~CHECKSYSTEM~
~0~
~TRUE~
~FALSE~
~If~
~{56C08E0C-5A6A-4321-8E8A-BF37506C1168}~
~IISVERSION~
~0~
~0~
~FALSE~
~Get System Settings~
~{C755BF18-C353-4A8A-9FC4-BBF563032257}~
~CHECKSYSTEM~
~54~
~Comment~
~{4F7976AF-DFC2-46D4-B9BB-63C905A32D40}~
~~
~End~
~{AE8E02C8-EBB5-4C98-8294-03CEED7CED0D}~
~End~
~{7A50455A-DF6A-4440-9D4B-3217A0B38BB3}~
~Set Variable~
~{5D480441-7B9F-4645-B3FE-8AF10B7A6DC6}~
~IISVERSION$MYAH$MYAH$FALSE~
~6~
~If~
~{BEFF0925-E766-4403-B7F4-51ABF6669C37}~
~CHECKSYSTEM~
~0~
~TRUE~
~FALSE~
~If~
~{CB427E43-7624-48DC-B778-686D96E72029}~
~IISVERSION~
~0~
~0~
~FALSE~
~Get System Settings~
~{27B23429-614A-4D7D-BC80-5FFE8ED662E2}~
~CHECKSYSTEM~
~53~
~Comment~
~{AF5F8E3B-51F4-4F3F-A39E-14D39CD15FC8}~
~~
~End~
~{09A8BE4C-B37F-4A78-940B-ED0C1AEF1CE2}~
~Set Variable~
~{1A2D9FC7-0B78-4478-BC3E-EC4C82BEBC0A}~
~IISVERSION$MYAH$MYAH$FALSE~
~7~
~If~
~{A4050EE5-D4F4-4808-ABF8-A31559EECD3C}~
~CHECKSYSTEM~
~0~
~TRUE~
~FALSE~
~Get System Settings~
~{F97CE7F1-093A-4062-ABB7-F16FFA163968}~
~CHECKSYSTEM~
~73~
~Comment~
~{E6520318-573C-40DF-AA2B-C49F7C80F51B}~
~~
~Set Variable~
~{904E9CC2-E240-4917-844E-8BAB2C0036DF}~
~IISVERSION$MYAH$MYAH$FALSE~
~0~
~Comment~
~{A267A498-BD39-41B5-B151-7087B343DA6D}~
~Determine IIS Version~

Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests