Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 12-19-2008, 03:12 AM   #1 (permalink)
Andrew
Guest
 
Posts: n/a
Default Enumerating websites with ADSI and C++

Hi All,

I seem to have hit a bit of a stumbling block here, I want to add a new page
into my installer that will display a list of available web sites in IIS. I
have a dll written in C++ it uses ADSI to configure my web application
already, but what I would like to do is add a method that will generate a
list of web sites so I can then display them in a combo.

I have found several examples of how to do this with vbscript, c# and java
script. but I can't find one at all with respect to C++. Maybe I'm not
googling it correctly :-)

Has anyone done this before or have a link I can go to to see how it's done?

I can get the root object of IIS using the follwing code:

ADsGetObject(L"IIS://localhost/w3svc", IID_IADsContainer,(void**)&pCont)

And persisting the values to the MSI database is easy enough

But I can't see a way of enumerating through the apparent collection of
sites this object holds!?!? and then get the name of the site.

Any help would be greatly appreciated...

Thanks

Andrew
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:02 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com