ComboBox Problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ebirajit
Posts: 15
Joined: Tue May 25, 2010 3:43 pm

ComboBox Problem

Dear all,

Below script will list all available application pool on IIS

option explicit
dim AppsInPool, objAppPool, index, IISObj, IISPath, Version, pos
Dim Versions(), objAppPools

Set objAppPools = GetObject("IIS://localhost/W3SVC/AppPools")
for each objAppPool in objAppPools

Set objAppPool = GetObject("IIS://localhost/W3SVC/AppPools/" & objAppPool.Name )
WScript.echo objAppPool.Name
next


I have modified according to my requirements as shown below

dim AppsInPool, objAppPool, index, IISObj, IISPath, Version, pos
Dim Versions(), objAppPools
Dim idx

Const comboProp = "COMBOBOX_APPPOOL_PROP"
Const orderStart = 10
Const orderDelta = 5
Const SEP_1 = "#"
Const SEP_2 = "|"

AIComboData = comboProp & SEP_1 & CStr(orderStart) & SEP_1 & CStr(orderDelta)
' used as index; first env. var. will be selected in combo
idx = -1


Set objAppPools = GetObject("IIS://localhost/W3SVC/AppPools")
for each objAppPool in objAppPools
Set objAppPool = GetObject("IIS://localhost/W3SVC/AppPools/" & objAppPool.Name )
AIComboData = AIComboData & SEP_2 & objAppPool.Name & SEP_1 & objAppPool.Name

next


Session.Property("AI_COMBOBOX_DATA") = AIComboData
Session.DoAction("PopulateComboBox_1")


when i run the MSI file with the above scripts on Windows7 PC it list all the application pools perfectly.
When i run the MSI file with the above scripts on Windows2003 it is not at all showing all the application pools.

Please tell me your suggestions...
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ComboBox Problem

Hi,

I'm afraid that we don't debug user custom actions. However starting from version 7.7 of Advanced Installer you have the possibility to use our built-in wizards from
the IIS page to browse for IIS virtual directories, sites and application pools.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ebirajit
Posts: 15
Joined: Tue May 25, 2010 3:43 pm

Re: ComboBox Problem

Hi Bogdan,

Thanks for your information.Browse Application Pools..... wizard provides all the functionalitites.I have tried it.It works fine.I have found out another issue with the combobox.

Browse Application Pools..... list all available application pool in the combobox IISBrowsePoolsComboBox.

When the user selects any one application pools from the combobox IISBrowsePoolsComboBox i am passing this property to the VirtualDirectories application pool
Use existing application pool like [ISBrowsePoolsComboBox].This [ISBrowsePoolsComboBox] property is not working than expected.Virtual Directories are always installed to DefaultAppPool.


I have tried another option.I have assigned the [ISBrowsePoolsComboBox] to another text box EDIT_1_PROP and then assinged it to the VirtualDirectories application pool Use existing application pool like [EDIT_1_PROP].This works perfectly.

Could you please tell me your suggestions.

Thanks.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: ComboBox Problem

Hi,
I have tried another option.I have assigned the [ISBrowsePoolsComboBox] to another text box EDIT_1_PROP and then assinged it to the VirtualDirectories application pool Use existing application pool like [EDIT_1_PROP].This works perfectly.
This is correct to happen. What happens is that "ISBrowsePoolsComboBox" is a private property, this means its value will not be passed from the UI to the InstallExecuteSequence of the installation.

The solution is to use another public property (written with upper case letters) to pass its value, just as you did.

Here you can read more about public and private properties.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ebirajit
Posts: 15
Joined: Tue May 25, 2010 3:43 pm

Re: ComboBox Problem

Hi Bogdan,

Thanks for the clarification.

Thanks,

Return to “Common Problems”