cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alexlbl
Level 2

List IIS 7 pools with AppCmd

I want to show the user a combobox of Application Pools available in IIS in my InstallShield interface.

I can list the pools in IIS7 with the following command:

appcmd.exe list apppool

How do I run this command and read its output so I can populate the combobox?

- I tried VBScript, but WScript.CreateObject("WScript.Shell") fails when run in the InstallShield context due to some security thing I didn't get into

Can I do this with InstallScript, how? Can I make it work with VBScript, how? Is there any other alternative?
Labels (1)
0 Kudos
(1) Reply
alexlbl
Level 2

Hilariously, I already found out the problem with my VBScript. :rolleyes:

Call
CreateObject("WScript.Shell")
instead of
WScript.CreateObject("WScript.Shell")
0 Kudos