registry

RegistryPermission error when call from a C# console app.

Hi, Just looking for some pointer before I head down the wrong path. I have written small C# console app that opens, reads, writes and deletes from our users registry under both HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER Of course, I got it to work on my PC and all the test PC but one of our clients is getting an error when they try to r...

Is it worth it to lookup the default application in the registry when opening a file from a C# application?

I'm building an application (a side project which is likely to enlist the help of the stackoverflow community on more than one occasion) which will need to open a variety of file types (i.e. open Word documents in Word, not natively in my application). I've been playing with some code for looking up the default application for the file ...

Increase the amount of items in the Run MRU list

I'm trying to increase the number of items shown in the Run MRU list. The registry key in question is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU The relevant value is MRUList. From what I've seen, the maximum is 26, the values are a-z. I've tried adding values with symbols and numbers for the name (e....

ClickOnce Store metadata "AppType" is not valid

Hi All, I have app that uses ClickOnce deployment. It works on about a dozen machines but one. I am getting following error. I found solution from http://groups.google.com/group/microsoft.public.dotnet.distributed_apps/msg/42d44ffe781d3610, but it requires go to the registry and delete AppType, which is not the best solution, because...

Where is the RegKey for Show/Hide Desktop Icons on Win XP

On WinXP if you right click the desktop, and select View, and select 'Show Desktop Icons', the icons are hidden. Do you know the reg key that stores this value? And maybe more important, how did you know that or find the value? ...

Is there any way to notify IE about changes done in registry via code?

Hi, I have done changes in registry (proxy settings) via Windows programming code. I have to restart (reopen) Internet Explorer each time I run the code to make those changes take effect. Is there any API in Windows programming through which I can notify Internet Explorer or Windows that changes are made to the registry and there will...

C# Reading Decimal Value From Registry

Hi all, i have a NumericUpDown control and want to update its contents from the registry. So far this is what i got: this.apTime.Value = APRegsitry.GetValue("apTime").ToString(); Obviously that wont work so how do i set this.apTime to the value of the registry key? ...

Registering a service on the .net service bus

How can I programmatically be able to create a feed and add entries on the .NET Service bus reistry? I have a set of asmx and wcf services which I would want to be discoverable using the service registry capability of the .Net Servcie bus. Has anybody tried this one? ...

How do I remove registry values from WIX installation using the Wix2

It seems the way to remove registry values on installation using WIX2 is with the 'Registry' node + 'remove' action: (See: Wix manual) <Registry Action='remove' Id="RemoveCrap1" Root="HKCU" Key="Software\Microsoft\Windows\ShellNoRoam\MUICache" Name="@C:\somepath\mydll.dll,-4" /> However, I've built the msi and run it, and ...

Use Ruby to permanently (ie, in the registry) set environment variables?

On Windows, how can I use Ruby to permanently set an environment variable? I know I need to change the registry (through the win32ole module?) but I am a novice with regard to scripting the registry. I understand that I can say ENV['FOO'] = "c:\bar\baz" to set the environment variable FOO for the session. However, I am instead interes...

How do I get a registry value in Inno Setup when the value only uses the default name?

I'm trying to get the install directory of an application from the Windows Registry (Google Sketchup in this case) with Inno Setup's Pascal scripting so I can install a plugin there. The registry key doesn't have a name, it just has "(Default)" in Regedit. I tried this: RegQueryStringValue( HKLM, 'SOFTWARE\Google\Google Sketchup 6', ...

SQL like wrapper for Windows Registry?

The per key handling of updating the registry seems a bit poor when dealing with large volumes of data. Are there any libraries that would treat all keys as tables and allow INSERTS, UPDATES, or SELECTS in a more programmatic fasion? ...

Determine path to registry key from HKEY handle in C++

Given a handle to a Windows Registry Key, such as the ones that are set by ::RegOpenKeyEx(), is it possible to determine the full path to that key? I realize that in a simple application all you have to do is look up 5 or 10 lines and read... but in a complex app like the one I'm debugging, the key I'm interested in can be opened from a...

Find out the language windows was installed as

I have a problem where the user has set their locale (German) which is different that the Language Windows was installed as (English). Is there a way to discover what language windows was installed to use vs. what locale the user has set? I should note the issue is I am creating a Share and I set the permissions based on the Locale so if...

Reading 64bit Registry from a 32bit application

I have a c# unit test project that is compiled for AnyCPU. Our build server is a 64bit machine, and has a 64bit SQL Express instance installed. The test project uses code similar to the following to identify the path to the .MDF files: private string GetExpressPath() { RegistryKey sqlServerKey = Registry.LocalMachine.Op...

What is the problem with DLLs and the Registry?

Hi all, I was watching the WWDC 2009 Keynote and something someone said about Windows 7/Vista got me curious.. The speaker claimed that 7 was still a poor operating system because it still used the same technologies such as DLLs and the registry. How accurate are his claims and how different is OS X doing it? Even os x has dynamically...

Write to registry in Windows Vista...

Hello, I am trying to write to the registry from my application, but when I do I get access denied. Of course, it works if i run the app as Administrator. However, with my applcation, it is not initiated by the user. It start automatically. So, the question is, how do i read/write to my own registry key from the C++ app? Thanks for...

Detecting registry virtualization

I have a set of C# (v2) apps and I am struggling with registry virtualization in Win7 (and to a lesser extent Vista). I have a shared registry configuration area that my applications need to access in HKLM\Software\Company... Prior to Vista, everything was just written to and read from that location as needed. The code appropriately d...

Where to store Registry data for All Users

I would like to share a small amount of data between All Users in the Windows Registry. For shared read and write access between any user that logs into the machine or a service on the machine. Is there a location where this can be done? I have tried using "HKEY_USERS\.DEFAULT\Software\" but this seems to be blocked by the Vista UAC rule...

What are the valid characters for Registry keys and valuenames?

More specifically, what is the authoritative source for that information? This may look like a non-programming question, but I need to know whether a registry path fed to my code contains a regular expression or not. I decided the best way to do that is assume that any occurrence of an invalid character (like '*') means a wildcard searc...