Все вопросы: [registry]

320 вопросов

0
голосов
1ответов
329 просмотров

How to share windows registry on remote machine?

Is it possible to share windows registry on remote machine? Or we can keep in synch two machines windows registry. Please help.. Kartik

7
голосов
1ответов
7365 просмотров

Associating file extensions with a program

I get how to do it, and i have been to http://www.codeproject.com/KB/vb/VBFileAssociation.aspx before. My question is about what doing that does, is it possible to reverse it? What if you do not know where your program will be, and you are just testing it for now? Is there any way for it to "find...

0
голосов
1ответов
2096 просмотров

Delete a registry value using a CAB installer

Is it possible to delete a registry key using a CAB installer that is generated using VS2005? The CAB is targeted at Windows CE 6. Edit: I did find this http://forum.xda-developers.com/showthread.php?t=415990, but I was hoping to find a way to do it using VS2005 or VS2008 and in an easier way....

0
голосов
1ответов
1010 просмотров

Can't create a new Windows Azure Project - "Requested registry access is not allowed "

When I attempt to create a new Cloud Service project, after it prompts me for 'Roles', I get the following error message and VS just stops: "Requested registry access is not allowed " I am running Visual Studio as an administrator, so what gives? I found a couple of sites that mention using "s...

1
голосов
1ответов
4147 просмотров

Which has the greater precedence: Windows Group Policy or Registry Keys

Say there is a group policy that prevents the user from using the "run" command in Windows. What would happen if there was a registry key that contradicted this i.e. allowed the user to use the run command? Would the user be able to use "run" or not? Thanks a lot for any answer!

2
голосов
4ответов
245 просмотров

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.

6
голосов
5ответов
3024 просмотров

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...

2
голосов
1ответов
1046 просмотров

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 trie...

0
голосов
2ответов
769 просмотров

Simple C# registry object with Getters and Setters

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 c...

1
голосов
3ответов
8227 просмотров

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 ...

3
голосов
3ответов
4139 просмотров

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...

0
голосов
1ответов
397 просмотров

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\Mi...

2
голосов
2ответов
7471 просмотров

Open another user registry settings

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

0
голосов
5ответов
1056 просмотров

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 ...

7
голосов
7ответов
7712 просмотров

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.

2
голосов
2ответов
2241 просмотров

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...

52
голосов
4ответов
86831 просмотров

See what files/registry keys are being accessed by application in Windows

How do I see what files/registry keys are being accessed by my application in Windows?

0
голосов
3ответов
1234 просмотров

add shortcut to my program when right click

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 prob...

0
голосов
1ответов
981 просмотров

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 migh...

2
голосов
3ответов
10632 просмотров

How to remove registry value and key from registry entry

I already setting key and value in the registry entry by using RegSetValueExA, and it's created . But Now I want to delete that key and value from registry entry and for that I am using RegDeleteKey but its giving error 2 which is "The system cannot find the file specified.", can you tell me how ...

3
голосов
2ответов
2185 просмотров

couldn't access registry HKLM keys

couldn't access registry HKLM keys from windows xp limited/guest user accounts public int GetEnabledStatus() { RegistryKey hklm = Registry.LocalMachine; int Res; try { RegistryKey run1 = hklm.OpenSubKey(@"Software\Microsoft\Windows\myApp", true); hkcu.OpenSubKey(@"Software\Mic...

6
голосов
5ответов
7082 просмотров

Accessing the Windows registry using .NET?

I am finding a strange behavior with a .NET module accessing the Windows Registry using the RegistryKey class. For example, I have written a .NET module, testcom.dll, which access the registry. This testcom.dll file is used both by a native 32-bit application and a 64-bit application. My require...

1
голосов
1ответов
424 просмотров

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.Construct...

0
голосов
1ответов
292 просмотров

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 ...

0
голосов
2ответов
642 просмотров

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 ...

0
голосов
1ответов
865 просмотров

Windows xp Change Wallpaper to Webpage

To do this manual i just pick a html file in the change wallpaper dialog and tada works.. but if i want to do this from code what api calls / reg keys must i change? Iv tryed this SystemParametersInfo (WinAPI) didnt work and i have found out that "HKEY_CURRENT_USER\Software\Microsoft\Internet E...

3
голосов
5ответов
1802 просмотров

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?

2
голосов
2ответов
195 просмотров

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\Softw...

3
голосов
1ответов
5037 просмотров

How to determine if a registry key exists in Wix

I want to determine if a Registry key exists in Wix. I cannot make any assumptions about value names in that key, but at least one exists. Default value is not set. Is it possible to check if the key exists (and optionally, if it has any values) without using custom actions?

1
голосов
1ответов
949 просмотров

Programmatically Changing XP Appearance Settings

I am trying to silently apply very specific appearance settings for a single user with poor eyesight on an XP machine. I can alter the settings by using the appearance tab of the display settings dialog and clicking apply/ok. Doing this works however the user cannot see well enough to change he...