registry

Updating every profile's registry on Windows Server 2003

I have a Windows Server 2003 system that is used for terminal services. We do not use roaming profiles. We do not use login scripts. I have about thirty to fourty accounts that log into this system and as such have local profiles. One of the software packages that are installed onto this system uses HKCU/Software reg tree for its...

Is this the appropriate way for a .NET application to auto-run at startup?

I'm teaching someone better practices by refactoring a large project they worked on. One of the current functions of the application is the option to have the application start when Windows starts. Currently, the application accomplishes this using the Run registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run ...

How can my Perl script know it is running under Win64?

How can I have my Perl script detect it's running on a 64-bit Windows machine, even if it's a 32-bit perl? ...

When is ieaksie.dll registered as InProcServer32 for InternetExplorer.Application?

One of my guys had a problem when instantiating InternetExplorer.Application from VB6 and VBScript. It turned out that he (but no one else on the team) had the following entry in the registry apart from the expected (and working) LocalServer32 entry which creates an instance out-of-process using iexplore.exe: [HKEY_CLASSES_ROOT\CLSID{00...

Can we contribute a new plugin.xml to ExtensionRegistry

I have a some additional xml files(containing standard eclipse extensions) that lie outside the bundle. Is there a way that I could contribute the extns/extnpoints in those files to the platform's extension registry? I tried `Platform.getExtensionRegistry.addContribution(..)` But the method takes a masterToken object, which I dont h...

StructureMap looking for an instance System.Type

I am trying to get an MVC site with NHibernate set up for Dependency Injection using StructureMap. This is a line from my StructureMap Registry: ForRequestedType<NHibernate.ISession>().CacheBy(StructureMap.Attributes.InstanceScope.HttpContext) .TheDefault.Is.ConstructedBy( context => context.GetInstance...

Accessing Registry using .Net?

Hello Everyone, I am finding a strange behavior with a .Net module accessing registry using RegistryKey class. For eg I have written .Net module testcom.dll which access registry. This testcom.dll is used both by native 32 bit application and 64 bit application. My requirement is to get the value of a regkey (path being HKEY_LOCAL_MACHIN...

How do I delete a registry entry in Windows x64 in the 64 bit tree without using RegDeleteKeyEx in C++?

I'm working on an 32 installer that has to run on environments ranging from Win XP upwards. We have a problem where we have to remove a registry entry on the x64 section of the registry under Windows 2k3 x64. That's easy enough with RegDeleteKeyEx, but I can't distribute an executable that might call that function because it won't run ...

add shortcut to my program when right click

Hi all, Im not sure what the exact term should i called. I want to add shortcut to my C# program when i right click in windows. From my findings, it got something to do with configure the "regedit". I have this example, but it was made for IE. can anyone point me to any references that can solve my problems? references: http://blog.v...

RegQueryValueEx - What code add to this function to show ERROR_SUCCESS

What code add to this function to work good? (ERROR_SUCCESS) I have code, that check value in registry. In function RegQueryValueEx is bug. When oldValue is few letters longer than newValue, function shows ERROR_MORE_DATA, but I want want ERROR_SUCCESS What code add to this function to do this? void function(string newValue, string k...

Registry - How to rename key in registry using C++ ?

How to rename key in registry using C++? I want rename key "Myapp\Version1" to "Myapp\Version2". I don't see any function in MSDN about renaming keys in registry. ...

Impersonation and Registry Manipulation in Vista\Win7

I need to create a program that has access to HKLM when running in a non-admin session. I have access to the admin credentials so impersonation seems to be an option.The sequence of Win32 calls is: LogonUser ImpersonateLoggedOnUser RegOpenKeyEx RegCreateKeyEx The key is successfully created on XP/2003 and fails with 'Access Denied' ...

Open another user registry settings

Hi all, I want to write a application that writes to all users on a local machine a specified key (eg: i want set the location for IE Favorites for all users to the same folder) PS anybody used these functions? LoadUserProfile RegOpenCurrentUser CreateProcessAsUser ...

IP security policy on windows 2003

Does anyone know how I can: create IP security policy manage IP filters and IP filter actions PROGRAMMATICALLY on windows 2003? Not use Microsoft GUI utility. I tried to achieve this by programming with windows registry, all data I need that is under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\IPSec\Policy\Local but I h...

How exactly do Windows portable applications work?

Portable applications can be run from USB-drives and all and are thus very convenient, but unfortunately they are slow (as a USB drive is usually slower). How exactly does the installation of a portable app differ from that of a normal app? I know they do not create registries and all, but then how do they achieve the same thing as oth...

Reading HKEY CURRENT USER from the registry in Python, specifying the user

In my application I run subprocesses under several different user accounts. I need to be able to read some of the information written to the registry by these subprocesses. Each one is writing to HKEY_CURRENT_USER, and I know the user account name that they are running under. In Python, how can I read values from HKEY_CURRENT_USER for a...

Simple C# registry object with Getters and Setters.

Hi, How would I achieve something like this in C#? object Registry; Registry = MyProj.Registry.Instance; int Value; Value = 15; Registry.Value = Value; /* Sets it to 15 */ Value = 25; Value = Registry.Value; /* Returns the 15 */ So far I have this object: namespace MyProj { internal sealed class Registry { static re...

Can't find VS2008 installdir registry in Windows 7 x64

I'm currently writing a building script that needs the installdir registry key for visual studio 2008 to find where the devenv is. In windows vista, the registry key used to be in local machine\software\Microsoft\VisualStudio\9.0\installdir, but in windows 7 x64, it seemed to be not found. I tried, but failed to find it in other director...

Adding registry key in C# shows when I read it back, but not in regedit

I am adding a registry key using the following code: var key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(key); Within my code I can read back the value find, even in between runs. However, the key never shows in regedit and the other program that should be reading the key can't see it. The program is running on Vista with el...

What is the need of registering a COM component?

I am a .NET developer new to COM. I'd like to know what is the need of registering a COM component? What happens during registration. ...