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

How to get Inno Setup to check if a file doesn't exist

When I compile the Inno Setup script below, it gives me an error (below). I borrowed the code from here so I'm not sure why it's not working properly. Line 136: Column 10: Invalid prototype for 'FileDoesNotExist' Line 136 is the function…
RichC
  • 7,829
  • 21
  • 85
  • 149
6
votes
1 answer

Change AppId using [Code] just before the installation in Inno Setup

In a setup I give the user the option to install either a 32 or 64 bit version using radio buttons. I then want to append either _32 or _64 to the AppId. I know I can change the AppId using scripted constants but the needed function is called while…
user1662035
  • 363
  • 4
  • 13
5
votes
1 answer

Setting up an icon for start menu folder group in InnoSetup

To my surprise I did not find the solution how to set up an icon for the start menu application group folder laying ahead. I am looking for the automatic solution in InnoSetup script. Thank you in advance.
algorytmus
  • 953
  • 2
  • 9
  • 28
5
votes
1 answer

Order of custom pages in Inno Setup

I am using Inno Setup. I want to have two custom pages like: var PasswordEdit: TPasswordEdit; UserEdit: TEdit; Page: TWizardPage; Page2: TWizardPage; ... Page := CreateCustomPage(wpWelcome, 'Page1', ''); Page2 := CreateCustomPage(wpWelcome,…
Vladimir Yanakiev
  • 1,240
  • 1
  • 16
  • 25
5
votes
2 answers

Inno Setup ParseVersion is not callable from [Code]

The macros ParseVersion and RemoveBackslash, for example, are both declared in ISPPBuiltins.iss. If I attempt to call both from within [Code]: function InitializeSetup: Boolean; var Major, Minor, Rev, Build: Integer; begin …
Dan
  • 1,215
  • 1
  • 10
  • 22
5
votes
1 answer

Declaring variable in Inno Setup Pascal Script

I have added the following code to my script: [Code] function IsSomeAppInstalled: Boolean; begin Result := FileExists(ExpandConstant('{pf32}\SomeApp\Some.dll')); end; function InitializeSetup(): Boolean; begin Boolean bIsInstalled :=…
tmighty
  • 10,734
  • 21
  • 104
  • 218
5
votes
1 answer

Disassembling strings from Inno Setup [Code]

When I compile a Inno Setup project, the [Code] section is also compiled (as Pascal executable or Pascal DLL)? In other words, if someone unpacks a Inno Setup project, can he see the [Code] section as original source code (damn! :) ) or as compiled…
ezio
  • 394
  • 3
  • 12
5
votes
1 answer

Regular expression for string in Inno Setup

In Inno Setup tool (Windows OS) InstallDir: string; I have a string InstallDir which contains C:\-=[]\.,'; I want to set a regular expression pattern as below ^([a-zA-Z]:)\\([0-9a-zA-Z_\\\s\.\-\(\)]*)$ Ex: It should be c:\< A to Z / a to z >…
5
votes
1 answer

Get www/web content using HTTP request in Inno Setup

Could some one tell me how can I get www content in Pascal Code in Inno Setup Script? Regards, Tomasz
Tomasz Filipek
  • 579
  • 1
  • 6
  • 17
5
votes
1 answer

Inno Setup SetupIconFile Resource Update Error: Icon File is invalid

I want to customize the setup icons for my installer(Inno Setup). I've setup this line of code for that purpose: SetupIconFile=C:\Users\Dale\Desktop\myapp.ico However, this error appears when I compile the installer: What does this mean and how do…
Dale Julian
  • 1,560
  • 18
  • 35
5
votes
1 answer

Writing 32/64-bit specific registry key at the end of the installation in Inno Setup

I want to create an installer with Inno Setup, my first time using this tool. What I’m trying to do is wrapping an existing installer of an existing software with a more detailed self-made installer (meaning a Setup.exe inside a Setup.exe). What…
Yauhun
  • 103
  • 2
  • 9
5
votes
2 answers

Inno Setup ExtractTemporaryFile causes wizard to freeze

I've made custom pages to manage specific redist tools install depending on the user choice. Those tools are linked to checkboxes checked by the user if he wants or not install those tools. Then come a page only there to show the user the…
BenDev
  • 349
  • 3
  • 18
5
votes
1 answer

Inno Setup Iterate over [Files] section in Pascal code

In an Inno Setup script, I need to copy a number of files to multiple user-defined locations. In order to do this, I'd like to iterate over the sources in the [Files] section, and FileCopy() them multiple times depending on the user-defined settings…
Martijn
  • 3,696
  • 2
  • 38
  • 64
5
votes
1 answer

How to create an image button in Inno Setup?

Is it possible to have an image button in Inno Wizard page instead of a plain Caption Text? What I would like to accomplish is to create an Off/On image button to mute/play a music while Inno setup is running. Thanks!
Drakul
  • 119
  • 5
5
votes
1 answer

Inno Setup custom dialog with per user or per machine installation

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…
drenda
  • 5,846
  • 11
  • 68
  • 141