ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart

Asked By 60 points N/A Posted on -
qa-featured

ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success.

I have a code in C++ that supposed to install an MSI using windows API. For some reason, sometimes the return value of the function MsiInstallProduct(InstallerPath, CommandLine); is 0 (success) and sometimes it is 1641 (ERROR_SUCCESS_REBOOT_INITIATED). From the MSDN:(http://msdn.microsoft.com/en-us/library/windows/desktop/aa368542(v=vs.85).aspx)

ERROR_SUCCESS_REBOOT_INITIATED = 1641 = The installer has initiated a restart. This message is indicative of a success.

I came up with nothing after I have looked all over the internet. I want to know, the reason for the MsiInstallProduct to sometimes return 0 and sometimes 1641. And what is the reason in general that will cause the MsiInstallProduct to return 1641.

Thank you!

SHARE
Answered By 0 points N/A #191403

ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart

qa-featured

Hello Adams,

You will need to locate the ReplacedInUseFiles property, and the string 'in use' – a  sign of locked files, a typical trigger for reboots. Usually the  MSI will ask the user if they want to reboot in this case. But in the event that the install is silent then MSI will do this for you automatically. If you want to take control of behavior, then you will need to do that using the REBOOT and REBOOTPROMPT properties.

Regards,

Nicke

 

Related Questions