pascalscript

InnoSetup: Getting AppName in [Code] section

谁都会走 提交于 2019-11-30 01:49:17
I'm creating an installer using InnoSetup , and writing some custom handlers in a [Code] section. In one of the handlers, I would like to be able to retrieve the value of the AppName (or, potentially, the value of other parameters) defined in the [Setup] section. Is there a way for me to do this? I've looked though the documentation , but I haven't found anything that would allow me to do this. Our InnoSetup files are actually generated by our build process, which stitches together fragments that are common between all of our programs and that are program specific, so it would be inconvenient

Verify permissions to run Inno Setup installer online

。_饼干妹妹 提交于 2019-11-29 23:58:34
问题 I am looking for a code for Inno Setup, that I can use to make my setup verify my permission to install the program. This code must check a text file on a web server. If the file has the value "False", the setup has to cancel an installation and save the value in a registry file to cancel the it always when Internet connection is not available. If the file has the value "True", the setup will continue to install, and it will delete the registry file value if it exists. If there is no Internet

How to get Inno Setup to unzip a single file?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 23:20:18
问题 Is there a way to unzip just one file from a zip? I'm using code based on response for How to get Inno Setup to unzip a file it installed (all as part of the one installation process), works perfect for unzip but don't have an idea how can it unzip a single file: [Code]: const NO_PROGRESS_BOX = 4; RESPOND_YES_TO_ALL = 16; procedure UnZip(ZipPath, TargetPath: string); var Shell: Variant; ZipFile: Variant; TargetFolder: Variant; begin Shell := CreateOleObject('Shell.Application'); ZipFile :=

Image covering whole page in Inno Setup

烈酒焚心 提交于 2019-11-29 15:46:05
问题 Following on from this: Inno Setup Placing image/control on custom page. This is doing what I need: CustomPage := CreateCustomPage(wpLicense, 'Heading', 'Sub heading.'); ExtractTemporaryFile('image.bmp'); BtnImage := TBitmapImage.Create(WizardForm); with BtnImage do begin Parent := CustomPage.Surface; Bitmap.LoadFromFile(ExpandConstant('{tmp}')+'\image.bmp'); AutoSize := True; AutoSize := False; Height := ScaleX(Height); Width := ScaleY(Width); Stretch := True; Left := ScaleX(90); Top :=

Inno Setup WizardImageFile looks bad with font scaling on Windows 7

ⅰ亾dé卋堺 提交于 2019-11-29 15:43:17
问题 Bitmap for Inno Setup WizardImageFile (and WizardSmallImageFile ) looks terrible because when Windows 7 has the large system fonts enabled, the Wizard is bigger than usual, but the images are scaled terrible wrong. Is there a fix? There is no similar issue if I add own picture somewhere like this: BitmapImage1.AutoSize := True; BitmapImage1.Align := alClient; BitmapImage1.Left := 0; BitmapImage1.Top := 0; BitmapImage1.stretch := True; BitmapImage1.Parent := Splash; 回答1: These are bitmap

Custom Welcome and Finished page with stretched image in Inno Setup

风流意气都作罢 提交于 2019-11-29 15:16:22
问题 I have created an image that I want to appear over whole Welcome and Finished pages of the installer, with only the bottom buttons showing. The Welcome wizard page should be like: The Finished page like: I'm getting Please help! Thanks in advance😊 回答1: First, note that the Welcome page is disabled by default since Inno Setup 5.5.7. If you really want it, you have to enable it using DisableWelcomePage=no. To display images only on the pages, you need to do: Stretch WizardBitmapImage (Welcome)

Implementing event functions InitializeWizard while using ISSI (to add background image) in Inno Setup: Duplicate identifier 'INITIALIZEWIZARD'

喜夏-厌秋 提交于 2019-11-29 12:45:12
I'm trying to put a background image to Inno Setup installer using ISSI along with a song using the "BASS audio library", but I can only keep one of them active since I get this compiler error: Duplicate identifier 'INITIALIZEWIZARD' Would I have another way to get a full-screen background image so I can use the BASS audio library? Inno Setup code: ; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define ISSI_BackgroundImage "E:\Instalador\file.bmp" #define ISSI_BackgroundImage_BGColor "clWhite" #define ISSI

“colon (':') expected” compiler error on character range in case statement in Inno Setup Pascal script

余生长醉 提交于 2019-11-29 12:22:44
I'm getting a "colon (:) expected" syntax error on this code (Line 14; Column 10) and I'm at a loss. This code runs in Inno Setup compiler, it is Delphi-like, but I don't think it is full Delphi. The Inno Setup version is 5.5.9 (a), so Ansi version. procedure HexToBin(const Hex: string; Stream: TStream); var B: Byte; C: Char; Idx, Len: Integer; begin Len := Length(Hex); If Len = 0 then Exit; If (Len mod 2) <> 0 then RaiseException('bad hex length'); Idx := 1; repeat C := Hex[Idx]; case C of '0'..'9': B := Byte((Ord(C) - '0') shl 4); 'A'..'F': B := Byte(((Ord(C) - 'A') + 10) shl 4); 'a'..'f': B

Inno Setup custom dialog with per user or per machine installation

可紊 提交于 2019-11-29 10:21:18
问题 I'm using Inno Setup (http://www.jrsoftware.org/isinfo.php) to create native bundle for my JavaFX application. I'd like to create a custom step where ask the user if want a "per user" or "per machine" installation in order to permit both the unprivileged user, and the administrator to install the software. It's this possible with Inno Setup? And if yes can you provide a trace to follow? Take a look at this screenshot 回答1: Inno Setup 6 Inno Setup 6 has a built-in support for non-administrative

How to build a Treeview design (a task group with tasks nesting hierarchy) using Inno Setup?

假如想象 提交于 2019-11-29 09:00:18
I'm trying to build a Treeview hierarchy of checkable elements and labels that must be more or less like this: Standalone Controls (label, root) |__Check/Uncheck all controls of all groups (checkbox) | | | |__Controls group 1 (group description label) | | |__Check/Uncheck all these controls (checkbox) | | |__Control name 1 (task) | | |__Control name 2 (task) | | |__Control name 3 (task) | | | |__Controls group 2 (group description label) | | |__Check/Uncheck all these controls (checkbox) | | |__Control name 1 (task) | | |__Control name 2 (task) | | |__Control name 3 (task) ...and so on. Or