registry

Disable registry redirection in WiX

柔情痞子 提交于 2020-01-04 04:34:10
问题 I'm using WiX to deploy my application. This application uses a registry key which is shared between x64 and x86 processes. Thus it must not use the Wow64Node. The application uses the KEY_WOW64_64KEY flag to achieve this. But how can this be done using an MSI build with WiX? Currently I use an x86 and an x64 version of the installer, but that gives me a large overhead. Is it possible to disable registry redirection in WiX? I found the DisableRegistryReflection attribute, but that does not

How to modify Internet Explorer temporary internet settings with registry?

倾然丶 夕夏残阳落幕 提交于 2020-01-03 17:35:12
问题 I have been looking through registries for hours and can't seem to find the one that controls the Internet Explorer Temporary Internet File settings. I want to change from Automatic to something else. 回答1: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings DWORD called SyncMode5 0 = Never 2 = Every time you start internet explorer 3 = Every visit to the page. 4 = Automatically Found it here - first result if you Google "temporary internet files check for newer registry". Tried

How to set value in registry via batch file in Windows?

我怕爱的太早我们不能终老 提交于 2020-01-03 09:08:54
问题 I am going to set a value to windows registry. I want to set variable shit for StupidMS in registry, but the result is wrong. Following is my code. set stupidMS=shit echo %stupidMS% reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "StupidMS" /t REG_SZ /d ^%stupidMS^% I think the problem is ^%stupidMS^% , but I quite have no idea how to correct it. 回答1: reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "StupidMS" /t REG_SZ /d "%stupidMS%"

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

假装没事ソ 提交于 2020-01-03 08:48:14
问题 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 only way is by using the advapi32.dll method, I'm open to that. 回答1: You can use the StdRegProv.EnumValues method to enumerate values of the key, find out the

Porting .NET Framework code to .NET Standard, using Process, RegistryKey

℡╲_俬逩灬. 提交于 2020-01-03 08:45:12
问题 I have a method from an existing .NET Framework project that gets the path to the default browser in Windows from the Registry and launches it with a Process call: string browser = ""; RegistryKey regKey = null; try { regKey = Registry.ClassesRoot.OpenSubKey("HTTP\\shell\\open\\command", false); browser = regKey.GetValue(null).ToString().Replace("" + (char)34, ""); if (!browser.EndsWith(".exe")) browser = browser.Substring(0, browser.LastIndexOf(".exe") + 4); } finally { if (regKey != null)

OpenSubKey under HKLM\Software returning null

£可爱£侵袭症+ 提交于 2020-01-03 08:15:18
问题 Here's my code: Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\ADM"); The registry entry exists on the machine. key is always null. I don't think that this is a security issue. I'm running as Administrator. (I've even explicitly ran the assembly under Administrator mode). I'm using Visual Studio 2010 running on Windows 7 64bit. 回答1: The problem is that I'm running 64bit and my app is compiled as 32bit. The key being read by: Microsoft.Win32

How windows performs integrity check before retrieving the values from it?

丶灬走出姿态 提交于 2020-01-03 05:37:48
问题 Hi I have wonder how windows performs integrity check on the registry values before its going to read it. While i am changing the cached domain credentials in the windows registry, I got those values from the following keys HKEY_LOCAL_MACHINE\SECURITY\CACHE\NL$1 ... NL$10. I have decoded it with the NL$KM key values and dumped the Stored password hash. And i wish to change the hash with my own new generated hash. But Windows its bit tricky they have added a final checksum validation for

How to access registry of a remote machine in Inno Setup

*爱你&永不变心* 提交于 2020-01-03 04:55:07
问题 I have Inno Setup installers that I use to update computers at customer sites. Generally there are two computers, but sometimes three or more. All are networked, and exactly one is headless. It is relatively easy to run the installer on all the headed (if that's the opposite of headless?) workstations, thus running all tasks associated with those computers. There are also tasks that need to be performed on the headless workstation. Generally, these are quick, simple tasks (copying small files

cannot get the path for the virtual folder on windows 7 C++(shell namespace extension related)

亡梦爱人 提交于 2020-01-03 04:50:06
问题 By using Microsoft windows SDK 7.0, explorerDataProvider, I installed a virtual folder on windows 7. When I open the file browse dialog from an application, CFileDialog dlg(TRUE, NULL, 0, OFN_ENABLESIZING | OFN_ALLOWMULTISELECT, L"all(*.*)|*.*||", this); INT_PTR result = dlg.DoModal(); if (result == IDOK) { . . . //some actions } it can also display the virtual folder: But when I select the file, like "Zero" can then clicks "Open", I tried to add breakpoints to INT_PTR result = dlg.DoModal();

Extracting Network Profiles and displaying only Network Profile description in txt file

不打扰是莪最后的温柔 提交于 2020-01-03 04:27:08
问题 I am very new to batch scripting and have to use console to interrogate Registry for network profile description and output only the description data to a txt file. I am using a for /f loop to do this. I first reg query the whole key so it lists every sub key for network profiles and stores this in a text document. I then for /f this text file to extract out only the subkey name using tokens to store this as a variable. I then use the variable to reg query the individual keys for the