c# - How do I start windows 7 explorer in desktop mode when an application is runnig as shell? -


i wrote application parking garage has "fool proof"... 1 of things i'm doing start application shell instead of explorer. (hklm\software\microsoft\windows nt\currentversion\winlogon\shell set application).

inside application implemented little service dialog, protected user, allows me start e.g. explorer. i'd need way start explorer desktop.

is there way this?

according this discussion on technet it's not possible.

it not possible set explorer shell without designating shell in registry key.

keeping explorer shell in registry, killing explorer.exe , launching shell work option you?

i dont see other clean way around.

one user posted possible solution though.

change hkey_local_machine\software\microsoft\windows nt\currentversion\winlogon\shell "explorer.exe"

run "userinit.exe"

change hkey_local_machine\software\microsoft\windows nt\currentversion\winlogon\shell custom shell

my code (autoit) regwrite('hkey_current_user\software\microsoft\windows nt\currentversion\winlogon','shell',"reg_sz",'explorer.exe') run('userinit.exe') processwait('explorer.exe') regwrite('hkey_current_user\software\microsoft\windows nt\currentversion\winlogon','shell',"reg_sz",@scriptfullpath) 

i've had similar thing in past, mobile device running in kiosk mode. debugging purposes on-site did this:

  • on application startup, check config setting debug = true. if so, boot explorer.exe instead.
  • connect device, set setting , reboot if want debug.