Inno Setup: Iterate through array of type Variant (from OleObject)
问题 I'm trying to read and write to the IIS 6 metabase using Inno Setup. I can't figure out how to access arrays though. IIS := CreateOleObject('IISNamespace'); Compr := IIS.GetObject('IIsCompressionScheme', 'localhost/W3SVC/Filters/Compression/deflate'); Arr := Compr.HcScriptFileExtensions; { ... [code to iterate and add items] here ... } Compr.SetInfo(); The metabase editor calls the object type I'm trying to access a "multi-string". VarType(Arr) yields 0x200C as type (see http://www.jrsoftware