See what files/registry keys are being accessed by application in Windows
Check out Process Monitor at http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Check out Process Monitor at http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
A good place to start your investigation into any failed binding is to use the “fuslogvw.exe” utility. This may give you the information you need related to the binding failure so that you don’t have to go messing around with any registry values to turn binding logging on. Fuslogvw MSDN page The utility should be … Read more
For Java applications, i.e. programs that are delivered (usually) as .jar files and started with java -jar xxx.jar or via a shortcut that does the same, the JRE that will be launched will be the first one found on the PATH. If you installed a JRE or JDK, the likely places to find the .exes … Read more
Yes, you only need to update the CurrentControlSet key… ControlSet001 and ControlSet002 are alternating backups of CurrentControlSet, you don’t need to update them. Edit: As K noted, CurrentControlSet is an alternating symbolic link to either ControlSet001 or ControlSet002. The other key is kept as a backup for the Load Last Known Good Configuration boot option. … Read more
On an x64 machine, here is an example of how to access the 32-bit view of the registry: using (var view32 = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry32)) { using (var clsid32 = view32.OpenSubKey(@”Software\Classes\CLSID\”, false)) { // actually accessing Wow6432Node } } … as compared to… using (var view64 = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64)) { using (var clsid64 = view64.OpenSubKey(@”Software\Classes\CLSID\”, true)) … Read more
The answer was a lot simpler than I expected. Windows Explorer has its own override for the open with application, and I was trying to modify it in the last lines of code. If you just delete the Explorer override, then the file association will work. I also told explorer that I had changed a … Read more
You will probably get an UAC prompt when importing the reg file. If you accept that, you have more rights. Since you are writing to the ‘policies’ key, you need to have elevated rights. This part of the registry protected, because it contains settings that are administered by your system administrator. Alternatively, you may try … Read more
On 64-bit systems the x64 key is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Most programs are listed there. Look at the keys: DisplayName DisplayVersion Note that the last is not always set! On 64-bit systems the x86 key (usually with more entries) is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
In general, a non-administrator user has this access to the registry: Read/Write to: HKEY_CURRENT_USER Read Only: HKEY_LOCAL_MACHINE HKEY_CLASSES_ROOT (which is just a link to HKEY_LOCAL_MACHINE\Software\Classes) It is possible to change some of these permissions on a key-by-key basis, but it’s extremely rare. You should not have to worry about that. For your purposes, your application … Read more
This works for me: @echo OFF setlocal ENABLEEXTENSIONS set KEY_NAME=”HKEY_CURRENT_USER\Software\Microsoft\Command Processor” set VALUE_NAME=DefaultColor FOR /F “usebackq skip=4 tokens=1-3” %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( set ValueName=%%A set ValueType=%%B set ValueValue=%%C ) if defined ValueName ( @echo Value Name = %ValueName% @echo Value Type = %ValueType% @echo Value Value = %ValueValue% ) … Read more