IIS Detection fails

Got a problem you cannot solve? Try here.
Post Reply
Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

IIS Detection fails

Post by Bo Andersen »

I cant get iis version detection to work - I've tried on XP and Win 2003

Keeps returning false

What I Do:

Initialize IISISINSTALLED to false
~InstallAware Clipboard Data~
~Set Variable~
~{A07D2C21-4011-492C-A4F5-1CDADA282835}~
~IISISINSTALLED$MYAH$MYAH$FALSE~
~FALSE~

then check (does not matter what version I check for)
~InstallAware Clipboard Data~
~Get System Settings~
~{DE5C178D-B41C-4EF5-A0DA-0E3DE0F4AC11}~
~ISIISINSTALLED~
~56~

Any clues?


Just wanted to add that I can easily get the IIS Anon user and have verified in registry that major and minor versions are present and correct...
Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Post by Alex_Ronquillo »

I just tested it in Windows XP and 2003 the following way and it is working for IIS present and not present. I am not sure if you did it this way because you pasted the IA clipboard instead of pasting it as text:

Code: Select all

Set Variable Test to FALSE
Get System Setting Internet Information Server 2 into Test
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

Her's what I did

Post by Bo Andersen »

Set Variable IISISINSTALLED to FALSE

Get System Setting Internet Information Server 5 into ISIISINSTALLED


when I debug, the IISISINSTALLED variable stays false

I can get the anon user, I've tried checking for every iis version, I have veridied in registry that the settings are present, and I've tried 2 different machines... :?:
Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Post by Alex_Ronquillo »

If you read carefully your code, you will find you are using two different variables. You are setting IISISINSTALLED to FALSE and it will stay false because you are setting the Get System Setting Internet Information Server 5 to ISIISINSTALLED.

ISIISINSTALLED = TRUE if IIS 5+ present
IISISINSTALLED = FALSE always
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

Doh

Post by Bo Andersen »

Thank you - I am very very sorry about that.
Post Reply