Click here to Skip to main content
15,919,479 members
Home / Discussions / C#
   

C#

 
GeneralWindows Service in Windows XP Pin
ksanju100012-Jul-05 20:40
ksanju100012-Jul-05 20:40 
GeneralRe: Windows Service in Windows XP Pin
Dave Kreskowiak13-Jul-05 2:29
mveDave Kreskowiak13-Jul-05 2:29 
GeneralRe: Windows Service in Windows XP Pin
ksanju100013-Jul-05 4:14
ksanju100013-Jul-05 4:14 
GeneralRe: Windows Service in Windows XP Pin
Dave Kreskowiak13-Jul-05 5:06
mveDave Kreskowiak13-Jul-05 5:06 
GeneralProblem in creating objects of derived class Pin
tttyip12-Jul-05 20:28
tttyip12-Jul-05 20:28 
GeneralRe: Problem in creating objects of derived class Pin
S. Senthil Kumar12-Jul-05 21:15
S. Senthil Kumar12-Jul-05 21:15 
GeneralRe: Problem in creating objects of derived class Pin
tttyip13-Jul-05 16:11
tttyip13-Jul-05 16:11 
GeneralIIS Root Path location Pin
Sau Fan Lee12-Jul-05 17:28
Sau Fan Lee12-Jul-05 17:28 
Hi, I'm trying to find out where the root path (ie. the physical folder of "http://mydomain.com/") is programmatically, but I'm not sure how to do this. After researching a bit, I came up with the following information:-

  1. In Wise Installer and Install Shield they check for the registry value under HKLM\Software\Microsoft\InetStp\PathWWWRoot, but this only points to the default folder at installation, not the current (possibly moved) folder location.
  2. In Windows XP, I'm able to find the correct location under HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\Virtual Roots, but this key does not exist in Windows 2003 Server operating system. In fact, on Windows 2003, I can't find the correct location anywhere in Registry! Is there a way to locate the right folder independent of any machine?
  3. I know that in .NET it is possible to use System.DirectoryServices.DirectoryEntry("IIS://mydomain.com/W3SVC") to locate the correct path, but I'm trying to find an easier way to do this - by using only files and registry. Using DirectoryEntry to query the IIS service may also result in a permission denied problem.

What I'm trying to do is to build a setup package in Install Shield to deploy a web-application. Since Install Shield can't locate the IIS root path correctly, I have to manually set the path myself. The capability of the Install-Script that comes with Install-Shield is limited, therefore I cannot use the third option above.

So can anyone shed a light here? Thanks in advance!



> whoami
The system is unable to identify you when you don't even know your name!
GeneralRe: IIS Root Path location Pin
Expert Coming12-Jul-05 18:02
Expert Coming12-Jul-05 18:02 
GeneralMs Word Field Codes Pin
bootn12-Jul-05 17:05
bootn12-Jul-05 17:05 
GeneralRe: Ms Word Field Codes Pin
ekynox13-Jul-05 19:29
ekynox13-Jul-05 19:29 
GeneralSave as "TXT" File Pin
tatchung12-Jul-05 15:47
tatchung12-Jul-05 15:47 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 17:28
protectorChristian Graus12-Jul-05 17:28 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 17:36
tatchung12-Jul-05 17:36 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 17:45
protectorChristian Graus12-Jul-05 17:45 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 17:53
tatchung12-Jul-05 17:53 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 17:55
protectorChristian Graus12-Jul-05 17:55 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 18:03
tatchung12-Jul-05 18:03 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 18:12
protectorChristian Graus12-Jul-05 18:12 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 18:23
tatchung12-Jul-05 18:23 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 18:27
protectorChristian Graus12-Jul-05 18:27 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 18:34
tatchung12-Jul-05 18:34 
GeneralRe: Save as "TXT" File Pin
Christian Graus12-Jul-05 18:43
protectorChristian Graus12-Jul-05 18:43 
GeneralRe: Save as "TXT" File Pin
tatchung12-Jul-05 18:50
tatchung12-Jul-05 18:50 
GeneralRe: Save as "TXT" File Pin
Luis Alonso Ramos13-Jul-05 6:36
Luis Alonso Ramos13-Jul-05 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.