inno-setup

Avoid restart prompt in Inno Setup

 ̄綄美尐妖づ 提交于 2021-02-08 10:20:17
问题 I am using restartreplace flag to replace the locked file, so it will prompt a message at the end of the installation to restart the machine. But I don't want to display it, and it should be set to restart later by default. Is there any way? 回答1: You can hide Yes/No restart radio buttons. And update the screen text accordingly. procedure CurPageChanged(CurPageID: Integer); var S: string; begin if CurPageID = wpFinished then begin WizardForm.YesRadio.Visible := False; WizardForm.NoRadio

Avoid restart prompt in Inno Setup

怎甘沉沦 提交于 2021-02-08 10:19:00
问题 I am using restartreplace flag to replace the locked file, so it will prompt a message at the end of the installation to restart the machine. But I don't want to display it, and it should be set to restart later by default. Is there any way? 回答1: You can hide Yes/No restart radio buttons. And update the screen text accordingly. procedure CurPageChanged(CurPageID: Integer); var S: string; begin if CurPageID = wpFinished then begin WizardForm.YesRadio.Visible := False; WizardForm.NoRadio

Inno Setup - Multiple software versions in one installation

て烟熏妆下的殇ゞ 提交于 2021-02-08 09:51:27
问题 I need to make a setup with multiple versions of software and i want to make it have the option for portable / install. I have a customized components page. It should show after info page and then the directory selection page should show once the options are selected. I THINK I have the [Files] and [Tasks] and [Components] sections figured out. It's mainly the code section I am struggling with. For example if the user selects to install the Pro version by using the radio button, once Next is

Inno Setup window preview in taskbar

妖精的绣舞 提交于 2021-02-08 09:48:13
问题 All of the programs and opened files have a preview when you hover the mouse on their icons inside the taskbar. But for Inno Setup made installers it seems there is no preview. Any fix or trick to solve this issue? Though some game installers with custom design (which use Inno Setup) have a preview in the taskbar. For example: http://fs2.filegir.com/cuttlas/setup.exe 回答1: I believe it's because the taskbar button is linked to an invisible internal window of Inno Setup and not to the visible

Building memo text for Inno Download Plugin

Deadly 提交于 2021-02-08 09:05:25
问题 I have reviewed the help documentation for IDP and I cannot find any functions for building the memo text of the files to download. Previously I was using DwinsHs and it has been giving me problems. But I was able to use: function DwinsHs_MemoDownloadInfo(Space, NewLine: String): String; var i: Integer; begin Result := ''; for i := 0 to GetArrayLength(DwinsHs_DownloadsList) - 1 do begin if DwinsHs_DownloadsList[i].Required then begin Result := Result + Space + ExtractFileName(DwinsHs

How can I create a symbolic link with Inno Setup?

风流意气都作罢 提交于 2021-02-08 08:06:02
问题 Using Inno Setup, is there any way to create a symbolic link from one directory in my {app} folder to another? For example: {app}\MySymbolicLink => {app}\MyLinkedFolder 回答1: The easiest is to invoke the mklink: [Run] Filename: "{cmd}"; \ Parameters: "/C mklink /D ""{app}\MySymbolicLink"" ""{app}\MyLinkedFolder""" You can also call CreateSymbolicLink from [Code] section. Similarly to how CreateHardLink is called in Create a hardlink with Inno Setup. 来源: https://stackoverflow.com/questions

DwinsHs for Inno Setup: How to add an apikey HTTP header of a request?

試著忘記壹切 提交于 2021-02-08 06:52:24
问题 I'm using a third party tool by the name of DwinsHs for Inno Setup. This third party tool provides me the capability for downloading files as part of the installation. I want to send an HTTPS request to remote server and I would like to pass an apikey to the header of the request but it returns error 401. This is the code: [ISPP] #define fileURL "https://myserver.xom?apikey=XXXX-XXXX-XXXX-XXXX" [Code] Source: "<path_to_my_file>"; \ DestDir: "{app}"; \ Flags: external deleteafterinstall; \

DwinsHs for Inno Setup: How to add an apikey HTTP header of a request?

こ雲淡風輕ζ 提交于 2021-02-08 06:51:15
问题 I'm using a third party tool by the name of DwinsHs for Inno Setup. This third party tool provides me the capability for downloading files as part of the installation. I want to send an HTTPS request to remote server and I would like to pass an apikey to the header of the request but it returns error 401. This is the code: [ISPP] #define fileURL "https://myserver.xom?apikey=XXXX-XXXX-XXXX-XXXX" [Code] Source: "<path_to_my_file>"; \ DestDir: "{app}"; \ Flags: external deleteafterinstall; \

DwinsHs for Inno Setup: How to add an apikey HTTP header of a request?

谁说我不能喝 提交于 2021-02-08 06:49:05
问题 I'm using a third party tool by the name of DwinsHs for Inno Setup. This third party tool provides me the capability for downloading files as part of the installation. I want to send an HTTPS request to remote server and I would like to pass an apikey to the header of the request but it returns error 401. This is the code: [ISPP] #define fileURL "https://myserver.xom?apikey=XXXX-XXXX-XXXX-XXXX" [Code] Source: "<path_to_my_file>"; \ DestDir: "{app}"; \ Flags: external deleteafterinstall; \

Automate obtaining the SHA256 for a file to download with Inno Setup 6.1?

风格不统一 提交于 2021-02-08 06:37:37
问题 The documentation for DownloadTemporaryFile says this about the RequiredSHA256OfFile parameter: If RequiredSHA256OfFile is set it will compare this to the SHA-256 of the downloaded file and raise an exception if the hashes don't match. An exception will be raised if there was an error. Otherwise, returns the number of bytes downloaded. Returns 0 if RequiredSHA256OfFile is set and the file was already downloaded. From the answer here I have determined that the correct commandline method to