Well, once you have the script, what do you need to do next? Well, below are the steps for creating your very own Browse IIS Dialog: ObjView.Modify 7, objRecord ' (7 = msiViewModifyInsertTemporary) ObjView.Execute objRecord ' now add the record to the table ObjRecord.StringData(4) = objIisWebSite.Name ' text ObjRecord.IntegerData(3) = objIisWebSite.Id ' value ObjRecord.IntegerData(2) = lngOrder ' order ObjRecord.StringData(1) = sPropertyName ' property name Set objRecord = objInstaller.CreateRecord(4) ' add site name to ComboBox table (which is used by our dialog ComboBox) Set oWebSites = oWebAdmin.InstancesOf( "Site") 'Obtain instances of the Web Sites on the server Set oWebAdmin = GetObject( "winmgmts:root\WebAdministration") ' Connect to the WMI WebAdministration namespace. ' enumerate webservers on localhost and populate ComboBox tableSet Set objView = objDB.OpenView( "select * from ComboBox") ViewList.Modify 6, recList ' 6 = deleteSet Set viewList = objDB.OpenView( "SELECT * FROM ComboBox") 'passed in as a parameter to the function 'This function populates the dropdownlist using the specified property name 'Call the function to populate the dropdown list with the appropriate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |