PDA

View Full Version : Update of ModuleDependency with Automation Interface



bcaron
12-04-2003, 08:00 AM
Hi,
I try to use the Developer Automation Interface with Perl to update my merge modules. I cannot find any way to update the merge module dependencies.

I saw we can use directly the windowsInstaller object. I success in VB but I have a problem when I convert the script in Perl.

I get always the same error member not found.

==========================================
my $mode =1;
my $oMSI = Win32::OLE-> new('WindowsInstaller.Installer');
my $oDB = $oMSI->OpenDataBase("D:\\MyProject.ism",$mode ) ||
die "Could not access ism database" . Win32::OLE->LastError;

# DROP A TABLE
my $objView = $oDB-> OpenView("DROP TABLE ModuleDependency") ||
die "Fail to DROP TABLE " . Win32::OLE->LastError;
=========================================

Any Idea?