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

How to check if a variable is an integer?

I'm using Inno Setup and want to check with Pascal Script if a string variable is an Integer (0-9 only, no hex). I have made this funcion: function IsInt(s: string): boolean; var i, len: Integer; begin len := length(s); if len = 0 then …
TomCat500
  • 153
  • 3
  • 11
5
votes
2 answers

Inno Setup Pascal Script to search for running process

I am currently trying to do a validation at the uninstall moment. In a Pascal script function, in Inno Setup, I want to search for a specific processes, with a wild card if possible. Then, loop through all find results, get the Image Name and Image…
Amaranth
  • 2,433
  • 6
  • 36
  • 58
5
votes
1 answer

upgrade code equivalent in Inno setup

What is the equivalent for Visual studio installer upgrade code in Inno Setup? I found this article How do I uninstall related products in Inno Setup using an InstallShield Upgrade Code GUID to search for products using the upgrade code. Is AppId…
Aster Veigas
  • 866
  • 3
  • 13
  • 34
5
votes
2 answers

JSON parser in PascalScript

Is there a JSON parser written in standard, procedural Pascal? There are a couple of object-oriented implementations in Delphi, but I need to do the parsing in PascalScript, and unfortunately classes cannot be declared in PascalScript. In the…
kol
  • 27,881
  • 12
  • 83
  • 120
5
votes
1 answer

How to use Pascal Inno Setup ExpandConstant with a string variable?

For an installation program, I need to create folder links. For this, I create the target folders using the '[Dirs]' sections. No problem. Then, in '[Code]' section, using function 'CurStepChanged(ssPostInstall)', I read a temporary installed file…
zePit
  • 51
  • 1
  • 1
  • 3
4
votes
1 answer

Access file list via script in InnoSetup

Is there any way to access the list of files (entries in the [Files] section) from PascalScript when running the setup? We're trying to make the application runnable directly from the setup, rather than having to install it, and this would make it…
OregonGhost
  • 23,359
  • 7
  • 71
  • 108
4
votes
1 answer

How to verify if program is installed in system with Inno Setup Pascal Script?

I want to verify if user has Docker installed in their system. If it is installed proceed further otherwise display an error message. Previously I was looking at the registry group in Windows but it's not the correct way. I want to check if cmd…
4
votes
1 answer

How can I use multiple Check functions in the [Registry] section?

Sample: Root: "HKLM64"; Subkey: "Software\Community Talks\Public Talks\Preferences"; \ ValueType: dword; ValueName: "ReuseCong"; ValueData: "{code:ReuseCongregation}"; \ Flags: uninsdeletevalue; Check: IsNewInstall IsWin64 Root: "HKLM64";…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
4
votes
1 answer

Using Inno Setup scripting to insert lines into a text file?

Objective is to insert multiple lines (once) at beginning of text document. But I have been having problems with the approaches I found. I've attempted to adjust them but it incorporates side-effect issues. Two problems: Appends end of file instead…
Jenn
  • 111
  • 7
4
votes
1 answer

Conditional Registry entries with Inno Setup

I want some registry entries to be written if two conditions are met: the installer is running in silent mode and I have some command line parameters present. Is there a way to do this in the [Registry] section? I have something similar in the…
Héctor C.
  • 433
  • 4
  • 17
4
votes
1 answer

Skip files during installation depending on text file command line argument

My scenario is currently that I'd like the possibility for users to skip installation of certain files that a user might have specified via a command line argument at install time. The idea would be for the user to specify a text file and ideally…
Markus Heckmann
  • 307
  • 1
  • 6
4
votes
1 answer

Compare paths in Inno Setup

Is there a built-in way to compare two strings representing paths in Inno Setup Pascal? If not with one function, then perhaps via some normalisation of the path. Naively comparing strings is obviously not correct, even if we ignore case with…
Zeus
  • 1,052
  • 1
  • 9
  • 18
4
votes
1 answer

Displaying custom status message while extracting archive in Inno Setup

I have an installation file for my app and it contains the .exe file and a .zip file as well. What I want is: Recently I added a code in the [Code] section that is extracting files from zip, But actually, it happened after the installation is done,…
Uncle Bob
  • 155
  • 8
4
votes
1 answer

Hide URL from Inno Setup download page

I would like to hide the URL from which the files are being downloaded. I can't find this information. Any hints of doing this?
Kattabomane
  • 124
  • 11
4
votes
1 answer

Inno Setup animated GIFs using GDI+?

Sometimes when we use an installer we need to show an animated GIF so the user knows that the installer is working. It seems as Inno Setup does not provide a standard way to display animated GIFs. Would it be possible to use Windows built in GDI+…