registrykey

accessing HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData

我怕爱的太早我们不能终老 提交于 2019-11-28 13:44:42
Can anyone tell me why I can't access the registry key of "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData" ? if I query the GetSubKeysNames of "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer" it only returns one value being "Secure" ----> Where are all the other subkeys? Thanks. High odds that you are running your program on the 64-bit version of Windows and it is forced to run in 32-bit mode. The registry redirector will make you actually read the keys in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. And yes, that one also has a Microsoft

I added a registry key, but I cannot find it programmatically

孤人 提交于 2019-11-28 07:44:08
问题 So I used RegEdit to add the following to the registry on my workstation: HKLM\Software\Foo\Bar Bar has a k/v pair of "wtf"/"idk". I verified that these changes "took" by closing regedit and re-opening it. Hey, they're still there! Swell. RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Foo\Bar"); if (key != null) { var = key.GetValue("wtf").ToString(); } The problem is, key is null. When. . . Registry.LocalMachine.OpenSubKey("Software").GetSubKeyNames() Is called, Foo doesn't

Read and write from/to registry in VBA

百般思念 提交于 2019-11-28 04:29:18
问题 I saw this line in C# and I am trying to adapt it to VBA: Microsoft.Win32.Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR", "Start", 4,Microsoft.Win32.RegistryValueKind.DWord); I'm quite lost here with some error: Runtime: 5 - invalid procedure call) When I use the default i_Type string "REG_SZ" instead of "Start", then I get a regkey related error: Runtime - -2147024891[80070005] invalid root My code: Dim i_RegKey As String, i_Value As String, i_Type As

How to access registry key in a UWP app?

隐身守侯 提交于 2019-11-28 00:32:42
I would like to access windows10 registry key by a UWP app. key as: \HKEY_LOCAL_MACHINE\SOFTWARE\MyCompanyName\MyName I can not find any function call to accomplish it. Please indicate me How to do it? Thank you, Paula You can read registry values from a Win32 runFullTrust background process launched from a UWP application, and you can write values in the HKEY_LOCAL_MACHINE hive from an "elevated" Win32 application launched from that runFullTrust process. These techniques are powerful and using them in a UWP app deployed from the Windows Store requires special scrutiny and permission from

Reading Excel InterMixed DataType Without Modifying Registry Key

笑着哭i 提交于 2019-11-27 05:52:29
问题 I am trying to use C# to read excel file which has intermixed datatype. Below is my connection string var path = //xls location var MyConnection = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + path + "';Extended Properties='Excel 8.0;IMEX=1;'"); Research taught me that the complete Extended Properties in the connection string is supposed to be Excel 8.0;IMEX=1;HDR=NO;TypeGuessRows=0;ImportMixedTypes=Text However, I was informed that in connection string, the

Launch IE from a link in Chrome

本小妞迷上赌 提交于 2019-11-27 02:27:30
问题 I want to have a link in Chrome e.g. Open Link that when you click on it in the Chrome Browser that it launches the link in an IE window. Can anyone explain how to do this. I believe it is possible and may involve adding some settings in the registry ps: I can't use any browser extension e.g. IETab or any of this. It has to launch the IE on the machine. 回答1: Ok so I did the following which works : HKEY_CLASSES_ROOT alert (Default) = "URL:Alert Protocol" URL Protocol = "" DefaultIcon (Default)

How to access registry key in a UWP app?

北慕城南 提交于 2019-11-26 17:12:37
问题 I would like to access windows10 registry key by a UWP app. key as: \HKEY_LOCAL_MACHINE\SOFTWARE\MyCompanyName\MyName I can not find any function call to accomplish it. Please indicate me How to do it? Thank you, 回答1: You can read registry values from a Win32 runFullTrust background process launched from a UWP application, and you can write values in the HKEY_LOCAL_MACHINE hive from an "elevated" Win32 application launched from that runFullTrust process. These techniques are powerful and