windows-registry

Can be certificate read out from registry without booting windows ?

Is it posible to read a certificate out from registry without booting windows, if you know login credentials and computer name. I have writen a little tool which automate copying of data from standard windows user folders like my document. This tool is then part of live linux distro which we use to copy users data when we making transit...

AppID registry key

Hi everyone, I have a third party Win32/16 application that I am developing Installer for. The application would read a registry key from HKey_Class_Root\AppID directory. In the Installer, I have written the correct registry and have confirmed that using regedit. The issue is, when the application ran, I can see from Windows Process M...

Visual Studio 2010 installation path

I want to get the path of my Visual Studio 2010 installation. I tried to get it from the Windows registry. It works perfectly for specific SKU. For example, Ultimate version of VS2010 usesHKLM\Software\Microsoft\VisualStudio\10.0\Setup\VS key to store the installation path. But the Express version has a different path in the registry. H...

Windows7 Registry change Shell\Open\Command not working

hi, I have change registry settings to list a drive like folder in MyComputer by following the steps in http://www.virtualplastic.net/html/ui_shell.html#attributes In HKEY_CLASS_ROOT, I have added the following line, RegWriteStringValue(HKEY_CLASSES_ROOT, 'CLSID{My ID}\Shell\Open\Command', '', 'explorer /n, D:\Test') I have added s...

How do you change what registry entries a program reads and writes?

I made a word processor by editing the resources of MS WordPad (for XP) and for some reason, when I apply my program as the default application for RTF files, the icons wouldn't show up and used icons from Word 2007. I read somewhere that Windows applications used the registry to locate icons and sometimes load crucial settings. Well, my...

Is there a way to recover registry entries that were deleted using RegDeleteKey?

[I am aware that this might actually better belong on superuser but I thought the programmer perspective might yield slightly better/faster results.] I have just written a sleek new configuration framework for our apps and everything was working just great. There was only one function left to test and that was deleting a registry key (r...

RegQueryValueExW only brings back one value from registry

I am querying the registry on Windows CE. I want to pull back the DhcpDNS value from the TcpIp area of the registry, which works. What happens though, however, is if there is two values - displayed as "x.x.x.x" "x.x.x.x" in my CE registry editor - then it only brings back one of them. I am sure this is a silly mistake but I am unsure ...

How to find/delete a string value in the registry based on its value

Hello, I am trying to write a .reg file that would take a given key, and search for a string value based on its contents, and then delete it. For example: [path] "a"="b" "z"="y" "foo"="bar" And somehow delete the value "foo" by knowing either "bar" or a substring of that. Is this possible? Would I need to do this in a .bat script (wh...

What's the point of a system registry?

Sorry for being really ignorant here, I just want to learn, why is the registry needed for programs? What's it for and why can't software just write variables to their own local files? Does it do something I'm not aware of? ...

RegistryTreeChangeEvent via C# & WMI

I'm getting this error: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80042001): Exception from HRESULT: 0x80042001 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementEventWatcher.Start() at MyNamespace.Program.Main(String...

Sharing data between users with the Windows 7 registry

I have a program that was written on XP. What I've found out is that it doesn't work properly on Win7 because HLKM is no longer writable by non-admins. Essentially, when you register the program, the licensing information is supposed to go into the registry. That information is valid for everyone on the computer, not just the one user,...

Best place to hide a key in the Windows Registry?

Hello All! My Delphi program has a built-in protection mechanism to check for banned license keys on the Internet and displays a message to the user if a blacklisted key is found. I'd like to store the blacklisted key in the registry, so if the user tries to re-enter it (and he/she is not connected to the Internet), it's not accepted. ...

Is there any way to gather all files and registry entries associated with an already installed app?

I need to create a package with all files associated with an install, so that I can migrate this install to another computer. I cannot download the installer / setup program, and so I need to do this instead. Does anyone have any experience with this? Thank you!!!! :-D ...

how to register a upper filter driver to all printers class via .inf file (AddReg section)

I have a filter driver (similar to following): NTSTATUS MyFilterFunction ( __in PDEVICE_OBJECT DeviceObject, __in PIRP Irp ){ NTSTATUS status = STATUS_SUCCESS; // do the filtering DbgPrint("Filtering with MyFilterFunction"); return status; } NTSTATUS DriverEntry ( __in PDRIVER_OBJECT DriverObject, __in ...

Is there any way to add a program requiring Administrator Rights on Windows Vista/Seven to autorun?

My program asks user if he wants it to be added to autorun, and it requires administrator rights to perform its code properly (level is set to "requireAdministrator" through manifest). However, after adding it to autorun through registry, Windows Defender blocks its start on system start-up due to it requiring administrator rights (as i...

Getting File Associations using Windows API

I'm working on a console based file browser for Windows in C++ and am having difficulties getting together a context menu that lists actions associated with a file and calls commands on them. The biggest issue right now is getting the actions tied to the file types. I know of the process to open and tweak the registry keys in HKEY_CLASS...

Registry security settings

I’m trying to access a certain bit of the registry however it keeps returning null when i try to open it. However i know the location is correct because i can navigate to it in reedit. here’s my line of code for trying to access it. Microsoft.Win32.RegistryKey RK = Microsoft.Win32.Registry.LocalMachine.OpenSubK("Software\\Microsoft\\W...

Office 2007 PIA registry entry installed indication

I must install Office 2007 PIA as a prerequisite along with my Office 2007 add-in. The bootstrapper I am using requires me to specify a registry entry to be checked if prerequisite is installed or not. Normally, various packages set Installed DWORD value to 1 in some registry path to indicate that a package is installed. Which registry...

very simple mechanism of registration

Hello, I'd like to make a very simple mechanism of registration for my application. Nothing fancy, just need to make sure that the user won't simply uninstall my product and then install it again when the free trial ends. I was thinking of putting the information in HKLM\Software\Microsoft\Windows\Uninstall under a subkey like {ECE6CA...

Windows Registery: How to add a Java app to startup list?

Hi, I added a value at: HKLM\Software\Microsoft\Windows\CurrentVersion\Run That looks like this: Value Name: LDE Value Data: "java -jar C:\LDE\lde.jar" Really with the quotes (Because all the others where also with quotes). After adding this, I restarted my computer, but it didn't start automatically. Will wrapping my jar in an e...