Prevent application to create a registry key


  1. Posts : 6
    Windows 10 Enterprise
       #1

    Prevent application to create a registry key


    Hi, is it possible to prevent certain application to create a registry key in Computer\HKEY_CURRENT_USER\Software registry location? That registry key causes some problems - when I delete it manually problems are solved but every so often key gets created as soon as application is started.
      My Computer


  2. Posts : 9,765
    Mac OS Catalina
       #2

    What purpose would that serve. The program would never run, because there would be nothing in the registry to tell Windows where to find it to show you it, what it needs to do to find the folder, list it in the start menu, etc. If you have problems with some program, then stop trying to install it.
      My Computer


  3. Posts : 655
    Windows 10 Home
       #3

    boxikg said:
    Hi, is it possible to prevent certain application to create a registry key in Computer\HKEY_CURRENT_USER\Software registry location? That registry key causes some problems - when I delete it manually problems are solved but every so often key gets created as soon as application is started.
    If you dont mind installing a program, you can use Sandboxie for that. When you run an application under the supervision of Sandboxie, all changes are redirected to the Sandbox folder in C drive, registry changes included. If you want, you can block access to Computer\HKEY_CURRENT_USER\Software to prevent the application from creating key there. You can read how Sandboxie handles the Registry in the link below, and I quote:

    "The KeyRootPath setting specifies a path to the root of a particular sandbox. If omitted, it defaults to HKEY_USERS\Sandbox_(user name)_(sandbox name). For example, if the user joe is using the sandbox DefaultBox, the default KeyRootPath is HKEY_USERS\Sandbox_joe_DefaultBox.

    As sandboxed programs create new registry keys or modify existing keys, Sandboxie redirects these operations to act on paths that lead into the sandbox. If the sandboxed program was trying to create the key HKEY_LOCAL_MACHINE\Software\NewKey, it will be redirected to create instead (KeyRootPath)\machine\Software\NewKey."

    Sandboxie - Sandbox Hierarchy

    With the free version of Sandboxie, you can run the application in the sandbox by right clicking its icon and choosing Run sandboxed. You should look at Sandbox settings, there you can set what to allow and what not to allow the application to do. Like no internet access, etc. You can also set the sandbox and its contents to delete on closing the sandboxed application, or save contents. According to what you said, it ll probably be better to have contents deleted automatically.

    Sandboxie - Sandbox software for application isolation and secure Web browsing

    Bo
    Last edited by bo elam; 06 Nov 2017 at 19:15.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:45.
Find Us




Windows 10 Forums