So this is an old post, but seems to be one of the only ones I can find on the web relating to SCCM 2012 deployment and the SYSTEM user account installation/uninstallation causing the explorer.exe to be closed and NOT reopen after install/upgrade/uninstall. I have been fiddling with this for days, gone through iterations or using MSI directly, EXE with command line options, etc. I got past the explorer crashing and not reopening issue using EXE (as it seems to reopen the windows where MSI did not) and some scripting when running the installer as the admin of the machine, but when run through SCCM (which uses SYSTEM) account explorer still crashes/closes and doesn't reopen in the logged in users context.
Here is the two scripts I have come up with. I am using 4.2.5c installer. Upgrading from 4.1.0. They work perfectly when run as logged in user to avoid explorer even closing, but not in SCCM.
- Modified the "Install.cmd" file to be:
Code:
@echo off
cls
REM %~dp0 = <path script is executed from with trailing slash>\
REM Close out the Classic Start Menu to avoid explorer.exe issues
echo Exiting Classic Start Menu...
IF EXIST "C:\Program Files\Classic Shell\ClassicStartMenu.exe" ("C:\Program Files\Classic Shell\ClassicStartMenu.exe" -exit)
IF EXIST "C:\Program Files (x86)\Classic Shell\ClassicStartMenu.exe" ("C:\Program Files (x86)\Classic Shell\ClassicStartMenu.exe" -exit)
REM Import the default and some required settings to registry
echo Importing registry settings...
REG IMPORT "%~dp0ClassicStartMenu-BASD-IMPORT.reg"
REM Start installation of ONLY Classic Start Menu
echo Installing Classic Start Menu...
"%~dp0ClassicShellSetup_4_2_5c.exe" /qn ADDLOCAL=ClassicStartMenu /l*v %temp%\ClassicShellSetup_Install.log
- Modified the "Uninstall.cmd" file to be:
Code:
@echo off
cls
REM %~dp0 = <path script is executed from with trailing slash>\
REM Close out the Classic Start Menu to avoid explorer.exe issues
echo Exiting the Classic Start Menu...
IF EXIST "C:\Program Files\Classic Shell\ClassicStartMenu.exe" ("C:\Program Files\Classic Shell\ClassicStartMenu.exe" -exit)
IF EXIST "C:\Program Files (x86)\Classic Shell\ClassicStartMenu.exe" ("C:\Program Files (x86)\Classic Shell\ClassicStartMenu.exe" -exit)
REM Delete the default and some required settings from the registry
echo Removing any registry entries...
REG DELETE HKLM\SOFTWARE\IvoSoft /f
REM Start uninstallation of the Classic Start Menu
REM Had to use "%%" to escape the % so it would send through the commandline
echo Uninstalling Classic Start Menu...
"%~dp0ClassicShellSetup_4_2_5c.exe" /x %%MSI%% /qn /l*v %temp%\ClassicShellSetup_Uninstall.log
Please someone help me out this is beyond frustrating.