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
8
votes
2 answers

Round / Truncate floating point numbers to N decimal places in Inno Setup Pascal Script

This does not look like Inno Setup question, but is actually related to its useful Pascal Script. I wrote a code to do a floating point calculation. Height, DivisionOfHeightWidth, Width: Integer; Height := 1080; Width :=…
GTAVLover
  • 1,407
  • 3
  • 22
  • 41
8
votes
1 answer

Custom Welcome and Finished page with stretched image in Inno Setup

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
lone_wolf
  • 125
  • 2
  • 9
8
votes
1 answer

"Identifier Expected" or "Invalid Prototype" when implementing a scripted constant in Inno Setup

So given this function, I get the error "Identifier Expected" on the GetRoot := ROOTPage.Values[0]; line. I expect it is telling me that the ROOTPage is not defined? const DefaultRoot = 'C:\IAmGRoot'; Var ROOTPage :…
amalgamate
  • 2,200
  • 5
  • 22
  • 44
8
votes
1 answer

Copy folder, subfolders and files recursively in Inno Setup Code section

Is there any way to browse and recursively copy/move all files and subdirectories of a directory within the code section? (PrepareToInstall) I need to ignore a specific directory, but using xcopy it ignores all directories /default/, for example,…
Rafael LGC
  • 127
  • 1
  • 2
  • 6
8
votes
2 answers

Why we cannot declare local const variables in inno-setup [Code]?

Do you know why when declaring local const vars, the script cannot compile? Sorry, I know very little pascal and cannot figure out why this is not working! This example (see function CircleArea) shows that my syntax should be…
fubar
  • 338
  • 1
  • 6
  • 20
8
votes
2 answers

Loading pre-compiled script in RemObjects Pascal Script (Delphi)

I am trying to load a pre-complied RemObjects Pascal Script in Delphi at run-time. However when I try to load it Delphi excepts with 'Cannot Import VALUE_TEAMCODE.' Value_TeamCode is a function in my Delphi app that I have already registered with…
Peter Mayes
  • 133
  • 8
8
votes
1 answer

Reading and writing JSON in Inno Setup

How can I load and work with JSON config file during install time? I can read string from file and write it, but if I want to change some value in config file, I have to use VBScript.RegExp COM object (which is good, but painful and slow to…
phantasm
  • 572
  • 4
  • 16
7
votes
2 answers

How can I use GetVolumeInformation in Inno Setup?

I need to get the volume serial number for a drive letter during an installation created with Inno Setup. I know that DLL functions can be imported into Inno, but I'm fairly new to it and having some problems getting it to work. I know that the…
user1208402
  • 117
  • 2
  • 10
7
votes
1 answer

Run installation using Inno Setup silently without any Next button or Install button

I want my installation should be silent without any Next or Install buttons clicked by the user. I tried to disable all pages still, I am getting the "Ready to Install" page. I want avoid this install page.
Priyu
  • 93
  • 1
  • 8
7
votes
2 answers

Is it possible to allow a user to skip a TInputDirWizardPage in Inno Setup?

I have an installer using Inno Setup that allows the user to select a file location, at install time. The file is kind of like an answers file to help with installation. For this prompt, I'm using the TInputDirWizardPage. It works fine when the…
Mike
  • 1,246
  • 3
  • 20
  • 34
7
votes
2 answers

Launch custom code via tasks in Inno Setup

I want to execute some code if a user checks a corresponding checkbox during the install. From reading the help file, it looks like the only way to use the task is to associate it with an entry in the Files/Icons/etc. section. I'd really like to…
mwolfe02
  • 23,787
  • 9
  • 91
  • 161
7
votes
2 answers

Inno Setup AfterInstall function called for each file

I want to call a function after installing a folder, but the InstallEnv function is seems to be called several times, maybe for each file is the folder (to be confirmed). Is there a way to call it only once after it installed all of those files? I…
Amaranth
  • 2,433
  • 6
  • 36
  • 58
7
votes
3 answers

How to pass the interfaced object to the Pascal Script function call?

Delphi part: I have a class with the event and from that event I need to call a procedure passing the interfaced object to it. It works fine in Delphi but I have problems with declaring it in Pascal Script. To the background - the IGPGraphics…
TLama
  • 75,147
  • 17
  • 214
  • 392
7
votes
1 answer

Multiple images display (slideshow) on wpInstalling Page under ProgressGauge bar in Inno Setup

I have prepared simple script that displays image under ProgressGauge bar on wpInstalling Page. But... I need more complex functionality. What I need is multiple images show, each after X (e.g. 7) seconds (with loop when installation longer then X…
RobeN
  • 5,346
  • 1
  • 33
  • 50
6
votes
3 answers

how to modify the exe.config from Innosetup script

I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console.
this-Me
  • 2,139
  • 6
  • 43
  • 70
1 2
3
64 65