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

Automation problem with AttachComponent method


1 reply to this topic

sriniv

sriniv
  • Members
  • 9 posts

Posted 19 July 2005 - 10:57

hi all,

I am using InstallShield X "InstallScript MSI project".
I am using perl Win32::OLE module to interface with automation objects.
I am able AddFeature,AddComponent and AddFile to the ISM.
But AttachComponent method is not working for me. It needs ISWiComponent
object as parameter, which I am providing. My code typically looks like this

use Win32::OLE;
$dev = Win32::OLE->new("ISWiAuto10.ISWiProject") ;
$dev->OpenProject("D:\automation.ism",false);
$feature = $dev->AddFeature("AM");
$comp = $dev->AddComponent("AM_update");

**$feature->AttachComponent(comp);***
$comp->AddFile("D:\sample.txt");

appreciate u r comments on this

regards,
sriniv


Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 25 September 2007 - 08:41

Did you get to the bottom of this? I am seeing the same problem, and now it is 2007...
Regards
-Stein Åsmul