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

How to use MsiInstallProduct?


2 replies to this topic

Kevin Liu

Kevin Liu
  • Members
  • 1 posts

Posted 09 January 2004 - 08:04

Hi,

I want to call MsiInstallProduct API to launch an InstallScript MSI project in silent mode, without using the setup.exe.
But when calls the function, it always show an error dialog.

How should I do?

Thanks.

Kevin

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 09 January 2004 - 09:02

Use msiexe.exe to launch your setup:

msiexec.exe /i "TheMsiFile.msi" /qn

Edited by Glytzhkof, 09 January 2004 - 09:03.

Regards
-Stein Åsmul

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 09 January 2004 - 09:06

Ah, sorry. Installscript project... The above command line will work for a basic msi file.

I guess you would need to create a response file for the setup and then run the setup with a command line. I think it is possible to pass command lines to the msiexec command from the setup.exe command line by adding /V. Sample:

setup.exe /V"/L*v c:\test1.log"
Regards
-Stein Åsmul