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
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.
How to use MsiInstallProduct?
Started by
Kevin Liu
, Jan 09 2004 08:04
2 replies to this topic
Posted 09 January 2004 - 09:02
Use msiexe.exe to launch your setup:
msiexec.exe /i "TheMsiFile.msi" /qn
msiexec.exe /i "TheMsiFile.msi" /qn
Edited by Glytzhkof, 09 January 2004 - 09:03.
Regards
-Stein Åsmul
-Stein Åsmul
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"
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
-Stein Åsmul