regedit

Regedit shows keys that are not listed using GetSubKeyNames()

岁酱吖の 提交于 2019-12-04 16:45:18
I've checked some other replies on SO but as far I can see, this is a different issue than the hits I got. When I open RegEdit, I can see a set of keys but when I list them from my program using e.g.: Registry.LocalMachine.OpenSubKey(@"SOFTWARE").GetSubKeyNames() some of them are missing. I thought it might to do with the access rights so I checked .CurrentUser too. The same behavior can be experienced there. A few of the subkeys are just not listed. What am I missing? Ganesh R. Is your OS x64? If that is the case, for "LocalMachine\Software" there are two different nodes: Normal for x64 apps

Get installed software list using C#

落爺英雄遲暮 提交于 2019-12-04 12:45:44
问题 I try to get a list of installed application keys: RegistryKey RegKeyUninstallList = Registry.LocalMachine; string strUninstallList = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; string[] test = RegKeyUninstallList.OpenSubKey(strUninstallList).GetSubKeyNames(); I get only the Keys from: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall But I need also the Keys from: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall My program

Copy as path in windows context menu

隐身守侯 提交于 2019-12-04 02:57:08
问题 I'm trying to implement "Copy as path" option in windows context menu ,which copies current file or folder path to clip board instead of installing a software for this , i would like to implement it my self. Any suggestions? 回答1: You can add a link to the context menu by fiddling with the File Types dialog, or using the registry. In the registry, the path is HKEY_CLASSES_ROOT\*\shell . Add a key under that named "Copy as path", and a key under that named "command". Change command's default

executing all the .reg files from batch file

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have following script that executes all the .reg files in the current directory. the problem is i also have sub directories in that folder and i want to execute those reg files as well. I am not sure what switch i am supposed to use. i tries using /s which returns all the .reg files of the drive. this is how my batch file looks like: rem @echo off cls SET folder =%~ dp0 for %% i in ( "%folder%*.reg" ) do ( regedit / s "%%i" ) echo done pause EXIT This is how file/directory structure looks like: Folder1 batchfile . bat -> user

Why can't Jenkins find this .NET AssemblyFoldersEx registry key?

不羁的心 提交于 2019-12-02 19:24:16
问题 So I have a project that builds fine on my development machine, but not on my CI server (Jenkins). Jenkins can't find my Primary Interop Assemblies even after I've copied over various folders from my machine to make them available to it. On my machine, where everything works, I can turn on my Visual Studio's option for "diagnostic"-level output, and I can see how it figures out where these PIA's are at... Primary reference "Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken

Why can't Jenkins find this .NET AssemblyFoldersEx registry key?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 09:14:38
So I have a project that builds fine on my development machine, but not on my CI server (Jenkins). Jenkins can't find my Primary Interop Assemblies even after I've copied over various folders from my machine to make them available to it. On my machine, where everything works, I can turn on my Visual Studio's option for "diagnostic"-level output, and I can see how it figures out where these PIA's are at... Primary reference "Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Resolved file path is "C:\Program Files (x86)\Microsoft.NET\Primary Interop

Webbrowser control ignores FEATURE_BROWSER_EMULATION reg entry

独自空忆成欢 提交于 2019-12-02 01:02:18
Im developing a custom browser solution with .net's Webbrowser control. To disable the IE-Compatibilty View, I set the registry entry Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION: [Sreenshot regedit] http://zbirk.mirk.at/browserreg.png "Screenshot" i tried to use the values: dword=8000,dword=8888,dword=9000, but the webbrowser control seems to ignore these reg entries. Maybe someone had this problems too and may help me. The WebBrowser control definately DOES respect these keys. Remember that while taskman may show application.exe in the name column, if

Copy as path in windows context menu

早过忘川 提交于 2019-12-01 15:31:22
I'm trying to implement "Copy as path" option in windows context menu ,which copies current file or folder path to clip board instead of installing a software for this , i would like to implement it my self. Any suggestions? You can add a link to the context menu by fiddling with the File Types dialog, or using the registry. In the registry, the path is HKEY_CLASSES_ROOT\*\shell . Add a key under that named "Copy as path", and a key under that named "command". Change command's default string value to "c:\your-program.exe %1", and when the user selects "Copy as path" it will run your executable

Adding environment variable from command prompt / batch file

三世轮回 提交于 2019-12-01 12:51:11
问题 I am trying to add a environment variable (System) in my batch file. The below command says ERROR: Invalid syntax. Can some one help. For me it looks good. reg add HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment /v ToDelete /t REG_SZ /d "192.168.00.00" Thanks 回答1: I think you need to quote the registry key as it has spaces reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v ToDelete /t REG_SZ /d "192.168.00.00" 回答2: SetX.exe is probably the easiest

Enable/Disable TaskManager

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 11:05:11
public static void ToggleTaskManager(string keyValue) { RegistryKey objRegistryKey = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"); objRegistryKey.SetValue("DisableTaskMgr", keyValue); objRegistryKey.Close(); } private void btnDisableTaskManager_Click(object sender, EventArgs e) { ConsoleDisplay.ToggleTaskManager("1"); } private void btnEnableTaskManager_Click(object sender, EventArgs e) { ConsoleDisplay.ToggleTaskManager("0"); } For Disable/Enable TaskManager used above function but when i disable first time then it disable correctly.But