registry

Write custom string value into SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall with Inno Setup

给你一囗甜甜゛ 提交于 2021-02-19 20:59:11
问题 During installation, I'd like to write a custom string value into the automatically created registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp.2020_is1 I tried to do this in the [Registry] section of my iss script but it seems to be ignored. Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppName}.{#MyAppVersion}_is1"; ValueData: "some tag"; Flags: uninsdeletekey; ValueType: string; ValueName: "CustomTag" Is this generally discouraged or

Write custom string value into SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall with Inno Setup

早过忘川 提交于 2021-02-19 20:55:16
问题 During installation, I'd like to write a custom string value into the automatically created registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp.2020_is1 I tried to do this in the [Registry] section of my iss script but it seems to be ignored. Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppName}.{#MyAppVersion}_is1"; ValueData: "some tag"; Flags: uninsdeletekey; ValueType: string; ValueName: "CustomTag" Is this generally discouraged or

Why is it not recommended to use HKCR registry root key in Inno Setup?

依然范特西╮ 提交于 2021-02-19 08:06:29
问题 I have to write a value to the HKEY_CLASSES_ROOT key. In order to do that I would write: RegWriteStringValue(HKCR, '<Root>', '<SubKey>', '<Value>'); But when I looked in the documentation I saw this: Using HKCR is not recommended, use HKA with the Subkey parameter set to "Software\Classes" instead. I'd like to know what's the difference between the two? Also, I've noticed that in the examples in the documentation they use HKEY_AUTO instead of HKA . Are those the same? 回答1: It is probably

Why is it not recommended to use HKCR registry root key in Inno Setup?

☆樱花仙子☆ 提交于 2021-02-19 08:06:25
问题 I have to write a value to the HKEY_CLASSES_ROOT key. In order to do that I would write: RegWriteStringValue(HKCR, '<Root>', '<SubKey>', '<Value>'); But when I looked in the documentation I saw this: Using HKCR is not recommended, use HKA with the Subkey parameter set to "Software\Classes" instead. I'd like to know what's the difference between the two? Also, I've noticed that in the examples in the documentation they use HKEY_AUTO instead of HKA . Are those the same? 回答1: It is probably

Remote Regstry access denied for non-admin user

自古美人都是妖i 提交于 2021-02-18 19:20:29
问题 I am trying to open remote registry key with a non admin user who has been given access to registry key on remote machine. remoteKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, hostname); I am getting Requested registry access is not allowed. at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at RemoteRegistry.Program.Main(String[

Remote Regstry access denied for non-admin user

笑着哭i 提交于 2021-02-18 19:20:09
问题 I am trying to open remote registry key with a non admin user who has been given access to registry key on remote machine. remoteKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, hostname); I am getting Requested registry access is not allowed. at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at RemoteRegistry.Program.Main(String[

Powershell: delete all the registry keys containing a string

瘦欲@ 提交于 2021-02-16 18:08:53
问题 I would like to delete all the keys ( 1000+ ) containing Python35 from : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components For instance I would like to delete all the keys similar to that one: Keyname: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components\0027CAECCC428F356B8D845FF8331246 Name: 0F617A7B1C879BC47865E0155CDD6722 Data: C:\Users\Me\AppData\Local\Programs\Python\Python35\Lib\venv\__init__

Powershell: delete all the registry keys containing a string

狂风中的少年 提交于 2021-02-16 18:06:54
问题 I would like to delete all the keys ( 1000+ ) containing Python35 from : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components For instance I would like to delete all the keys similar to that one: Keyname: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components\0027CAECCC428F356B8D845FF8331246 Name: 0F617A7B1C879BC47865E0155CDD6722 Data: C:\Users\Me\AppData\Local\Programs\Python\Python35\Lib\venv\__init__

Powershell: delete all the registry keys containing a string

可紊 提交于 2021-02-16 18:06:20
问题 I would like to delete all the keys ( 1000+ ) containing Python35 from : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components For instance I would like to delete all the keys similar to that one: Keyname: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-2\Components\0027CAECCC428F356B8D845FF8331246 Name: 0F617A7B1C879BC47865E0155CDD6722 Data: C:\Users\Me\AppData\Local\Programs\Python\Python35\Lib\venv\__init__

C# dll method call fails to write and read to/from the registry when called from ASP.NET web page

此生再无相见时 提交于 2021-02-11 12:32:00
问题 I have a class within a dll that has the following methods for writing to the registry: public Boolean WriteDBConnectionInfoToRegistry(string txtDSN, string txtServer, string txtDatabase, string txtUser, string txtPassword, bool trusted) { SymmetricAlgorithm rijn = SymmetricAlgorithm.Create(); rijn.GenerateKey(); rijn.GenerateIV(); Boolean b1 = RegistryWrite("Software\\MyApp", "IV", Reverse(Convert.ToBase64String(rijn.IV))); Boolean b2 = RegistryWrite("Software\\MyApp", "Key", Reverse(Convert