registry

How do I get past Windows Vista security?

Is there a way to get my .exe file to execute with administrator rights instead of me killing the LUA at registry or right click file and running as administrator? When I alter the registry it prompts the user which I don't want. I am only adding the file to kill the LUA to give the user full rights to execute my .exe file. If I can ...

Encrypt Registry Contents

Hi.. i am generating *.reg file using code which will have some important data. and user will save this into registry. upon application launch i am getting the values from registry and performing some validation.. but the problem is that in registry and in *.reg file the information are stored in plain text. how can i create encrypte...

How do I register a .NET assembly to the GAC and register it for COM in WIX? (Regasm)

I am making a custom tool (code generator) for VS2008. I have the wix installer putting in all the registry entries for the visual studio, but what it is not doing is the equivalent of regasm mytool.dll It is getting into the GAC by virtue of the Assembly=".net" attribute of the File element. But I am not even entirely sure that getti...

how do i start explorer using process class in c#

i have replaced windows shell with my application it worked perfectly, after closing my application i have to launch windows explorer with the following piece of code Code to start explorer Process.Start(@"c:\windows\explorer.exe"); Registry key i have used to replace shell HKEY_Local_Machine\Software\Microsoft\WindowsNT\CurrentVer...

VB6 Error - Cannot load .ocx File

Good afternoon, I have been trying to load a OCX file into one of my VB6 projects for most of the day today. I've tried checking the COM registration in the registry the best that I know how, and have attempted several times using REGSVR32 on the file to no avail. All I keep getting from VB6 when I try to load the component (Under Pro...

enum all values from a subkey

hey everyone, I have a subkey in my registry with an unknown numbers of values. I want to get all the data from those values in th specified subkey. how can I do that ? I don't know the names of the values and the number of values. I'm programming in C. thanks! ...

Win7 registry problem

I have an application that access registry for finding the path where is installed Expression Web in order to open some .html files with Expression Web. In Windows XP works ok. In Win7 not. What should I do in this case? I'm using C# for accessing registry keys. ...

OpenRemoteBaseKey() credentials

I'm attempting to use powershell to access a remote registry like so: $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", $server) $key = $reg.OpenSubkey($subkeyPath) Depending on some factors that I'm not yet able to determine I either get Exception calling "OpenSubKey" with "1" argument(s): "Requested registr...

How to register generic interfaces in StructureMap...

How do I register all the instances of a generic interface in Structured Map? I know how to do this for a none generic interface: internal class MVCDemoRegistry : Registry { public MVCDemoRegistry() { Scan(x => { x.Assembly("MVCDemo"); x.Assembly("MVCDemo.Infra...

How to check whether the tlb file is registered in registry using C++?

Hi I have created a class library using c#.And i have registered the class library using regasm.. RegAsm.exe Discovery.dll /tlb: Discovery.dll /codebase Now i want to know whether the assembly is registered or not using c++. I need because I have to check the registry for this dll if it is not registered I have to registered it ...

How to change Internet Explorer search assistant programmatically?

Folks, I am developing Browser Helper Object, that has to change search assistant URL in Internet Explorer 6. I have discovered on the web, that it can be done by writing new "Search assistant" value into registry "HKEYLOCALMACHINE\Software\Microsoft\Internet Explorer\Search". However when I write it manually nothing changes in IE beh...

How to know when \Registry\Machine\Software key is loaded?

I want to access \Registry\Machine\Software key from a driver. The driver is loaded prior to the registry key. Do I have to poll the key availability? Or there is something I can wait for? ...

How to obtain a registry value from a remote machine if I don't know its type? (C#)

Depending on what value type is stored, I have to use one of the following methods: GetBinaryValue GetDWORDValue GetExpandedStringValue GetMultiStringValue GetStringValue I would like not to have to try all five if all I know about a value is the hive, the key, and the value name. Is there a way to do that? I'm using WMI, but if the o...

How to check the class id is registered or not?

Hi i am checking the GUID of SqlClass which is in my Test.dll But it does not give success it failed with value... Whatis wrong in this code. #include <windows.h> #include <iostream> using namespace std; int main() { HKEY hk; long n = RegOpenKeyEx(HKEY_CLASSES_ROOT,TEXT("\\CLSID\\SqlClass"), 0,KEY_QUERY_VALUE, &...

Set InstallPath registry key using Visual Studio Setup project

I am deploying my application using an msi installer designed with a Visual Studio Setup Project. How do I set a registry key to the application's install path? ...

GPO settings - will they overwrite registry modifications on client machine?

I have installed a windows application, whose configuration settings come from a GPO (User configuration) on a Windows Server 2003 machine. The GPO sets a few registry keys, specific to the application, on the client's registry. If i change these registry settings on the client machine via the application, will those registry settings g...

how to interpret the windows registry 'ShellState' value

In the windows registry, under the key [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer], there is a REG_BINARY variable called ShellState, 44 bytes in length. It looks suspiciously like a set of bit flags, but maybe there's some kind of struct present, really no way to tell from looking at it. Anyway, does anyone...

c# Clean a registry file .reg to remove duplicate entries

A company I work for sometimes uses super mandatory profiles for their users. Unfortunately this can cause lots of issues with user settings not being saved at log off and so on. To work around this a .reg file is run at startup. For some of these settings regmon was used to record making the settings change and a reg file created from t...

How do I check whether a user is allowed to read / write a particular registry key?

Hi, Does anybody know how I can programmatically check (using C#) whether my program will be able to read / write a particular registry key (specifically: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run")? I am asking because my program has the option to enable or disable the 'run at startup' behaviour. I want to disable this option if ...

Which reasons could make ShellExecute fail?

I have a VB6 application which opens files with their associated application using: ShellExecute(0, "open", filename, params, vbNullString, vbNormalFocus) This works perfectly. Now I got a customer (running XP with Adobe Reader) who can't open any PDF file using the above command. But the same file is being opened without any proble...