7
3
The following is a hack, but for what I need it for its fine.
I created a C# program that shows some EULA text and has an Agree and Disagree button.
I set the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
to launch that program.
When the computer boots, the normal login prompt shows.
After logging in, the custom EULA program launches.
There is no explorer shell, no start menu, no background, etc. (which is what I want).
The disagree button shuts down the pc and works fine.
I want the Agree button to load the normal windows explorer shell (start menu, background, etc).
I used the following C# command: Process.Start("explorer.exe");
However this launches an explorer window, not the shell. I want the shell to launch.
What am I missing?
https://stackoverflow.com/a/18399877/4775650 - Working well for me – mt025 – 2018-05-10T15:07:26.897
2is explorer.exe already running as the desktop process when you invoke it? if there is no instance of explorer running for the login, it will spawn the desktop process, but if it is already running, it will spawn an explorer window. in what context is your application running? I assume it is before login? if not, the netlogin process has probably already spawned your desktop process. – Frank Thomas – 2013-09-12T16:45:02.170
No, explorer.exe is not running when the custom shell is launched. It doesnt run till I click the agree button. I assume I need to start something other than explorer.exe... I dont know... – Keltari – 2013-09-12T17:04:44.820
Are you doing this for RDP connections or do you need to show your EULA for locally logged on users too? If RDP only try using this group policy (the site can be flaky in non IE browsers) instead of the registry key you are using.
– Scott Chamberlain – 2013-09-12T17:41:59.347looking at this article, it doesnt look like this method will work... http://social.technet.microsoft.com/Forums/windows/en-US/51e7090e-f367-4d0a-b737-b2feacf9b5ae/how-to-start-windows-shell-explorerexe-when-custom-shell-is-configured
– Keltari – 2013-09-12T19:28:54.750I was wasting to much time trying to do a shell replacement. I just ended up creating a non moveable window that launches at startup and cant be closed with an alt-f4. Good enough for what I need to do. I am still wondering if this is possible... but as my previous comment states, it doesnt look like it. – Keltari – 2013-09-13T03:11:31.500
1I'd highly question the need to replace the entire Shell just to show a EULA. Global solution to a local problem. – surfasb – 2013-09-14T04:11:44.063