registry

How do I change the ACLs on a registry key? (C++)

I need to delete a regsitry key. It has a deny ACL on Set Value (I need this permission to delete it). How do I change the ACLs in C++? ...

RegDelete cannot delete Registry key in WSH 5.7

Based on the advice provided at http://www.tweakguides.com/VA_4.html to prevent Windows Vista from "intelligently" rearranging column formats in Windows Explorer, I have written a script to automate the process a little. Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") 'Remove the "filthy" reg keys first. regKey = "HK...

C#.NET Importing a registry hive and parsing its contents

I have been given a .Hive file from a registry which i have to parse and use the contents as part of a html report(from this i assume i have to convert to text somehow). The whole thing must be done within the program so i cant just convert the hive file and then run it through my program. I currently have no idea how to even start this ...

How to set an application as the default program of opening a certain type of file programmatically?

There's an executable file generated from my program in MFC and I want to use it as the default program to open the .jpg files. That is to say, each time I double click a .jpg file, my program will run. I tried to add some registry entries linking .jpg files with my program, such as HKEY_CLASSES_ROOT.jpg\shell\open\command (set its val...

How to run my program on before logout on windows XP?

I am looking for an inverse version of "RunOnceEx". RunOnceEx does run some program, before the user's shell(desktop&taskbar) start. The login progress will not continue before the runonceex complete. I want to do exact the same but on user logout. When she/he logout, all running program shutdown, leaving shell(desktop&taskbar), then "...

What does the registry value for the outlook(2003) msgfile extension stand for?

If you want to open an msg Email file with the extension .msg, Outlook 2003 will be started with some parameters. Therefore you can find the following registry keys: HKEY_CLASSES_ROOT\msgfile\shell\Open\command\(standard) HKEY_CLASSES_ROOT\msgfile\shell\Open\command\command The first one points to the "outlook.exe" with the parameter ...

3rd party licensing components

Hi, I'm looking at this 3rd party licensing component, and I'm curious what measures they can take to secure a .net desktop application? they provide things like: trial version, registered version using a license key. It also can lock the application if their license expires. It is a C++ dll under the covers, and in .net you have to ...

Regedit file format

I would like to document the file format of regedit utility, so data can be merged into the registry. From the command-line you can (silently) merge data from a batch file like this: regedit /s file.reg Exporting from a subkey goes like this: regedit /e file.reg "HKEY_XX\key" ...

running a registry file on to remote server

for running it in local system , i use REGEDIT.EXE /S "test.reg" how to run a registry file to remote registry. by the same command or by any other means, let me know that. ...

How to cause my VSTO 2005 SE Outlook Addin to crash so that it's disabled?

For testing purposes I need to get my Outlook 2003 addin (vb.net) disabled so that it can only be reactivated through the help menu or by deleting the resilency key from within the registry. I tried to achieve this by creating an unhandled invalid cast exception during the startup eventhandler but this does not help. Outlook only says t...

Disable "Adjust Date/Time" in Vista Home Edition

My company has got quite a number of client laptops out in the field. These laptops are running Windows Vista Home edition. I was recently asked if I could find a way to disable the user's ability to adjust the system time. My first thought was to use gpedit, but as I found this is unavailable in home edition. I then looked for reg...

How can I convert a REG_BINARY value from the registry into a string ? (vb.net)

I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string? I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbi...

Find match in subkey values

I'm having trouble with the following two items: How to retrieve all of the subkey values in ClassesRoot\Typelib, and; How to find a match for a known value (path/dll name) in the array of subkey values. As background info, I'm trying to find a way to check if a DLL has been registered. Someone mentioned that checking ClassesRoot\Typ...

MFC SetRegistryKey... Is there a GetRegistryKey function?

I have these two lines of code. CString strHost = AfxGetApp()->GetProfileString(_T("WebServices"), _T("Server")); AfxMessageBox(strHost); Nowhere in the app do I set the value. (the installer does that). So the strHost, should be the same no matter where or when this line is run. Here's what I've got. Press A -> run function that ...

How to use Powershell to grant user rights to registry keys?

I need to grant rights to Widnows user group Everyone to the HKCR hive and all the keys below th HKCR.I would like to use PowerShell scripting for this. Is it possible? ...

"Brokered definition set" design pattern -- well-known under another name?

In a project that I've been involved with for many years, I've gradually evolved a design pattern that's proven to be extremely useful for me. I sometimes feel I should get a bit evangelical with it, but I'd be a bit embarrassed if I tried and found out that it was just my version of somebody's old hat. I've dug through Design Patterns...

How can my uninstall process properly deal with restoring registry entries?

Sometimes it's necessary to modify Windows registry settings during an application install. I've recently been frustrated by applications that don't restore these settings when they are uninstalled. As I thought more about this, it occurs to me that there may not be a good (or valid) way to save and restore registry settings. Take the...

Detecting installed programs via registry

Hi there, 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 problem. Is there a better way to accomplish this? My first thought was to check in t...

How do you register a Most Recently Used list with Windows in preparation for Windows 7?

With the upcoming release of Windows 7, one of the newly touted features is the Jump Lists, with their automatic population of most recently used items. Supposedly, if you've been 'properly' recording these most recently used items with the Windows registry, they'll automatically appear. So, where in the registry do they actually need ...

Visual Studio 2008\Backup Files folder created when every new VS instance is opened.

Hi, I think I have something broken with the path that VS 2008 saves the backup files. Since few days, it creates a new "Visual Studio 2008" directory in the same folder that my .sln file exists. Then, after the time of the first auto-save expires, the backup files are being saved to this folder. I browsed the tools-options dialog but ...