cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ipcquasar
Level 3

Open "msi" file via Automation interface

Hi!
I am using InstallShield 2010 via Automation interface on C++ Builder 2010.

When I try to open existing "msi" package:

Variant ISPrj;
ISPrj = CreateOleObject("ISWIAuto16.ISWiProject");
ISPrj.OleProcedure("OpenProject", "d:\\tmp\\httpd-2.2.16-win32-x86-no_ssl.msi");


I get an exception

"Unable to open file: Please make sure that the file is a valid InstallShield Developer project"

Where did I mistake?

Ps. If I open the this "msi" file via GUI it opens.

Thank you
Labels (1)
0 Kudos
(8) Replies
Not applicable

Automation interface is for InstllShield project(*.ism), not *.msi.

If you want to open existing "msi" package, you can try Orca.

Hope this helps!
0 Kudos
ipcquasar
Level 3

Thank you Kevin.Wan for quick answer.

If you want to open existing "msi" package, you can try Orca.

I have already tried Orca before InstallShield. It doesn't have COM interface.
My aim is to create application, which correct two msi packages and merge them into one msi package in automatic mode. Do you know other instrument, which help me with this task?

Kevin.Wan, As far as I understand I can't create *.ism project, add into some "msi" packages and save as msi. Is it true?
Why I can open msi via GUI interface?

PS. Sorry for my English.
Thank you
0 Kudos
ipcquasar
Level 3

Any ideas?
Deadlines approaching(((( Please help!!!
0 Kudos
hidenori
Level 17

You can modify an MSI database using the Windows Installer automation interface. Check out the previous newsletter article "Using MSI Automation to Modify a Developer Project".
0 Kudos
Reureu
Level 10

Hi,

The link you mentioned is broken.
http://www.installshield.com/news/newsletter/0203-articles/msi-automation.asp
Is it a temporary problem?

Regards
0 Kudos
hidenori
Level 17

0 Kudos
ipcquasar
Level 3

hidenori thank you so much!
This document contents information that I need.
Once again: thank you!!!!! 🙂
0 Kudos
ipcquasar
Level 3

Hi! It's me again.

I overlooked that I need to edit not only database, but files to(((
How can I edit set of "files of MSI package" (not MSI files, such as icons, install dialogs, etc.)? Is it possible via automation interface/COM?

Thank you
0 Kudos