tagged [registry]

Registry.GetValue always return null

Registry.GetValue always return null I have the following key in my registry: under:`HKEY_LOCAL_MACHINE\SOFTWARE\RSA` I have value object call - `WebExControlManagerPath` and its value is `c:\` I am t...

10 Jul at 17:0

Attempting to delete registry keys with subkeys results in an error

Attempting to delete registry keys with subkeys results in an error When I try to delete a key in HKCU that has subkeys I get an error. Here is the code I am using: The error I get: > Registry key has

29 Mar at 20:27

How to get the default value of key from the registry

How to get the default value of key from the registry I am trying get the `(Default)` key value from the `HKEY_CLASSES_ROOT` and the code snippet I tried is as below, Always the `defvalue` is coming a...

27 Jul at 11:50

Add key to registry if not exist

Add key to registry if not exist I try to add a key to the registry if not exist. While I debug everything is fine. Code should work. But I can't find key in registry editor. Do you have any idea? ```...

20 Mar at 11:43

Access Visual Studio 2017's private registry hive

Access Visual Studio 2017's private registry hive Visual Studio uses a private registry hive instead of "polluting" the system registry - typically found somewhere like this: `C:\Users\Abx\AppData\Loc...

21 Mar at 00:18

How to search images from private 1.0 registry in docker?

How to search images from private 1.0 registry in docker? I made a private registry,curl xx.xx.xx.xx:5000 is ok. I push an image into docker private registry by doing: `docker push xx.xx.xx.xx:5000/ce...

15 Oct at 10:36

C# reads wrong registry data on 64-bit OS

C# reads wrong registry data on 64-bit OS I'm working on a 64-bit Windows and my applicaiton runs with elevated privileges. I have a problem with the following very simple piece of code: But for some ...

16 May at 12:50

Command line to remove an environment variable from the OS level configuration

Command line to remove an environment variable from the OS level configuration Windows has the [setx](https://ss64.com/nt/setx.html) command: So you can set a variable like this: And you can clear the...

How to get PowerShell to display registry Data values

How to get PowerShell to display registry Data values Take the Winlogon registry section, I would like PowerShell to display the Data value for DefaultUserName. This is as far as I have got: Stage 1 S...

22 Dec at 19:16

Building an COM-interop enabled project without registering it during build

Building an COM-interop enabled project without registering it during build In Visual Studio 2010, I'm trying to build an COM-interop enabled C# project without registering it during build, but I requ...

C# Access 64 bit Registry

C# Access 64 bit Registry I was wondering if it was possible to access the following registry key in C# on a 64 bit pc. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run When accessing on a 32bit pc ...

5 Aug at 12:0

How to add a menu item in Windows right-click menu

How to add a menu item in Windows right-click menu I want to develop a simple window tool, to add a menu item in window right-click menu. For example, I open "computer", navigate to C:, and right clic...

19 Aug at 08:20

access to the registry key is denied When i want update the value

access to the registry key is denied When i want update the value i want edit Registry key called "usbstor" value and this my code in update method ``` try { string path = baseRegistryKey + ...

5 Feb at 06:13

DeleteSubKey UnauthorizedAccessException

DeleteSubKey UnauthorizedAccessException I'm trying to write a quick app to modify some registry keys. When I'm browsing via RegEdit, I can modify and delete the keys with no problems. But when I try ...

10 Jun at 12:15

How can I change the Java Runtime Version on Windows (7)?

How can I change the Java Runtime Version on Windows (7)? How can I change the Java Runtime Version on Windows. I installed Java 7 for some tests, and now I need the old java6 as system default, but I...

24 Jan at 21:31

Windows: List and Launch applications associated with an extension

Windows: List and Launch applications associated with an extension How to determine the applications associated with a particular extension (e.g. .JPG) and then determine where the executable to that ...

24 Aug at 16:33

Programmatically Set Browser Proxy Settings in C#

Programmatically Set Browser Proxy Settings in C# I'm writing an winforms app that needs to set internet explorer's proxy settings and then open a new browser window. At the moment, I'm applying the p...

13 Oct at 14:17

How to change the registry value of remote system using C#

How to change the registry value of remote system using C# Hai every one I am developing an windows application in which i have to block the removable storage devices such as pendrives.I found that it...

30 Oct at 06:42

How can I find the upgrade code for an installed application in C#?

How can I find the upgrade code for an installed application in C#? I am using the C# wrapper for the Windows Installer API from the [WIX Toolset](http://wixtoolset.org/). I use the `ProductInstallati...

29 Jul at 23:43

Change "Override high DPI scaling behavior" in c#

Change "Override high DPI scaling behavior" in c# We have a control inside a WinForm (CefSharp control) that suffers from graphical artifacts when a users screen is set to 125% on windows. Its not jus...

20 Jul at 09:43

Detecting installed programs via registry

Detecting installed programs via registry I need to develop a process that will detect if the users computer has certain programs installed and if so, what version. I believe I will need a list with t...

9 Jan at 21:6

How to Read Remote Registry Keys?

How to Read Remote Registry Keys? I need to be able to read the values in a specific Registry Key from a list of Remote Computers. I can do this locally with the following code ``` using Microsoft.Win...

14 Oct at 20:45

Cannot write to Registry Key, getting UnauthorizedAccessException

Cannot write to Registry Key, getting UnauthorizedAccessException I have a windows service that attempt to write to a registry key in LOCAL_MACHINE The key is created as part of a windows installer pa...

27 Jul at 07:13

How to run a C# application at Windows startup?

How to run a C# application at Windows startup? I made an application that launches during startup, with the next code below. The process runs on the process manager tool after the restart, but I can'...

20 Aug at 17:15

How can I enable Assembly binding logging?

How can I enable Assembly binding logging? I'm getting, "Could not load file or assembly 'Bla' or one of its dependencies. An attempt was made to load a program with an incorrect format." A portion of...

16 Jul at 15:58