Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Sat Sep 13, 2025 3:09 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Tue Feb 25, 2014 2:43 am 
Offline

Joined: Tue Feb 25, 2014 2:19 am
Posts: 1
Hi there

At the Moment we are trying to deploy ClassicShell 4.0.4 over the Version 3.6.8. Using the 64-bit MSI.

The Problem is that we use a System Account (SCCM) to install the MSI. So when a User is logged on, the Explorer.exe from the User is crashing every time.

The Only Solution would be, if it would be possible to close the Startmenu before the installation. (Right-Click and Exit).


We also saw that the Setup is using an application called SetupHelper.exe. With the Parameter -exitSM. This sounds something like what we are looking for.


Has anyone an idea to the problem?

Thanks in advanced.


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 25, 2014 9:04 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
To close the start menu you run "ClassicStartMenu.exe -exit". That's what "SetupHelper -exitSM" does (but it also looks up the location of the ClassicStartMenu.exe from the registry).


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 03, 2016 4:11 am 
Offline

Joined: Fri Jun 03, 2016 4:01 am
Posts: 4
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.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 03, 2016 8:23 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
Closing the start menu is not a guarantee that Explorer.exe won't have to be restarted. The start menu has a shell extension, which is loaded whenever Explorer needs it. If you want to do this automatically, manually kill Explorer in the beginning, and then restart it after.

And why are you removing registry entries prior to the uninstallation?


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 03, 2016 6:52 pm 
Offline

Joined: Fri Jun 03, 2016 4:01 am
Posts: 4
I can manually kill it before start, but it does not remember which windows are open that way. Nor can I reopen the explorer as the user logged into the machine. It will reopen them for the SYSTEM user. I remove them just to clean things out. I add them when I install. Is there an issue with doing it before the uninstall? Should I be doing that after the removal?

The scripts I posted work beautifully. Exiting the start menu has removed any of the explorer.exe crashing that I did in testing, but it is not acting the same when running as the SYSTEM account with a different user logged in to the machine.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 04, 2016 8:25 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
The uninstaller needs the information from the registry. If you want to clean up what's left, do it after.

The installer is intended to run as the interactive user, not SYSTEM. There are multiple protections in the operating system to limit the communication between users with different privileges. I'm not saying that there is no way to get SYSTEM to work, but you are deep into unsupported territory.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 4:40 am 
Offline

Joined: Fri Jun 03, 2016 4:01 am
Posts: 4
Ivo wrote:
The installer is intended to run as the interactive user, not SYSTEM. There are multiple protections in the operating system to limit the communication between users with different privileges. I'm not saying that there is no way to get SYSTEM to work, but you are deep into unsupported territory.

Well, that is unfortunate, as the millions of devices out there managed by hundreds of thousands of SCCM Admins won't be able to make full use of this handy Start Menu as users don't have Administrator access and SCCM is the way they are allowed to install programs. Windows 8.1 especially needs a start menu for normal users that can't wrap their heads around the metro interface. Luckily we'll be upgrading to Windows 10 soon and we'll no longer have need for a separate start menu.

I really think you or any other software developer is missing the boat if they don't take the time to ensure any Windows oriented program is able to be deployed and removed using Microsoft's own flagship client management software. Saying it is "deep into unsupported territory", just doesn't seem to be the way to go. Food for thought.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 10:54 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5374
@CRoth2, what if you use this way to do application installation using local administrator account instead of SYSTEM account: https://social.technet.microsoft.com/Fo ... managerosd

As for Windows 10, after using it, you might realize that Windows 8.1 with Classic Shell is better and more stable over the long term.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 07, 2016 6:46 am 
Offline

Joined: Fri Jun 03, 2016 4:01 am
Posts: 4
Gaurav wrote:
@CRoth2, what if you use this way to do application installation using local administrator account instead of SYSTEM account: https://social.technet.microsoft.com/Fo ... managerosd

I can try that, but it will likely result in the same issue...that the installer/uninstaller is being run as a different user than the person that is logged into the machine, so it will likely result in the same issue for the logged in user as the processes aren't being run in their context. Should be the same for both SYSTEM or another user. The issue the TechNet post addresses is that there are indeed some applications that just won't install at all with the SYSTEM account, so running as Admin makes it go. That shouldn't be the case for this software as it does install with SYSTEM, just has some unfortunate behavior.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 12, 2016 8:26 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
It will probably work to run the installer as SYSTEM, as long as there are no interactive users currently logged in. If there are users that are currently using the software, how do you suggest the installer do its work? Any software will have that problem - you can't change files that are currently in use.

I would suggest you do the updates overnight when everybody is logged out.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 366 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.