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

Using MsiInstallProduct function


2 replies to this topic

limors327

limors327
  • Members
  • 6 posts

Posted 07 February 2006 - 13:58

Hello,

I am writing a code which launches msiexec process.
I wonder what is the best way, using MsiInstallProduct or CreateProcess.
Does MsiInstallProduct call the same functions & actions order in the MSI as it is called using CreateProcess function? Are there any familiar restrictions?
Please advice,

Appreciate your help. rolleyes.gif
Thanks in advance,
Limor

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 February 2006 - 19:01

I believe there's no significant difference between calling msiexec.exe and calling MsiInstallProduct, but the latter may be more suitable if you want to wait for the complettion of the instalaltion.

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 07 February 2006 - 20:23

Logging is different. To get logging, you must call MsiEnableLog() in advance, but I never got the parameters right: when adding all documented flags, the log files were (almost) empty, and when adding 0x0ffffffff, I get even more log enties than Msiexecs' verbose logs. Further, the promised "flush after every 20 lines" didn't work - I have no idea how Msiexec manages to do so.