Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

detect IIS installation

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IISState Symbols - intranet  
Author Message
anonymous1134

External


Since: Feb 06, 2004
Posts: 2



(Msg. 1) Posted: Fri Feb 06, 2004 3:49 am
Post subject: detect IIS installation
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,
trying to detect if IIS is installed before deploying
a .NET web application locally. (Unfortuneatly, VS setup
tool checks for Framework first and then for IIS.)

Tried s.th. like this:
Set IIsObject = GetObject("IIS://localhost/w3svc")

Then checking for error. But in Windows XP it does not
work...Any ideas?

 >> Stay informed about: detect IIS installation 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Fri Feb 06, 2004 5:19 am
Post subject: Re: detect IIS installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What do you mean by it does not work on Windows XP?

If IIS is installed and minimally functional, that line will succeed. If
IIS is not installed or not functional, that line will fail.

IIS is not installed by default on Windows XP or Windows Server 2000 while
it is installed by default on Windows 2000.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"LK" <anonymous RemoveThis @discussions.microsoft.com> wrote in message
news:b71401c3ec8e$2f5b7560$a001280a@phx.gbl...
Hi,
trying to detect if IIS is installed before deploying
a .NET web application locally. (Unfortuneatly, VS setup
tool checks for Framework first and then for IIS.)

Tried s.th. like this:
Set IIsObject = GetObject("IIS://localhost/w3svc")

Then checking for error. But in Windows XP it does not
work...Any ideas?

 >> Stay informed about: detect IIS installation 
Back to top
Login to vote
anonymous1134

External


Since: Feb 06, 2004
Posts: 2



(Msg. 3) Posted: Fri Feb 06, 2004 5:41 am
Post subject: Re: detect IIS installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I check for IIS object in a batch file.
First executing the vbs.
Then I check for errorlevel in batch file.
I do not get an errorlevel but a syntax error in XP.


 >-----Original Message-----
 >What do you mean by it does not work on Windows XP?
 >
 >If IIS is installed and minimally functional, that line
will succeed. If
 >IIS is not installed or not functional, that line will
fail.
 >
 >IIS is not installed by default on Windows XP or Windows
Server 2000 while
 >it is installed by default on Windows 2000.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"LK" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in
message
 >news:b71401c3ec8e$2f5b7560$a001280a@phx.gbl...
 >Hi,
 >trying to detect if IIS is installed before deploying
 >a .NET web application locally. (Unfortuneatly, VS setup
 >tool checks for Framework first and then for IIS.)
 >
 >Tried s.th. like this:
 >Set IIsObject = GetObject("IIS://localhost/w3svc")
 >
 >Then checking for error. But in Windows XP it does not
 >work...Any ideas?
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: detect IIS installation 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Sat Feb 07, 2004 7:33 pm
Post subject: Re: detect IIS installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try writing VBScript code that can handle errors (ON ERROR ... ), especially
for conditions that your code can expect to encounter. IIS is not installed
by default on XP.

You can also passively detect if IIS has been installed (but you have no
idea whether it works or not) by checking the Registry key
HKLM\Software\Microsoft\InetStp . GetObject tells you that IIS is "working"
and thus probably installed.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"LK" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:bcff01c3ec9d$ba5c7d30$a601280a@phx.gbl...
I check for IIS object in a batch file.
First executing the vbs.
Then I check for errorlevel in batch file.
I do not get an errorlevel but a syntax error in XP.


 >-----Original Message-----
 >What do you mean by it does not work on Windows XP?
 >
 >If IIS is installed and minimally functional, that line
will succeed. If
 >IIS is not installed or not functional, that line will
fail.
 >
 >IIS is not installed by default on Windows XP or Windows
Server 2000 while
 >it is installed by default on Windows 2000.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"LK" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in
message
 >news:b71401c3ec8e$2f5b7560$a001280a@phx.gbl...
 >Hi,
 >trying to detect if IIS is installed before deploying
 >a .NET web application locally. (Unfortuneatly, VS setup
 >tool checks for Framework first and then for IIS.)
 >
 >Tried s.th. like this:
 >Set IIsObject = GetObject("IIS://localhost/w3svc")
 >
 >Then checking for error. But in Windows XP it does not
 >work...Any ideas?
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: detect IIS installation 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Unable to Detect OS - HI, I have just installed Win NT Server on at Netfinity 5500. I have upgraded to FP 6.0. I am now trying to install the option pack that comes with NT Server but it keeps coming up with unable to detect OS when going through the setup. I tells me it..

How can a control detect whether it runs in an IIS service? - Right now I use the user ("ASPNET" or "SYSTEM") to check whether my control runs in an IIS or system environment (so that it does not pop up a message box). What is the correct way to detect whether a control runs in a system (i.e. i...

How can you detect if you are running as a system service? - I have a driver product (DLL) that can be run in foreground/desktop mode and in system service mode under products such as IIS. How can I detect which mode I am running in on the users machine? thanks! -- brad www.qodbc.com - The ODBC Driver for..

How to detect active browser session? - Hi, Does any one know that, is it possible to detect a browser session from the IIS end? Is it possible to access the browser session variable from the IIS site once the browser had been closed? Thanks in advance.
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]