Results 1 to 20 of 20

Thread: [RESOLVED] Changing default shell application

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Resolved [RESOLVED] Changing default shell application

    Hi, good day everyone.
    I tried changing the default shell of my PC. I changed
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" i set Shell=MyApp.exe instead of the default which is Explorer.exe. I made this change because i want my application to run before the windows explorer. Then when my app closes, it will shell windows explorer for normal use. My problem is that when i run Explorer.exe form my app, windows explorer didn't run normally. It only showed an exploer window. No taskbar or desktop items shown. How can i fix this?

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Changing default shell application

    Why you need your app to run before explorer ? What does it do ?
    May be there is an alternative.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Changing default shell application

    it's for Internet Cafe software. It is used to lock the workstation when nobody is renting it. Currently, i added my app in windows startup so my client app would run when windows loads. But this can easily be bypassed. So to make my workstations more secure, i need my app to run before windows explorer.

  4. #4
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Changing default shell application

    Installing

    'STEP 1
    HKEY_LOCAL_MACHINE , "Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\system.ini\boot", "Shell", "USR:Software\Microsoft\Windows NT\CurrentVersion\Winlogon", REG_SZ

    'STEP 2
    HKEY_CURRENT_USER , "Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell", "c:\myFile.exe", REG_SZ

    'STEP 3
    HKEY_CURRENT_USER , "Software\Microsoft\Windows\CurrentVersion\Explorer", "DesktopProcess", 1, REG_DWORD

    'STEP 4
    HKEY_CURRENT_USER , "Software\Microsoft\Windows\CurrentVersion\Explorer\BrowseNewProcess", "BrowseNewProcess", "yes", REG_SZ

    Uninstalling (put back explorer shell)

    'STEP 1
    HKEY_LOCAL_MACHINE , "Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\system.ini\boot", "Shell", "SYS:Microsoft\Windows NT\CurrentVersion\Winlogon", REG_SZ

    'STEP 2 - ***** DELETE *****
    HKEY_CURRENT_USER , "Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell"

    'STEP 3
    HKEY_CURRENT_USER , "Software\Microsoft\Windows\CurrentVersion\Explorer", "DesktopProcess", 0, REG_DWORD

    'STEP 4
    HKEY_CURRENT_USER , "Software\Microsoft\Windows\CurrentVersion\Explorer\BrowseNewProcess", "BrowseNewProcess", "no", REG_SZ

  5. #5
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Changing default shell application

    Also there is a Kiosk Mode for Internet Explorer ..

    I have a complete example with the shell and all, if you want to download it .. PM me ..

    Rory

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Changing default shell application

    thanks Rory, i'll try this out in a while. Sent you a PM

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Changing default shell application

    If its for an Internet Cafe then you should be running in a network environment where you can apply Group Policies to remove resources from the logon session. This is the proper method to do what your asking for.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Changing default shell application

    Hi Robdog, can you tell me how to set up Group Policies?

    But I still want my client app to run before windows explorer. For some reason, my client app seems to run after other application in starup. And users of the workstation can already launch other applications before my app runs because windows explorer is already running and they can access the program menu. I don't want that to happen.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Changing default shell application

    rory, i tried post #4 and it works great. thanks

  10. #10
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: [RESOLVED] Changing default shell application

    Ok,i sent you that app to test also ..

    Also remember to give them the choice to uninstall it back to Explorerer ..

    Also, Running the program as the Shell is not always the best idea but if its a simple program then .. should be okay .. the blackbox lite shell is what I use though and run my programs ontop of that ..

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Changing default shell application

    Group policies run before windows startups and before services.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: [RESOLVED] Changing default shell application

    Quote Originally Posted by RobDog888
    Group policies run before windows startups and before services.
    Thats to do with the login right ..? Cause yeah that comes up before Windows Shell ..

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Changing default shell application

    Yes. You can do so many things with policies. Even more when your working with a network and server. Over 1000 settings. Hide desktop icons, remove startmenu items, hide mapped drives, configure IE settings and limits, prevent certain programs from running, remove the shutdown button, etc etc etc
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  14. #14
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: [RESOLVED] Changing default shell application

    I remember they had something like that back in the Windows 95 days .. came on the 95 CD and let you only allow certain proggies etc .. locked myself out once ! had to reformat ..

    I still like the Shell .. but Ill look for the policies part also .. though Id need to be able to change them through VB .. know if that is possible ..?

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Changing default shell application

    I think you can change policies through VB but you must be an admin anyways. I havent done it but I remember reading that there was the possibility.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: [RESOLVED] Changing default shell application

    what tool can i use to manage group policies? does it come with windows or do i have to download it?

    can i also set user-specific policies instead of setting policies to a group?

  17. #17
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Changing default shell application

    you can do both, Group or User specific. It comes with NT based OS' and you dont need to download anything.

    What OS are you running?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  18. #18

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: [RESOLVED] Changing default shell application

    I'm using Windows XP home/Windows XP Pro.

  19. #19
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Changing default shell application

    Control Panel > Administrative Tools > Local Security Policy.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  20. #20

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: [RESOLVED] Changing default shell application

    Thanks hmm.. can i set a policy on one PC then apply the same policy to another without manually doing it over & over again? like can i copy a policy setting on one PC to another?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width