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.
Photo

Error while getting ProgID in InstallScript


1 reply to this topic

bhanuprakash

bhanuprakash
  • 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");
installApp.Populate;
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);
components.Populate;
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.

Thanks,
Bhanu Prakash.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • 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.