I want to register my own project extension in window registry. I searched on google, at least i found this code, this works well, but I don't understand one line. What is meaning of "%L".
The C# code is
string ext = ".ext";
RegistryKey key = Registry.ClassesRoot.CreateSubKey(ext);
MessageBox.Show(exePath);
key....
Hello,
I'm currently in the process of creating a Windows service application which will monitor changes to certain keys made in the HKEY_USERS registry. The way I do this is by collecting the SID of the current user. The issue I'm having is that its returning the administrators SID due to the service currently running as local system.
...
I have a Window (win32 API) Application in visual c++. I am not using MFC. I have to run my application on windows start up. I am using windows 7 and visual studio 2008. Can any one help me out in achieving the above task? Thanks in advance.
...
I want to allow read/write permissions to only administrators group for a registry key which is already created in the system. Other than administrators, no one should be able to access the key.
I have written code to enumerate all the registryaccess rules associated with the registry key and start removing each rule.
The problem i am...
I think the question really sums up what i'm trying to do. Here is the code that i'm using. It works in every scenario except if my application is running in 32 bit mode on a 64 bit machine. No matter how I play arround with the __ProviderArchitecture and __RequiredArchitecture flags, i can always only seem to access the 32 bit section o...
How do i read, write and delete a registry using VB 2005/2008.
Please give your explanation to your answer. I am really a registry noob...
Thanks.
I can't read any programming language other than vb.
...
I have a dll obtained from compiling a VS2005 project. But it is not regestering in my system im running VS 08.wat might be the probable reasons?
...
Hi All,
I am working on windows 7 support. In my application I want to gather installed updates and patches. Currently I am gathering it from WIn32_QuickFixEngineering. But it is not giving information for InstalledSDate , Description.
I need to get this either from registry or API (C++ application). In other operating system like XP,...
I am not entirely sure how to word this questions so I am just going to explain my problem.
My VB 6 program saves the location of the screen in the registry so that when it loads up again it can have a default location. This works as expected, but I encountered a problem. I had a computer setup with 2 monitors. I dragged the window to t...
We are in the process of moving from the .NET Microsoft oracle driver to the ODP.NET driver.
One of the problems we have had is this error:
ORA-12705: Cannot access NLS data files or invalid environment specified
We were able to stop the error by modifying the registry and changing the setting (see this question)
In our case we chang...
This is driving me nuts.
I registered a dll (COM) using
regsvr32 blabla.dll
In the meantime I deleted this dll manualy from disk.
How can I unregister this dll? I know CLSID.
Edit:
Apparently I need to delete this from registry
What should I delete in the registry?
...
In the registry and in theme files you'll notice a lot of references to DLLs when it comes to display names.
For example:
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmres.dll,-5856"
I've opened the mmres.dll file in PE Explorer, but I don't see any display names.
How can I retrieve the actuale d...
I did google couple of tutorials on google.
I am able to add right-click menu item to a FOLDER by doing this:
[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="TestRightClick:"
[HKEY_CLASSES_ROOT\Directory\shell\Command\Command]
@="myExecutable.exe %L"
I need to add this to a FILE as well.
1) Where do I add it in the registry?
2) ...
Related:
How to add new items to right-click event on Folders and Files in Windows?
I added custom right-click verb to all files by adding registry keys to HKEY_CLASSES_ROOT\*.
End result looks like this
HKEY_CLASSES_ROOT*\Shell\TestRightClick\Command
-------Default = c:\RightClickTest.exe "%1"
Problem: when selecting multip...
I note that there are many subfolders in the common appdata folder and many entries under hkey_local_machine for software on my windows 7 system. I'd like to know how there entries were created presumably when the software was installed and what enables the programs to get at them.
Are there facilities in the .msi files to make these f...
We have this code, but it doesn't work any more:
def get_vcvarsall(generator):
value = None
type = None
key_name = r'SOFTWARE\Microsoft\VisualStudio\SxS\VC7'
key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, key_name)
if generator.startswith('Visual Studio 8'):
value,type = _winreg.QueryValueEx(key, '8.0')
elif generator.startsw...
I am trying to execute this script by Ned Batchelder to switch .py file association between my two Python installations on Windows. This Python script uses the _winreg module (winreg in Python 3.x) to edit certain Registry values (the path and value pairs modified can be seen in the todo list in the script).
I execute this script as fol...
I have created a File/folder copy utility in C#.net. its working fine. problem is that when i right click on folder than my program's name appear their and its also working fine. but when i right click on any file or group of files and folder. so tell me which and where i need to create a registry key through my program so i can do that....
Question as in title.
When I have various entries in the Registry to a type library, but the actual type library file is no longer on the system, is it safe to prune these entries from the Registry?
...
I'd like to read/write some registry information from my non-admin Windows Service, and have it applied regardless of the user logged in. Would using a subkey of HKEY_USERS/.DEFAULT do the trick?
Essentially, something like CSIDL_COMMON_APPDATA but in the registry.
Thanks!
...