Is there a way to check whether the current user can write to the registry? More specifically if it's not an administrator, can it write to HKEY_LOCAL_MACHINE or the policy keys on HKEY_CURRENT_USER.
I tried with LookupPrivilegeValue() but I don't think it's the right thing to do.
Code is appreciated.
...
In the simplest possible terms (I'm an occasional programmer who lacks up-to-date detailed programming knowledge) can someone explain the simplest way to make use of the registry in codegear C++ (2007).
I have a line of code in an old (OLD!) program I wrote which is causing a significant delay in startup...
DLB->Directory=pIniFile->Rea...
In Internet Explorer 7, you can select options from comboboxes by typing the first few letters of the value you're looking for. However, some people in our organisation are a bit slow and can't type their selection quick enough, with the result that the timeout is triggered and the "select as you type" process starts all over again.
Exa...
When I register the following in SM and then attempt to create an instance I get the exception - 'StructureMap Exception Code: 202 No Default Instance defined for PluginFamily...'
Scan(x =>
{
x.Assembly("MVCDemo");
x.Assembly("MVCDemo.Infrastructure");
x.Assembly("MVCDemo.Services");
...
Hi,
Is it possible to write to windows registry during uninstallation of an application? Is such functionality supported by Wix. I want to avoid doing it in an assembly and calling the function using custom actions. However, I would not mind creating an in-script custom action.
Regards,
Wamiq
...
I am storing some short user data strings in the Windows registry. This worked fine until one of my users tried to store a string containing a '\' character. This was then interpreted as a registry path delimiter.
What is the best practice for avoiding this problem? Some sort of simple encoding?
Note/ I am using the Qt QSetting class t...
Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\9.0\10.0\Text Editor.
What guideline settings do you use?
...
I'm considering creating a key under HKEY_LOCAL_MACHINE. I've read the MDSN and kind of understand what to do but am concerned about the Registry Security business. I want any user on the system to be able to access the key. Do I need to specify something in the LPSECURITY_ATTRIBUTES parameter of the RegCreateKeyEx call? If so what?...
I need to read the location of the Temporary ASP.NET Files folder from VBScript as part of a post-installation task in an installer created using a Visual Studio 2008 deployment project.
I thought I would do something like this:
Set oShell = CreateObject("Wscript.Shell")
strPath = oShell.RegRead("HKLM\SOFTWARE\Microsoft\ASP.NET\2.0.507...
I have written a window service. and I am able to successfully install/run the service. Now I have added a timer to the service and I want to be able to adjust the interval via the registry. But I can't figure out why GetSetting("MyAppName", "MySection", "IntervalSetting") will NOT return the value in the registry!
Am I missing som...
Hi,
How can I check for registry value using VbScript?
Thanks
...
What is the correct way to create a file extension (and maybe a MIME type) that will run from your local file system without prompt, but if you browsed to that file through Internet Explorer or Firefox you would get prompted (warned)? What is the exact mechanism in the windows registry that controls this?
...
My question is a bit related to this one but it's not what I was aiming for:
http://stackoverflow.com/questions/35070/programmatically-merge-reg-file-into-win32-registry
What I want to do is to create a program that can import a .reg file using win32 or some other library. I tried looking around but failed at that part. Something like...
Hi
I am using RegOpenKeyEx() and giving registry path Software\\Mozilla\\Mozilla Firefox ,its giving error_sucess.but after that how can i get the instal directory Data of mozilla firefox from that path using RegQueryValueEx().
...
Hi
I am able to open the registry path i.e "Software\Mozilla\Mozilla Firefox" in RegOpenKeyEx.but i am trying to fetching "CurrentVersion" using RegQueryValueEx().But i am not getting the curent version.can u pls send me some code example.
...
What is the best way to deploy a HKCU registry change for anyone who logs onto the machine. Someone mentioned to me Active Setup...but I am not sure.
...
Hello, I'm creating a setup pacakage in Visual Studio 2008 to register a COM component and one of the actions is to add a few keys to the registry.
The odd thing about it is when I run the installer it creates the key hierarchy correctly but the last key in the hierarchy it creates has the wrong GUID... whereas its right in the installe...
Does the Java provide some sort of registry- or cookie mechanism where I can store small pieces of data to load next start I start an java application- or applet?
For example the application settings such as last opened file etc
...
i created an xml like registry structure.. i can node traverse through node name ..here i cannot traverse a nodepath through attribute value ...i give the xml below..
<Computer>
<HIVE Name="HKEY_CUREENT_USER">
<Elements>
<element Name="(Default)" Type="REG_SZ" Data="(value not set)" />
<element Name="SoftwareMic...
I have an MDI Windows Forms application (.net 2008) that allows the user to associate various file types with the application. I currently do this with a registry entry something like this, that causes the application to load and access the file name via the command line:
Registry.SetValue(appKey & "\shell\open\command", "", """" & _
...