Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Error while getting ProgID in InstallScript

1 reply to this topic


  • Members
  • 2 posts

Posted 13 September 2003 - 14:37

Hi All,

Please look at the following piece of IS script code in one Custom Action,

set installCatalog = CreateObject ("COMAdmin.COMAdminCatalog");
set installApp = installCatalog.GetCollection("Applications");
countApp = installApp.Count;
for i = countApp-1 downto 0 step 1
nResultInstall = ListGetFirstString (listList2, svStringInstall);
while (nResultInstall != END_OF_LIST)
set components = installApp.GetCollection("Components", installApp.item(i).Key);
totalCom = components.Count;
for k = totalCom-1 downto 0 step 1
dllName = components.item(k).value("DLL");
progID = components.item(k).value("ProgId");

The entire code is working except the last line.
I am able to get the dllName, but I am not getting the ProgID.

Can anybody help me in this.

Bhanu Prakash.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 15 September 2003 - 15:06

Just a guess: are those entries case sensitive? In this case try ProgID instead of ProgId.