Questions tagged [pascalscript]

Free scripting engine that allows you to use most of the Object Pascal language within Delphi or Free Pascal projects at runtime.

Pascal script is a script engine developed by RemObjects. It uses the object pascal language and can be implemented in Delphi or FPC project.

One prominent use of Pascal Script is the Open Source project.

971 questions
6
votes
1 answer

Inno-setup: Custom Wizard page based on existing page type

I decided to create custom wizard page in my inno-setup-based installer. But i do not want to create it from scratch. I want to take TInputDirWizardPage and modify it, e.g. add a combo-box. Is it possible? How to do it?
Aleksandr Kravets
  • 5,750
  • 7
  • 53
  • 72
6
votes
1 answer

Change font and font size on wizard page information text box in Inno Setup

I need to change the font and probably the font size on the wizard page "Information" for the text box where the text is displayed specified via the parameter InfoBeforeFile in section [Languages]. The reason for changing the font is that the file…
Hannes Schmid
  • 379
  • 3
  • 14
6
votes
0 answers

Opening WinForms window in Inno Setup not working on older Windows versions

I have an Inno Setup script where the desired form was too complicated to build entirely in Inno Setup itself, so I created a helper class library in .NET which contains a WinForms window with the things I need. I open this WinForms window in Inno…
brz
  • 1,846
  • 21
  • 21
6
votes
1 answer

Run a [Code] or PowerShell script in Inno Setup compiler

Is there a way to run a [Code] procedure or PowerShell script in the Inno Setup compiler before the installation executable is generated?
user2970916
  • 1,146
  • 3
  • 15
  • 37
6
votes
3 answers

Compare version strings in Inno Setup

I'm reading the value of an INF file, now I need to compare it with the installer version, but when I compile I get an error: Unknown identifier: CompareVersion What is wrong? [Code] function GetKeyValue(const AKeyName, AFileName, ADefault:…
6
votes
1 answer

Inno Setup "return" like command/construct in Code

Is there any command/construct like return in C that exits immediately from a function of Inno Setup script code keeping the result code? I would like something If k = false then Begin Result:=false; Exit; End;
Maverick
  • 1,105
  • 12
  • 41
6
votes
1 answer

How to execute 7zip without blocking the Inno Setup UI?

My Inno Setup GUI is frozen during unzip operations. I've a procedure DoUnzip(source: String; targetdir: String) with the core unzipTool := ExpandConstant('{tmp}\7za.exe'); Exec(unzipTool, ' x "' + source + '" -o"' + targetdir + '" -y', '',…
Jens A. Koch
  • 39,862
  • 13
  • 113
  • 141
6
votes
1 answer

Uninstallation order

Can I find somewhere actual order, in which events and sections are executed during uninstall? For example, will UninstallDelete occur earlier than usPostUninstall uninstall step? Inno Setup has "Installation order" article in manual, but it looks…
lentinant
  • 792
  • 1
  • 10
  • 36
6
votes
1 answer

Can you define a function prototype in Inno Setup

I would like to be able to structure my code for my Inno Setup project but I am forced to move code around because you can't call a function unless it is defined first. Is there a way to declare a prototype at the top so that I don't get the…
AnthonyVO
  • 3,821
  • 1
  • 36
  • 41
6
votes
2 answers

Inno Setup MsgBox with three buttons and three outcomes

I am trying to create a MsgBox with three buttons and three outcomes, but am unable to see how I can create the third outcome? I currently have the following code for a two button MsgBox, which works perfectly: if ((strExistingInstallPath <> '') and…
Robert Wigley
  • 1,917
  • 22
  • 42
6
votes
3 answers

Required a number in text box in Inno Setup

I found a code here that I needed. To only allow write numbers in a text box. But I still wanted more, which does not offer up the "Next" button without write the number in this text box. Can help me? procedure NumbersOnly(Sender: TObject; var Key:…
user11955
  • 63
  • 1
  • 4
6
votes
1 answer

How do I check if registry key exists and exit setup

I try to making setup file to patch previous program. The setup must be able to check if previous program is installed or not. This is my unusable code [Code] function GetHKLM() : Integer; begin if IsWin64 then begin Result := HKLM64; end …
6
votes
2 answers

How to check if port is usable in Inno Setup?

I need to check some port is usable or not? How can do that in Inno Setup? Is there any way to use socket in to Inno Setup? Is there any library for this? If there how can import it and use it? Thank you for your answers.
user3222643
  • 121
  • 1
  • 8
6
votes
2 answers

Is it possible to test Pascal Script functions without compiling the installer?

I am wondering if it is somehow possible to test the functions in my [Code] section without compiling the whole installer each time and run it. This would make the development and testing of the functions much easier. Many thanks! Sören
soerenD
  • 138
  • 6
6
votes
1 answer

Inno Setup: List all file names in an directory

Am trying to list all files with names in an directory, but unable to do. Is there any way to list all files with names in an directory? Thanks in advance.
user1752602
  • 423
  • 6
  • 19