inno-setup

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

How can I show my own message and then exit setup if the current version of Windows is not supported?

回眸只為那壹抹淺笑 提交于 2021-02-19 18:23:06
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

How can I show my own message and then exit setup if the current version of Windows is not supported?

限于喜欢 提交于 2021-02-19 18:19:45
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

How can I show my own message and then exit setup if the current version of Windows is not supported?

孤者浪人 提交于 2021-02-19 18:18:51
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

Check an IP address against an online list in Inno Setup

与世无争的帅哥 提交于 2021-02-19 08:07:14
问题 I am getting the user IP address using the below code function GetIp: string; var WinHttpReq: Variant; begin try WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1'); WinHttpReq.Open('GET', 'http://ipinfo.io/ip', False); WinHttpReq.Send; Result := Trim(WinHttpReq.ResponseText); except Log(GetExceptionMessage); Result := '8.8.8.8'; end; end; After getting the users IP address I need to check if that IP address already exists in my online JSON list. Thanks 回答1: The simplest solution is

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