Is there a really-really-really-don't-reboot parameter for msiexec?

7

The windows installer seems not to feel like uninstalling Office 2010 Professional Plus. Instead, it keeps going into a reboot. Even after starting the process with msiexec /norestart -x.

Is it true, REBOOT=ReallySuppress is a really-don't-reboot option for msiexec? And if so, is there a really-really-don't-reboot option, or, even better, a really-really-really-don't-reboot option? Can anybody tell the name of the strongest reboot disabling option, so I can uninstall Office, please?

artistoex

Posted 2012-05-25T09:58:40.030

Reputation: 3 353

I believe what is really wrong here is that the office package contains a custom action that is rebooting the system in a non-standard way. It is likely visible towards the end of the InstallExecuteSequence table. Ideally this would be fixed during application packaging before deploying the product, but it can be fixed after deployment by using a minor upgrade patch to remove the custom action before uninstalling. This is not that easy, but the only valid option professionally that is using standard Microsoft technologies and will remain reliable. Don't use any of the hacks here. – Stein Åsmul – 2014-06-21T09:17:28.853

Related: http://stackoverflow.com/questions/7558882/silent-windows-installer-installer-without-rebooting-automatically. @SteinÅsmul might recording a log file with /L*V pin down what's prompting the reboot in custom installer action? (ref1, ref2).

– matt wilkie – 2015-06-23T21:49:47.713

REBOOT=ReallyTimesInfinitySuppress? It feels like the MSI and Office are bickering 1st graders. – fire.eagle – 2012-05-25T14:55:49.823

Answers

5

The strongest "don't reboot" option in Windows is to temporarily remove the "Shut down the system" and "Force shutdown from a remote system" privileges from "Administrators" and "Users", using secpol.msc. In this way, it will be enforced by Windows, regardless of how the particular installer or MSI package is written.

Note: User privilege changes apply only when you log in.

Note: You may have to remove the Users group as well, since interactive logons automatically belong to this group.

Note: In some cases, it might be better to use the "Token" tab in Process Hacker to directly remove these privileges (SeShutdownPrivilege and SeRemoteShutdownPrivilege) from the program, instead of doing it system-wide.

user1686

Posted 2012-05-25T09:58:40.030

Reputation: 283 655

This seems like somewhat mad advice to me :-). I would not use this "method". It never succeeds to hack Windows at this core service level. Especially with regards to privileges. – Stein Åsmul – 2014-06-21T09:12:05.003

The concern is that changes like this causes side-effects that are even worse than rebooting. For example a system that refuses to reboot altogether, or worse. – Stein Åsmul – 2019-04-03T14:00:24.963

Thank you, it sounds great. I've opened secpol but can't find the user privilege settings. Where exactly are they? – artistoex – 2012-05-25T10:45:28.393

They are under Local Policies - User Rights Assignment. – user1686 – 2012-05-25T10:51:04.913

1Administrators that can't shut down the system? That sounds.. weird, and dangerous. – Bob – 2012-05-25T10:51:08.040

@Bob: When a software bug attacks you, sometimes you have to pull out the heavy weapons. – user1686 – 2012-05-25T10:55:39.917

1@grawity Thanks. I cleared the whole list. After logging off and on again, I no longer see the shutdown option in the start menu. However, Windows Installer still keeps rebooting. – artistoex – 2012-05-25T11:01:48.757

@grawity Maybe there is a really-really-deny-reboot option? – artistoex – 2012-05-25T11:05:07.703

Maybe the Windows Installer service is just running as ... ah, of course, "NT AUTHORITY\SYSTEM", which has a hardcoded set of privileges. Maybe the ProcessHacker method would work, then – user1686 – 2012-05-25T11:07:22.320

1The ProcessHacker method worked. Thank you very much! (although it still doesn't uninstall--now it's something else. It just won't uninstall) – artistoex – 2012-05-25T11:16:54.083

How can I revert the list in the privilige dialog to its original state? How can I add roles? – artistoex – 2012-05-25T11:39:21.457

4

REBOOT=ReallySuppress is the best I know of, but if you're having trouble uninstalling Office 2010 you might want to follow the advice over here:

We recommend that you follow the provided methods in this article in order. However, if you have previously tried one of the methods to remove Office and it has failed, you can jump to another method quickly from this list:

Method 1: Uninstall Microsoft Office 2010 suites from Control Panel
Method 2: Uninstall Microsoft Office 2010 suites with Microsoft Fix it
Method 3: Uninstall Microsoft Office 2010 suites with the Program Install and Uninstall troubleshooter
Method 4: Remove Microsoft Office 2010 suites manually

ta.speot.is

Posted 2012-05-25T09:58:40.030

Reputation: 13 727

I am a deployment specialist. This is the right advice. Period. No rudeness, I just want to stress this since people do the craziest things when faced with these kinds of problems. I believe what is really wrong in this office package is that it may contain a custom action that is rebooting the system in a non-standard way. See my comment above to the original question. Custom actions must be inspected. They can contain "anything" and are often black box (impossible to inspect if they are compiled). At the very least look at the name of it - it may be called "reboot system" or similar. – Stein Åsmul – 2014-06-21T20:42:49.677

Windows itself might need to be updated to really suppress all reboots of all kinds with a special "temporary call" that can be enabled for a few minutes whilst a package deployment is done? Hacking privileges is a scary thing. – Stein Åsmul – 2019-04-03T14:01:35.347