Specify norestart on msi installation executed through visual c++ app
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.
精彩评论