windows-registry

How and where exactly does the default email client gets set in the registry?

In order to find out what the default email client is, I found the same information over and over again: Look at the default string in HKLM\Software\Clients\Mail. (see for example this related question) However, this seems not to be true for all OSs and/or situations: I have two machines running Win7 64bit, let's call them A and B. A ...

Trying to edit the registry in Windows with a batch file

I am supporting a few offices across the country running Windows XP. They are stand alone, no Windows Server or Active Directory, anything like that. I just switched them over to Google Apps, and in the process replaced Windows Live Messenger with Google Talk. I really want to stop Windows Live from being used, the platform sends so much...

Windows Mobile 6.5 : Cannot create SubKey in Registry

Hello, I have code below which has been working on devices of type Windows Mobile 5 and 6.1 private const string OwnerSubKey = @"ControlPanel\Owner"; regKey = CERegistry.CurrentUser.CreateSubKey(OwnerSubKey); When I have a 6.5 device cradled and the debugger hits the line above, I get "Type: System.Runtime.InteropServices.ExternalE...

What is the best way put a program in windows startup?

There are many methods to make a program run at windows startup. For example: Start Menu --> All Programs --> Startup Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run) Task Scheduler More methods I don't know yet? So the questions are: What is the differences between all those ways? (in the startup sequen...

How to fetch registry path from EventArrivedEventArgs object

I try to watch the registry events via WMI. I use the below query to watch any events inside HKLM\softwares WqlEventQuery query = new WqlEventQuery( "SELECT * FROM RegistryTreeChangeEvent WHERE " + "(Hive = 'HKEY_LOCAL_MACHINE')" + "AND Rootpath = 'Software'" As expected...

problem reading registry in 64 bit machine

I have developed a 32 bit application (build for x86) which will later be deployed in 64 bit machine. I have set some configuration in registry so when application starts in 32 bit machine there is no problem reading its value but when deployed in 64 bit machine I can not read value properly as the path of the Registry is changed. To mak...

How to detect Remote Desktop Session Host using registry ?

I need to detect if Remote Desktop Session Host is installed in windows server 2008 using registry data as part of the prerequisite checker for our product. Earlier it was known as terminal service which could be detected using the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\TSEnabled key but now this key "TSEnabled" ...

How to get the path to the VS command line prompt (in both 32bit and 64bit)?

Hi, Up until today, in order to get the VS command line prompt I checked the "ProductDir" value in the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VC" registry key. I noticed that this code won't necessarily do the job if I'm running on Windows 7 64 bit, since this key is not always accissible to all programs. I started to...

What is the windows registry for JRE autodownload option in the Java Control Panel ?

I want to set the JRE autodownload option found on the advanced tab of the Java Control Panel in Windows XP to 'Always Auto-Download' on a very large number of machines. What is the windows registry key name for this option and the value for 'Always Auto-Download' ? Thanks! ...

Inno-Setup doesn't allow access to all registry keys, why ?

I use this code to know if a key exists or not : if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Autodesk') then begin MsgBox('Key exists!!', mbInformation, MB_OK); end; for this exemple, it works, i have the message box, but with this it doesn't: if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Autodesk\Maya') then begin ...

How to make a trialware?

Possible Duplicate: how can i make my product as a trial version for 30 days ? Dear all, Recently I have developed a software for windows and I want to make a trial version out of it for advertisement. The trial version I have in mind should be runnable only for 30 days for example. I myself have an idea about saving the time...

Can I create Environmental variable which will take effect without logoff

I am creating an Envoirment var using a bat file and the command is below: REG ADD HKCU\Environment /v DSPATH /t REG_SZ /d %cd%\DSClient.exe This works fine but only after a logoff. Is there a way it can take effect without logging off. ...

How do I read and export a subtree of Windows registry without running Regedit?

I have a 32-bit C++ program that gathers diagnostic data to help troubleshoot our software. I'd like it to export a certain subtree of the registry - something like: regedit.exe /e ExportResult.reg HKEY_LOCAL_MACHINE\SubTreeIWantToExport The problem is Regedit will likely require priviledges elevation on Vista and above and the user r...