registry

Requested registry access is not allowed

I'm writing a tweak utility that modifies some keys under HKEY_CLASSES_ROOT. All works fine under Windows XP and so on. But I'm getting error Requested registry access is not allowed under Windows 7. Vista and 2008 I guess too. How should I modify my code to add UAC support? ...

Change 'Start -> Search' context menu, the default item 'search' can't place first?

I add this to Registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0}\shell\Google\command] @="cmd /c title Google Search&set /p i=Keywords: &call start \"\" \"http://www.google.cn/search?complete=1&hl=zh-CN&q=%%i%%\"" ...

Where are environment variables stored in registry?

I need to access an environment variable remotely. To do this I think the best way is to read it from registry. Where are environment variables stored in registry? ...

How do I specify binary data in a COM RGS file

I'm adding some custom data data to the registry during the registration of a COM object by adding it to the rgs file. Adding a DWORD value (specified by = d '3' below) gets entered into the registry as expected. For the binary/hex data however it does not get entered into the registry correctly. Can anyone advise what the correct synt...

php/dos : How do you parse a regedit export file?

My objective is to look for Company key-value in the registry hive and then pull the corresponding Guid and other keys and values following it. So I figured i would run the regedit export command and then parse the file with php for the keys I need. So after running the dos batch command >regedit /E "output.txt" "HKLM\System....\Co...

Make our application show in access and defaults

We are developing our application to be a default e-mail program, and would like it to be one of the options in the Control Panel-> Add or Remove Programs-> Access and Defaults-> Custom-> Choose a default e-mail program: area. How is this done? It's a rather simple registry change to add the application to the list in IExplore-> Tools -...

Windows Registry file association menu

I have recently(today) began meddeling with my registry from within Delphi. :) all is working well and my custom file type now opens with my program, but there are 2 issues i can't solve. 1) I wanted the option to "open with" from all file types so i added reg := TRegistry.Create; reg.RootKey := HKEY_CLASSES_ROOT; reg.LazyWrite :...

How to register a custom keyboard shortcut for a windows application

I want to create a windows utility application, which can be called anytime from within any other application using a keyboard shortcut, e.g.: • WIN + T • CTRL+ T • ALT + T • CTRL+ ALT + T • CTRL+ SHIFT + T What key combinations can I use and how to setup those in the windows registry? (If the shortcut is used by an other applica...

How to remove a server from Active Directory when the connection fails?

I have a server whose AD account got crazy; log on would take hours and not all DCs showed the computer account. Now it only boots if disconnected from the network. I am trying to remove it from the domain but get aa timeout or if it is connected I get an error message "A remote procedure call is already in progress for this thread". I d...

NullReferencException when setting a Registry Value

I am getting a NullReference Exception when I try to set a value to a registry key. Below is my code. Does anyone know why? using System; using Microsoft.Win32; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(...

Enumerating a List of systems Com Ports in Delphi

Objective: I would like to be able to list the available COM Ports on a system in Delphi. Homework: I have read this SO thread on enumerating the LPT ports of a system using the registry. I have also found that the COM ports are listed in the registry at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM but found unanswered gesticulation...

Zend Framework: How to unset a key in Zend_Registry?

I am testing my Zend Framework application and would like to test that something happens when a particular key is not set in the registry. This is the function that I am testing: protected function getDomainFromConfig() { $config = Zend_Registry::get('config'); if (!isset($config->domain)) { throw new Exception('Please m...

How to access the 64-bit registry from a 32-bit Powershell instance?

If you launch a 32-bit instance of Powershell (%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe), then the registry provider only sees the limited 32-bit parts of the registry. **32-bit console** PS> (dir HKLM:\SOFTWARE | measure).count - (dir HKLM:\SOFTWARE\wow6432node | measure).count 0 **64-bit console** PS> (dir HKLM:\S...

How to find and delete registry entries in Wix

I am trying to write a Wix3 install for a visual studio add-in. I have it just about there, but I need reset the plugin by deleting a registry entry. Specifically any value starting with HKCU\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged\MyAddinName.Connect; How to a convince Wix to delete any such entries? ...

How can I programmatically change a value in the Window's Registry?

I need to problematically change the "Level" String found in \HKEY_CURRENT_USER\Software\Intuit\QBWebConnector to "Verbose" What is the best way to do this? C#, bat file? I have never tinkered with the registry before... Thanks. ...

Keeping passwords in the registry as "secrets"

I need to store my users' name/password somewhere (preferably the Registry) so my .Net application can use them to log in to some remote service on behalf of the user. I know it's possible to store values in the registry as "secrets", which means their encrypted using the Windows domain user token or something. In other words, I don't wa...

HARDWARE\\RESOURCEMAP\\System Resources\\Physical Memory\\.Translated?

How can I properly read the .Translated key properly for both x64 and x86 pc's? ...

What registry keys do I need to alter to rename an account in Windows?

How can I rename an account name such as administrator to newaccount by means of editing the registry? Note: I don't want to modify the RegisteredOwner. ...

Stranded Registry Entries Preventing Uninstall

I have a .NET/Visual Studio/C# application that cannot be uninstalled on one of my development computers. (It CAN be installed, and uninstalled, on the other development computer.) This appears to be a registry problem. As a test, I added a new registry entry to the setup project since this problem started -- and the new registry entry ...

Why can't Win32::TieRegistry list subkeys?

Using Cygwin Perl v5.8.8 and Win32::TieRegistry 0.26. We can get a tied hash object thing for HKEY_CURRENT_USER: $ perl -e ' my %RegHash; use Win32::TieRegistry( TiedHash => \%RegHash ); use Data::Dumper; my $Key = $RegHash{"HKEY_CURRENT_USER"}; print Dumper $Key;' $VAR1 = bless( {}, 'Win32::TieRegistry' ); And this works for sub key...