Home > Tech Tip Tuesday > Install/Uninstall within Windows Safe Mode

Install/Uninstall within Windows Safe Mode


3d human with big negative symbolEver have to start Windows in Safe Mode and install some software to troubleshoot or correct the problem? Or uninstall the application that was causing the problem? Good luck: Safe Mode disables Windows Installer. Sigh. Try and you’ll get a “This service cannot be started in Safe Mode” error. But what if you really want to? Trick Windows.

Trick number one: Tell Windows that Windows Installer is a “safe” service. Get into the command line and run:

REG ADD “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\
Minimal\MSIServer” /VE /T REG_SZ /D “Service” net start msiserver

Long, I know, but it’ll list the Windows Installer Service as legitimate for Safe Mode. You can actually do this trick for any service, but don’t overdo it: Safe Mode is supposed to be minimal to make sure Windows can start.

Trick number two: Run SafeMSI.exe (link included below). It’ll start the service in Safe Mode. Wow, that was easy. Bravo to Harry Bates, its author: Download SafeMSI.exe

I like the second trick better because it leaves the Windows Installer service disabled normally, but it lets you run it if you absolutely need to do so in order to uninstall something from within Safe Mode. In the event that Windows Installer was causing the problem that forced you into Safe Mode to begin with (unlikely, but that’s why the service isn’t on the safe list by default), the second trick will still allow Safe Mode to get you going in a minimal configuration.

(Thanks to Martin Herbener for pointing out a problem with the registry key which was fixed in the article on 3/1/2010; Sometime after the article was published JSI, which hosted SafeMSI.exe was folded into the WindowITPro family, and the link was updated on 3/27/2010)
About these ads
  1. Jul 23, 2010 at 01:01

    Hi,

    When I run this win gives me a ‘Too many command-line parameters’ Error…

    Which probably has to do with the quotes around “Service” while the to-be-inserted-data continues after that.

    Wrapping the quotes around “Service net start msiserver” doesn’t seem to work…

    Any suggestions?

  2. martin
    Nov 20, 2009 at 10:13

    Hi,

    Just want to point out that your reg add command needs to have “system” between HKEY_LOCAL_MACHINE and CurrentControlSet, like this:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\…

    At least, it does for Windows 2008 R2…

    thanks

    Martin

  1. Jul 16, 2013 at 19:06
  2. Jan 4, 2011 at 22:23

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 549 other followers

%d bloggers like this: