registry

WiX: How do you write variables specified on installation to the current user registry key of ALL users?

OS: MS Windows XP Pro (SP3) My application needs to access external databases, the locations of which I specify on installation. The specified file paths are then written to the registry, and the application then pulls this information out of the registry when it needs to. I have implemented this in WiX as follows, using just one of the...

Get paths of all applications in the registry

string registryKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(registryKey)) { (from a in key.GetSubKeyNames() let r = key.OpenSubKey(a) select new { A...

Register applications via Registry table rather than TLBs

We register the capabilities of Delphi applications using TLB files. However, from reading MSDN documentation, "Installation package authors are strongly advised against using the TypeLib table. Instead, they should register type libraries by using the Registry table". Does anyone have any advice on how to do this in a 'Delphi' way for W...

How to get registry Key name from an open Key Handle in Perl?

I have a perl function that takes an open registry key object. Now, I want to get the name of the key this object represents. How do I get the key Name? I am using Win32::Registry module. ...

How can I turn off registry redirection on Python?

My program is trying to create an key on the HKLM\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\ but instead the key is created on the HKLM\Wow6432node\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\ and don't work properly... Why? How can I solve it? ...

List of Installed Updates on Windows 7 C#

With Microsoft Ultimate Wisdom they have changed the location of updates from Registry. I can get the updates from Windows 2003 Servers no problem. Its just that Windows 7 is no longer in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Any body got any other ways to get it. Preferably in C# or using WMI? God S...

Android: Programatically changing phone settings and getting lost calls

Hi everyone, anybody knows if it's possible in Android to programatically change the phone internet settings (proxies also), email settings and other similar? Is there some kind of registry? and what about getting the lost/received/etc calls? is it possible to get that info? thanks a lot! ...

Java RMI InitialContext: Equivalent of LocateRegistry.createRegistry(int) ?

I am trying to some pretty basic RMI: // Context namingContext = new InitialContext(); Registry reg = LocateRegistry.createRegistry(9999); for ( int i = 0; i < objs.length; i++ ) { int id = objs[i].getID(); // namingContext.bind( "rmi:CustomObj" + id , objs[i] ); reg.bind( "CustomOb...

How to create a shared registry key for WoW64 and x64 Processes.

Is there some way to create a custom (WoW64) shared registry key? By default some registry keys are shared and others are redirected (see MSDN). But I want to create a custom registry key under HKLM\Software which should be shared. I'm looking for a solution in C# (maybe P/Invoke) and WIX. ...

in x64 Windows is there a way to run a Runtime.exec() process avoiding 'Registry redirection'

Our app runs in jvm 32 bit, even when in windows x64. Now, at some point, I need to access some registry values, for example HKEY_LOCAL_MACHINE/SOFTWARE/mycomp. I do this by executing cmd /C reg query HKEY_LOCAL_MACHINE\SOFTWARE\mycop from Runtime.exec() and parsing the output. This works fine when running on windows 32b, the probl...

Is there a way to modify registiry hives of domain user not logged into the comptuer

We have an issue where we need to modify keys for users that are not currently logged into the machines and those that will login set a default. I know the best way to do this is a domain policy but that option is unavailable. Is there any good way to modify these keys programmaticly, or remotely short of having an exe on each machine ...

What does this registry file entry mean?

Trying to automatize an uninstallation I need to modify a .reg file that is filled with entries like this: [-HKEY_LOCAL_MACHINE\SOFTWARE\SomeSoftware] "Installed"="SomeDate" "Version"="SomeVersion" As far as i understand the way to delete a key would be: [-HKEY_LOCAL_MACHINE\SOFTWARE\SomeSoftware] and the way to delete a value woul...

MaxUserPort setting not being used by windows 2003 server?

i am using MaxUserPort setting (with 65000 as its value) in the registry on one of my servers (windows 2003 server). this was done to enable the box to handle a certain load profile. the setting has been working fine, along with the TcpTimedWaitDelay setting set at 30. i have setup the same settings on another windows 2003 server box, ...

Why does FileDialog sometimes not remember the initial directory?

I have made a WPF application on which you can open some Open/SaveFileDialogs. On my PC it remembers the directory I was in last time I used such a dialog and sets that as initial directory when I open another such dialog. But on my colleague's PC it doesn't remember. The exact class I use is Microsoft.Win32.OpenFileDialog. We both have...

UnauthorizedAccessException in ComRegisterFunction when accessing registry on Win 7 64.

I have a [ComRegisterFunction] that I am using to register a BHO Internet explorer extension. During registration on 64-bit windows 7 machines, a UnauthorizedAccessException is thrown on the call to subKey.SetValue("NoExplorer", 1). The registry appears to have BHO's located @ \HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio...

Programmatically allow write access for a Registry key

Hi everybody, I need to programmatically modify the Access Descriptors on a known Registry key during product installation. The way I want it to work is: The installer is run in Administrative mode. A Registry key is created. A function (the one I need) queries the ACL from the key. If this function finds that the group 'Users' alread...

Change internet explorer security settings.

HI, How can i change internet explorer security settings by code. i want to do the steps below but by code: Tools -> Internet Options -> Security tab -> Custom Level -> and change the logon type to Anonymous logon. I think that it can be changed from the registry file but i can't found it. ...

C# Application Calling Powershell Script Issues

Hi, I have a C# Winforms application which is calling a simple powershell script using the following method: Process process = new Process(); process.StartInfo.FileName = @"powershell.exe"; process.StartInfo.Arguments = String.Format("-noexit \"C:\\Develop\\{1}\"", scriptName); process.Start(); The powershell script simply read...

Why is OpenSubKey() returning null on my Win 7 64 bit system?

Has anyone seen OpenSubKey() and other Microsoft.Win32 registry functions return null on 64 bit systems when 32 bit registry keys are under Wow6432node in the registry? I'm working on a unit testing framework that makes a call to OpenSubKey() from the .net library. My dev system is a Win 7 64 bit environment with VS 2008 SP1 and the Wi...

C# windows client get registry value

I have a c# windows client app packaged using ClickOnce. Using c# how can I programmatically get the registry entry for that application? As I am wanting to write a registry entry for a child app NEAR the same location ...