This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: List IIS 7 pools with AppCmd
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 27, 2012
03:54 PM
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:
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?
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 27, 2012
04:01 PM
Hilariously, I already found out the problem with my VBScript. :rolleyes:
Call
Call
CreateObject("WScript.Shell")instead of
WScript.CreateObject("WScript.Shell")