registry

Searching registry keys giving different outputs in .net core and .net framwork

做~自己de王妃 提交于 2020-07-10 09:37:19
问题 While searching for a particular registry key under Local machine SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall using C#, the >net framework application is giving different result than in .Net core App RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", false); Console.WriteLine(key.GetSubKeyNames().Length); foreach (String keyName in key.GetSubKeyNames()) { RegistryKey subkey = key.OpenSubKey(keyName); string displayName = subkey

WIx - “Registry key not found” when trying to see if a value of SQL SMO exists

 ̄綄美尐妖づ 提交于 2020-07-09 05:57:52
问题 It's been a while since I've done any WiX, but just found out that a bit of an existing bootstrapper exe I wrote ages ago, isn't actually doing what I thought it was - doh !! I've seen other people with similar issues, but I still can't figure out why it's not working. I'm basically trying to determine if a particular version of SQL SMO is installed and am looking in the registry at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SharedManagementObjects

How can i solve Windows Installer Error: 2908?

两盒软妹~` 提交于 2020-06-29 04:02:36
问题 Hello I am having problems with my windows installer recently. I tried to download three applications: Microsoft Flight Sim. X, Prepar3D and Epic Games. Since the simulators I've listed are outdated programs i found it normal but when I tried to install Epic Games Launcher I realized that my Windows Installer is broken. I've been trying to fix it for days now. I've tried a lot of things that I cant even list them here. I believe the problem occurs while Installer tries to "register the keys

python: how to delete registry key (and subkeys) from HKLM (getting error 5)

别说谁变了你拦得住时间么 提交于 2020-06-27 16:15:32
问题 I'm trying to delete certain registry keys, via python script. i have no problems reading and deleting keys from the "HKEY_CURRENT_USER", but trying to do the same from the "HKEY_LOCAL_MACHINE", gives me the dreaded WindowsError: [Error 5] Access is denied . i'm running the script via the IDLE IDE, with admin privileges. here's the code: from _winreg import * ConnectRegistry(None,HKEY_LOCAL_MACHINE) OpenKey(HKEY_LOCAL_MACHINE,r'software\wow6432node\App',0,KEY_ALL_ACCESS) DeleteKey(OpenKey

Installing private package from Github Package registry using Yarn fails with not authorized

谁都会走 提交于 2020-06-25 03:24:47
问题 This question is related to these. But none of the solutions worked for me. Yarn can't find private Github npm registry Installing private package from Github Package registry fails with not found/not authorized I can install a package without issues with npm install @scope/package however I cannot do the same with yarn: yarn add @scope/package yarn throws the following error: An unexpected error occurred: "https://npm.pkg.github.com/download/@scope/package/1.2.8

how to scan a windows registry's all user profiles and fetch the value of ProxyEnable and proxy server using REG query

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-17 14:54:16
问题 Please tell me how to search each profile of HKEY_USERS and find the value of ProxyEnable and proxy server. I have a Nodejs binary(.exe) which basically runs in individual machines. I use Procrun(commons.apache.org/proper/commons-daemon/procrun.html) to run my Nodejs application as a service. and the Nodejs application tries to find the proxy config through child process which runs this reg query. Due to some other limitation of application its always fetching the details from the default

Getting “Error registering COM+ Application”

非 Y 不嫁゛ 提交于 2020-06-16 17:33:27
问题 I have a COM+ application that i am trying to install manually by double clicking on the .msi file but it gives error and fails to install the COM+ application. It doesn't create any entry in Component Services as well due to this error. I tried searching in registry as well but could find any entry with the COM+ application name. How do i resolve this issue? I need to install this COM+ application on my server. I have added screenshot of the error for reference. 回答1: Admin Rights : First of

Getting “Error registering COM+ Application”

谁说我不能喝 提交于 2020-06-16 17:32:13
问题 I have a COM+ application that i am trying to install manually by double clicking on the .msi file but it gives error and fails to install the COM+ application. It doesn't create any entry in Component Services as well due to this error. I tried searching in registry as well but could find any entry with the COM+ application name. How do i resolve this issue? I need to install this COM+ application on my server. I have added screenshot of the error for reference. 回答1: Admin Rights : First of

What does it mean to append “\<num>” to file paths under HKCR\TypeLib\<TypeLib>

限于喜欢 提交于 2020-05-23 23:49:51
问题 I've seen several (not all) registry values like the followings, when trying to parse out the file path under the TypeLib registry key: HKEY_CLASS_ROOT\TypeLib\\{EE9CFA8C-F997-4221-BE2F-85A5F603218F}\1.0\0\win64(Defalt): C:\Program Files (x86)\Microsoft Office\root\VFS\ProgramFilesX64\Microsoft Office\Office16\OCHelper.dll\1 HKEY_CLASS_ROOT\TypeLib\\{F9E34568-0298-46D3-B9C4-19AFB415CBA8}\1.0\0\win32(Default): C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\mswebprj.dll\5

Registry class. If key exist

社会主义新天地 提交于 2020-05-17 03:01:01
问题 Im using the Microsoft.Win32.Registry class. Im trying to make a if RegKey exist statement but don't know how I want something like this: RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\test"); if(key.keyExist("yourKey")) Console.WriteLine("yourKey exist!"); 回答1: As far as I know, the SubKey is stored in a path in the system. So you can do something like this to check out if the SubKey exists: using (RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\test")) { if (key