registry

Right Click Context Menu in IE - Add new items

Hello, Adding items to the registry item HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\ I can successfully create new options in the Internet Explorer right click menu. Trouble is, I only want to show the item if the user right clicks on a link. In other words it would appear at the same time as the option "Open in ...

WIX will not add HKLM registry setting during Windows 7 install

Good Morning, I have written a WiX installer that works perfectly with Windows XP but when installing to a Windows 7 box I am running into difficulty with Registry Entries. What I need to do is add a HKLM entry as well as the registry entry for the program to show in the start menu. Here is the code i am using for both types of entry: ...

Writting settings to the registry, shared by x64 and x86 apps (bypassing registry redirection)

I want to write application settings in the registry, that are shared by x86 and x64 applications running on Windows 7 x64. The best practice is to save them in HKEY_LOCAL_MACHINE\Software\Company\Product, but that gets redirected when in WOW64. Can I write them in HKEY_LOCAL_MACHINE\System.. instead? Or System is reserved for other th...

HKLM\SYSTEM\MountedDevices Fully Qualified Name different between 32 and 64 bit Windows 7

I am attempting to resolve a drive letter from a found usb mass storage device via VID and PID. To make this magical connection, I was using the following registry key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices In 32bit versions of windows, the data contained within (for example) \DosDevices\F: is the following: "STORAGE\REMO...

Getting a VB6 Application to Work in Windows 7 If You Can't Recompile

I have a VB6 application that still references some old VB5 libraries (dll, vbr, tlb, and ocx). We're having some strange issues like it can't read the registry using advapi32.dll. I've tried running the application with UAC permissions, but still no go. We can't recompile the app because it has several controls and components that canno...

Windows Explorer Context Menu Application with Multiple Arguments

Hi, i have read heaps of articles about how to add custom right click context menu's to windows explorer but all of them only work if you have only 1 single file highlighted. The app i am writing is a utility app and i would ideally like it to work on %n number of files. Can this be done? ...

How do you read a registry value using a custom msbuild task?

I'm creating an MSBuild task that will read the registry for a specific registry key. If I write the same line of code (see below) in a console application, it returns the expected result, but when it is within the MSBuild task, it returns nothing. Return Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup\", "...

NSIS: What is a registry?

What is a registry in NSIS? How do you write to and read from a registry? ...

Setup project not registering in registry

I have a VS Web setup project. I want to register the physical path of the application. In the setup project, I created a new key in HKLM, named Software, then I created a new key named "MyCompany", then in the mycompany key, I add the key Installation Folder with value [TARGETDIR]. But when I try my installer, and go to regedit after...

How do I print the list of registry keys in HKCU\Environment to SDTOUT using JScript (WSH)?

I want to iterate over the environment keys and print a list of these items. ...

How to log and compare Windows Registry data before and after any program installation ?

I need to compare the windows registry data before and after install a program ? ...

Registry GetValue function .

Hello all I am trying to get values and set values to the Registry . When I am trying to access a path that not located at the registry I am getting exaption . But when i am setting that path with Registry.SetValue(keyName, "", 0);, all works fine and I can get non existing values from it . Any idea why i can't use my public int G...

Increasing Cygwin's memory allocation

I just added a ton of images to my local git repo. As a result, when I try to push to our remote repo, I get the error: fatal: out of memory, malloc failed76) My hypothesis is that this is due to a lack of memory allocated to Cygwin. I've tried to increase Cygwin's memory by following these instructions but i can't find the registry...

Programmatically adding a directory to Windows PATH environment variable

I'm writing a Win32 DLL with a function that adds a directory to the Windows PATH environment variable (to be used in an installer). Looking at the environment variables in Regedit or the Control Panel after the DLL has run shows me that my DLL has succeeded in adding the path to *HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Sess...

C# Registry Setting

I am setting a registry setting and I can do so if the value is in [HKEY_CURRENT_USER] but if the value is in [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\ethan] then I get the following error: ex {"Cannot write to the registry key."} System.Exception {System.UnauthorizedAccessException} does anyone know what might be wrong? ...

Get Cygwin installation path in a Python script

I'm writing a cross-platform python script that needs to know if and where Cygwin is installed if the platform is NT. Right now I'm just using a naive check for the existence of the default install path 'C:\Cygwin'. I would like to be able to determine the installation path programmatically. The Windows registry doesn't appear to be an ...

How does one loop through a set of string value names in a registry key?

Hey all, I need to use VBScript and loop through a set of registry string value names located within a specific key such as: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" and delete all the string values except for ones that I specifiy. I was able to successfully delete a specific string value using DeleteValue and...

Reading unicode string from registry

I'm using codegear c++ builder 2007. I'm trying to read a string value with a path from the registry. This path can contain unicode characters, for example russian. I have added a string value with regedit and verified by exporting that the value really contains the expected unicode characters. The result in S1, S2 and S3 below all cont...

path variable: removing unwanted items

background info; an application is installed on many different PCs, W2000 and XP pro and for multiple users, let's call it foobar, note there is no msi or silent uninstall for this app. therefore, we would like to remove its' entry manualy; If in the registry environment (path line) we have path=c:\windows;c:\windows\system32;c:\foobar...

Wix: Add a sequential registry key

I am writing an installer using Wix 3 which installs a plugin to a 3rd party application. The application uses a group of registry keys to detect installed plugins. Each plugin is required to add a new subkey with a numerical name from 0-9 to the HKEY_LOCAL_MACHINE\SOFTWARE\Vendor\App\Plugins. The key contains a single string value whi...