registry

Registry aren't fully deleting when uninstalling

血红的双手。 提交于 2019-12-23 01:33:50
问题 Inno Setup isn't deleting the full registry key. Here is what I have done: [Registry] Root: HKLM; SubKey: SOFTWARE\EA Games\Need for Speed Most Wanted-2012; ValueType: string; ValueName: GDFBinary; ValueData: {app}\GDFBinary_en_US.dll; Flags: uninsdeletekey Root: HKLM; SubKey: SOFTWARE\EA Games\Need for Speed Most Wanted-2012; ValueType: string; ValueName: DisplayName; ValueData: Need for Speed Most Wanted-2012; Flags: uninsdeletekey Root: HKLM; SubKey: SOFTWARE\EA Games\Need for Speed Most

RegLoadKey is giving error code 5 (Access Denied)

↘锁芯ラ 提交于 2019-12-23 01:13:33
问题 Hi I'm trying to load a key from HKLM\\SYSTEM\\CurrentControlSet\\Services\\Fax but i'm getting error 5 (Access Denied). I'm not able to figure it out what is wrong with my code. Here is my code #include <windows.h> #include <tchar.h> #include <stdio.h> BOOL SetPrivilege( HANDLE hToken, // access token handle LPCTSTR lpszPrivilege, // name of privilege to enable/disable BOOL bEnablePrivilege // to enable or disable privilege ) { TOKEN_PRIVILEGES tp; LUID luid; if ( !LookupPrivilegeValue( NULL

windows xp client not working with clearcase 8 server

主宰稳场 提交于 2019-12-23 01:05:08
问题 As part of upgrade to clearcase 8 from clearcase 7.0, I have created a new registry server and copied the vob into the new server. Now, I have installed clearcase client 7.1.2 on windows 7 machine and it works fine. The same client on windows xp pointing to the new registry server with clearcase 8 is not working. It says Problem: An error occurred trying to access the ClearCase registry server xxx Recommendation: There may be networking problems. If access to other computers via TCP/IP is

windows xp client not working with clearcase 8 server

限于喜欢 提交于 2019-12-23 01:04:15
问题 As part of upgrade to clearcase 8 from clearcase 7.0, I have created a new registry server and copied the vob into the new server. Now, I have installed clearcase client 7.1.2 on windows 7 machine and it works fine. The same client on windows xp pointing to the new registry server with clearcase 8 is not working. It says Problem: An error occurred trying to access the ClearCase registry server xxx Recommendation: There may be networking problems. If access to other computers via TCP/IP is

Reading HKEY CURRENT USER from the registry in Python, specifying the user

妖精的绣舞 提交于 2019-12-23 00:49:38
问题 In my application I run subprocesses under several different user accounts. I need to be able to read some of the information written to the registry by these subprocesses. Each one is writing to HKEY_CURRENT_USER, and I know the user account name that they are running under. In Python, how can I read values from HKEY_CURRENT_USER for a specific user? I assume I need to somehow load the registry values under the user's name, and then read them from there, but how? edit: Just to make sure it's

Issue Registering x64 Assemblies for COM Interop

人走茶凉 提交于 2019-12-22 14:47:12
问题 I have developed a sample c# COM-Visible DLL. Built in x86 and registered via 32-bit Regasm, it executes well by COM Client. Built in x64 and registered via 64-bit Regasm, the COM Client call drops the following error : Retrieving the COM class factory for component with CLSID {A0F2F58F-7B98-3605-BEC9-84724FF1E824} failed due to the following error: 80040154. I checked and made sure that CLSID is present indeed in the registry under HKCR\CLSID. Below is an example of simulating a COM Access

Secure a registry key via ACL to remove all access to non administrators

本秂侑毒 提交于 2019-12-22 12:53:30
问题 I'm trying to lock down a registry key with some important information that must be accessible at the client machine, I do not wan't non-administrators to have access to this key. If you are an admin you'll already be able to do more damage than what I'm storing in the key. What I'm currently looking to do is this: //Allow access only to administrators and deny all rights to everyone else. System.Security.AccessControl.RegistrySecurity acl = new System.Security.AccessControl.RegistrySecurity(

Python Subprocess to delete reg key on Windows

懵懂的女人 提交于 2019-12-22 12:18:09
问题 My code doesn't work as expected : import subprocess key = 'reg delete HKEY_USERS\S-1-5-21-2637495828-1099793317-3825703309-1000\SOFTWARE\Classes\CLSID\{0E270DAA-1BE6-48F2-AC49-D955BE4EEF1D} /f' subprocess.call(key, shell=True) Running Windows 10 64b, tried with subprocess.Popen aswell. My first thought is I have to escape \ somehow, but I'm not sure if that's what I need, nor how to do it. I also tried to make it work with a list of args key = ['reg', 'delete', 'HKEY...']) , which gave the

Register a proxy/stub in HKEY_CURRENT_USER

醉酒当歌 提交于 2019-12-22 11:47:50
问题 The MIDL compiler generates code for a proxy/stub with registration routines that write to HKEY_LOCAL_MACHINE. Is there any way (preferably without hacking the MIDL-generated code and without bypassing all that generated code in favor of custom code) to register a MIDL-generated p/s in HKEY_CURRENT_USER? Also: Will this work if both the p/s and the COM server are registered per-user like this? I just found (after a very frustrating 48 hours) that a p/s registered machine-wide will not work

Uninstall auto-run registry entries for all users

≡放荡痞女 提交于 2019-12-22 10:57:59
问题 Consider this scenario: Inno Setup installs program named XYZ to Program Files, to be accessed by all users. A configuration option within program XYZ allows installation of a registry value to HKCU\Software\Microsoft\Windows\CurrentVersion\Run on a per-user basis, to allow users to configure application auto-start to their own preferences. When uninstalling XYZ, if any user other than the current user has auto-run registry keys set, they will be left over and cause errors next time they log