开发者

Specify norestart on msi installation executed through visual c++ app

开发者 https://www.devze.com 2023-02-13 23:23 出处:网络
I am using the MsiConfigureProduct function to install/uninstall an app that restarts after installation.I want the the install/uninstall to be silent and unattended but I cannot figure out how to mak

I am using the MsiConfigureProduct function to install/uninstall an app that restarts after installation. I want the the install/uninstall to be silent and unattended but I cannot figure out how to make it norestart.

To make the install/uninstall silent i used

MsiSetInternalUI(INSTALLUILEVEL_NONE, 0);

To achieve this from the command line i use

msiex开发者_运维知识库ec /i InstallPCKG.msi /quiet /norestart 

I would like to use the msi.dll api so i can determine if the install/uninstall was successful

Thanks for any help!


You can use MsiConfigureProductEx and set the command line to

REBOOT="ReallySuppress"

http://msdn.microsoft.com/en-us/library/aa371101(VS.85).aspx


Why do you need/want to use msi.dll ? Isn't the return code from msiexec enough (and easier) to figure out the result ? It should be zero on success and non zero on failure.

0

精彩评论

暂无评论...
验证码 换一张
取 消