1641: The install worked and the installer started a restart
Not a failure. The install finished and the installer itself started a restart. SCCM treats 1641 as a hard reboot code by default.
What 1641 means
Exit code 1641 means "The installer has initiated a restart". The install worked. The installer did not wait for you. It started the restart itself.
You see it in AppEnforce.log for applications and in execmgr.log for packages. A new deployment type lists 1641 on its Return Codes tab as "Hard Reboot". SCCM counts it as a success and expects the computer to restart.
Common causes
- The MSI ran with a switch that allows or forces a restart, such as
/forcerestart. - The MSI needs a restart and no switch tells it to hold back.
- A setup program wraps the MSI and passes the code on.
- The return code is missing from the Return Codes tab, so SCCM shows it as a failure.
How to fix 1641
-
Decide who should restart the computer
A restart started by the installer gives the user no warning from SCCM. It also ignores maintenance windows. In most cases you want SCCM to do the restart. Then the client shows the restart prompts from your client settings.
-
Stop the installer from restarting
Open the deployment type and go to the Programs tab. Add
/norestartto themsiexeccommand, or add the propertyREBOOT=ReallySuppress. The MSI then returns 3010 when it needs a restart, and SCCM handles the restart.For a setup program that is not an MSI, use the vendor's no-restart switch.
-
Check the return codes and the restart behavior
On the Return Codes tab, check that 1641 is listed as "Hard Reboot" and 3010 as "Soft Reboot". On the User Experience tab, set the restart behavior to "Determine behavior based on return codes". SCCM then acts on the code the installer returns.
-
Take care in a task sequence
A restart that the task sequence did not start can break it. The task sequence loses its place and may fail or stop. Always suppress the restart in the install command. Then add a Restart Computer step after the install if the software needs one.
-
Read the logs if a device looks failed
If the console shows the device as failed, open
AppEnforce.log. Check how the client matched the exit code. After the restart, run "Application Deployment Evaluation Cycle". The detection method should then find the application.
Commands that help
msiexec.exe /i "app.msi" /qn /norestart
Turn any hex or decimal error code into its meaning, or search every code on this site.