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?
...
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%%\""
...
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?
...
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...
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...
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 -...
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 :...
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...
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...
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(...
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...
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...
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...
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?
...
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.
...
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...
How can I properly read the .Translated key properly for both x64 and x86 pc's?
...
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.
...
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 ...
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...