registry

Create 64 bit registry key (non-WOW64) from a 32 bit application

I have a Visual Studio installer that is creating some registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\MyApp but the registry keys it is creating are automatically appearing under Wow6432Node: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp How do I ignore the Wow6432Node when creating registry keys in my C# code being executed by the msi...

Problems with VBScript - RegRead when running as a service

I am working on a script that runs under a custom installation utility, which is running as a service. To get the current user name the script executes this command: str_Acct_Name_Val = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name" str_Acct_Name = RegRead(str_Acct_Name_Val) When I run the script from the c...

Detect whether Office 2010 is 32bit or 64bit via the registry

Now that Office 2010 also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit? ...

Required Registry location common to all users to avoid registry virtualisation in Vista

Hello All, In Vista standard user can no more create or write to keys under HKLM\Software. So to port the code according to Vista standards in to which key i should write the application configuration data. Same way like %AllUsers%/AppData for folders. My main requirement is I should avoid writting to HKLM\Software, but the key location...

Deployment Setup (.Net) - Search target machine -> Registry search (64 bit)

I have a windows installer project which installs some software (winform, service, mce addin). During the installation I need to search the machine for a registry key. This is done with with the "Launch Condition" -> "Add Registry Search" (Deployment Project). I have filled out all the properties right, and checked against the regestry ...

Creating registry keys in Windows 7

In attempting to upgrade some C++ software to run in Windows 7 I have experienced some problems in being able to create registry keys from scratch. This is my code: // // Create a brand new registry key // LONG Registry::CreateRegister( std::string path ) { HKEY hKey; DWORD dwDisposition; LONG openRes = RegCreateKeyEx( H...

Get a registry key value

I'm trying to retrieve the version of excel from the registry but I have problems using the Registry.GetValue(...) method The value I am trying to retrieve is in HKEY_CLASS_ROOT\Excel.Application\CurVer But I do not know what name to put as a parameter in the GetValue method. I tried : RegistryKey key = Registry.ClassesRoot; Registr...

Using Registry module crashes Perl with Access Violation

Our perl program crashes when started on customer's Windows machine. Further tests shows that with the perl distribution we provide, a simple "hello world" script works, but breaks if it includes the line: use Win32::TieRegistry(Delimiter=>'\\'); It crashes with Access Violation for accessing a zero pointer. The stack points to regist...

Associate Java class-files to run on double-click on Windows

If there's one thing that annoys me about Java it's that you can't double-click a class file so as to run. I assuming there's an entry in the registry that has to be edited to do this but I haven't a clue. So, as it says on the tin. Does anyone know how to associate Java class files to run on double-click on Windows (I aiming for Window...

How to set Wordpad's default plain-text font ?

I much prefer Wordpad to Notepad in Windows 7 for quickly checking out source files, namely because Notepad doesn't display most correctly if the file was written in Unix. However it saddens me that I can't chose the plain-text mode's default font. Is there a way to change it? I'm guessing registry here, if at all. ...

Show/hide hidden files via a script/menu command?

I hide files so as to maintain a clean interface when browsing for the most useful items on my hard drive, safe in the knowledge that I can simply place the hidden file's name in the location bar at the top and open it that way. However, Windows 7 makes it a pain to toggle viewing hidden files or not. Is there a way to show/hide hidden ...

Delphi - Write string to Reg_Binary registry key

I need to convert a string to write it into a registry.reg_binary key. I have the basic code for writing into the key as follows: try rootkey := HKEY_CURRENT_USER; if OpenKey(Key, False) then begin reg.WriteBinaryData('SomeKey', SomeValue, Length(SomeVale)); CloseKey; end; finally reg.Free; end; In the abov...

Enabling all IE Trusted Sites Settings Through Registry/VBS

I have started a VBS to change all the Internet Explorer settings in Trusted Sites to enable and have had luck seeing the actual value change from whatever is was to 0 to indicate enabled IN THE REGISTRY. Problem is when I open IE settings none of the radio buttons have changed to indicate this change. Does anyone know where I went wrong...

How to run .reg file in Java

Hi guys, I need to install a .reg file (INTRANET) by using Java. How do i get my goal ? Cheers, ...

How to get product code and its registry value from an exe?

Hi, I have an exe of a product. I need to know the product code as well the location of it in the registry. Is there a way to find it out. Regards, Priya.R ...

How to get the last current or visited Web URL in Windows?

I'm writing a Windows app. where you can create "links", it is easy to link files or folder (just use the standard dialogs for open files or browse folders), but for linking a Web URL I don't know how to get (from a Windows function or registry key) the current or last visited page. Maybe something like the recently used files, but refe...

Reading the registry of a (windows computer) from a web app (silverlight? php? etc)

Is there a way to read the windows registry from a web based application with no user interaction? im open to language suggestions, any language will work i just need to know how to pull a certain string from one particular registry key. EDIT: incase this wasnt clear, im operating inside of a web-browser, obviously.. its a web applicati...

.Net TimeZoneInfo ID - Is it Windows Language Specific?

I'm using the .net TimeZoneInfo FindSystemTimeZoneById method which I understand queries the registry. Are the values for Time Zone ID strings stored in the registry at "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zone" dependent on the language of the Windows installation of the machine? The registry key cont...

How do I read the registry in 32-bit c# app such that registry redirection works on 64-bit Windows 7

My boss just got Windows 7 and he tried running one of our installers which runs perfectly fine under XP. On Windows 7, the installer runs without giving any errors. However, it does not create registry keys under HKEY_LOCAL_MACHINE\SOFTWARE{Company}{product}. These keys get created correctly under XP. Has anyone encountered this iss...

Disable debug prompt on application crash

Question: I need to disable the console application's crash debug prompt. Background: We've got an application that syncs info with a third party that crashes due to connectivity problems with the 3rd party at certain times of the day. We don't have access to the source code to trap the error properly so I just need the application to ...