Questions tagged [registry]

The Windows Registry is a database where configuration settings for hardware, software and the Windows operating system itself are saved.

[The Windows Registry] contains settings for low-level operating system components as well as the applications running on the platform: the kernel, device drivers, services, SAM, user interface and third party applications all make use of the registry. The registry also provides a means to access counters for profiling system performance.

When first introduced with Windows 3.1, the Windows registry's primary purpose was to store configuration information for COM-based components. With the introduction of Windows 95 and Windows NT, its use was extended to tidy up the profusion of per-program INI files that had previously been used to store configuration settings for Windows programs.

Source: Wikipedia

7354 questions
72
votes
12 answers

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't see the application on the screen. When I open the same .exe file from the startup registry…
Oded .S
  • 1,081
  • 2
  • 11
  • 18
72
votes
18 answers

How can I get the value of a registry key from within a batch script?

I need to use a REG QUERY command to view the value of a key and set the result into a variable with this command: FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "KeyName" /v ValueName') DO SET Variable=%%B But if the key doesnt exists i get an…
Fabius
70
votes
2 answers

What registry access can you get without Administrator privileges?

I know that we shouldn't being using the registry to store Application Data anymore, but in updating a Legacy application (and wanting to do the fewest changes), what Registry Hives are non-administrators allowed to use? Can I access all of…
Kris Erickson
  • 33,454
  • 26
  • 120
  • 175
67
votes
9 answers

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 the registry location and keys to look for and feed it to the program which is not a…
Mark Stahler
  • 4,186
  • 6
  • 29
  • 29
65
votes
9 answers

Associate File Extension with Application

I've written a program that edits a specific filetype , and I want to give the user the option to set my application as the default editor for this filetype (since I don't want an installer) on startup. I've tried to write a re-useable method that…
User2400
  • 2,373
  • 2
  • 20
  • 22
64
votes
4 answers

Run reg command in cmd (bat file)?

I'm trying to run this reg code in cmd (bat file), but I couldn't make it work. Where am I doing wrong? [HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel] "HomePage"=dword:00000001 It works if I make it a reg file and…
user198989
  • 4,574
  • 19
  • 66
  • 95
62
votes
5 answers

How does CurrentControlSet differ from ControlSet001 and ControlSet002?

In the Windows registry, how does CurrentControlSet differ from ControlSet001 and ControlSet002? Which should be set when installing for all users? We are trying to add an environment variable for all users. Is this…
Dan Hewett
  • 2,200
  • 1
  • 14
  • 18
62
votes
4 answers

Reading the registry and Wow6432Node key

I have some code that reads the registry and looks for a value in HKEY_LOCAL_MACHINE\Software\App\ but when running on 64-bit versions of Windows the value is under HKEY_LOCAL_MACHINE\Software\Wow6432Node\App\. How should I best approach this? Do I…
Jade M
  • 3,031
  • 6
  • 26
  • 25
62
votes
10 answers

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 the detailed info says: "WRN: Assembly binding logging is turned OFF. To enable assembly…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
61
votes
8 answers

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 don't want to uninstall the Java 7 (I need it for later tests). Can I change the system-used JRE in the…
tomkpunkt
  • 1,393
  • 2
  • 15
  • 24
61
votes
7 answers

Where can I set path to make.exe on Windows?

When I try run make from cmd-console on Windows, it runs Turbo Delphi's make.exe but I need MSYS's make.exe. There is no mention about Turbo Delphi in %path% variable, maybe I can change it to MSYS in registry?
d9k
  • 1,476
  • 3
  • 15
  • 28
60
votes
4 answers

See what files/registry keys are being accessed by application in Windows

How do I see what files/registry keys are being accessed by my application in Windows?
Egor Pavlikhin
  • 17,503
  • 16
  • 61
  • 99
59
votes
10 answers

How can I check what version/edition of Visual Studio is installed programmatically?

I could read registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0. However, it doesn't give me any information about the edition of it - Professional/Ultimate or whatever. How can I get the information with programmatically (preferably…
prosseek
  • 182,215
  • 215
  • 566
  • 871
59
votes
6 answers

Reading a registry key in C#

I have developed an application and installed it on a client computer. In my application I need to get its installation path. My application has a registry entry at: HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication\[AppPath] How can I read AppPath using…
Thorin Oakenshield
  • 14,232
  • 33
  • 106
  • 146
58
votes
5 answers

Configure Windows Explorer Folder Options through Powershell

I'm looking for a way to configure a few options in Folder Option dialog of Windows Explorer through Powershell. The options are: Choose "Show hidden files, folders, and drives" Uncheck "Hide extensions for known file types" Uncheck "Hide protected…
stacker
  • 14,641
  • 17
  • 46
  • 74