Skip to main content
The 2024 Developer Survey results are live! See the results

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.

pascalscript
1 vote
0 answers
53 views

Is it possible to somehow create a short alias to variable in Inno Setup Pascal Script

In my function I want to create a shorthand for variable to shorten the code but if I understand it correctly, Pascal Script used in Inno Setup doesn't support neither pointers nor references, am I ...
qloq's user avatar
  • 1,179
1 vote
1 answer
68 views

Download files depending on the contents of another downloaded one with Inno Setup and IDP (Multiple download processes with different timing)

I am trying to create web installer, downloading a file, read out its contents(file names), filling them as components then "continue" downloading only the components (the files), that were ...
stevehoms's user avatar
0 votes
1 answer
38 views

How to separate last child folder from path in Pascal Script?

I need to separate last child folder from Windows path. For example from C:\java_11 separate java_11. I have this function: function parseJavaHome(JavaHome:String) : String; var lastPosOfSlash: ...
Petr Kostroun's user avatar
1 vote
2 answers
91 views

Using VS C++ functions in Inno Setup

I'm trying to replace some functions made in LazarusLib with functions written in C++ for Inno Setup installer. So I created a Dynamic-Link Library (DLL) project in Visual studio and added the ...
Miha Bogataj's user avatar
0 votes
0 answers
46 views

Inno Setup Closing square bracket (']') expected [duplicate]

I wonder why Inno Setup is complaining about: if not ((ProductKeyPage.Values[1][i] in ['a'..'f']) or (ProductKeyPage.Values[1][i] in ['A'..'F']) or (ProductKeyPage.Values[1][i] in ['0'..'9'])) then ...
user3161924's user avatar
  • 2,049
1 vote
1 answer
57 views

Decompiled Inno Setup setup.exe – There are checks but no [Code] section?

I extracted install_script.iss using InnoUnpacker. There are checks: IsNeedRunAdminPrivilegesPackages, not IsClientInstallForbidden. I assume those are custom functions? I don't see [Code] section in ...
user2978216's user avatar
3 votes
1 answer
66 views

Trying to use file's hash as password in Inno Setup

I'm trying to make it so you can only proceed with the installation in Inno Setup, if you provide a file whose contents' hash has an expected value. The file is about 40 kilobytes. Here's the code I ...
Amy's user avatar
  • 33
0 votes
0 answers
21 views

Why is FileExists failing? And if I use Exec anyway then that fails? [duplicate]

I am stumped with this! #ifdef UNICODE #define AW "W" #else #define AW "A" #endif function GetFileAttributes(lpFileName: string): DWORD; external 'GetFileAttributes{#AW}@...
Andrew Truckle's user avatar
0 votes
0 answers
44 views

How to resolve issue with UpdateReadyMemo output using Inno Setup with Inno Dependency Installer Setup? [duplicate]

How exactly do these <event> functions work in the [Code] section of Inno Setup? I see similar question here with no accepted answer: Inno Setup having multiple UpdateReadyMemo events I ask ...
Andrew Truckle's user avatar
1 vote
1 answer
81 views

Using Inno Setup LoadStringFromFile always gives "Type mismatch"

I am trying to read a simple text file, but whenever I use the function LoadStringFromFile it always gives me Type mismatch. The text file that I am trying to read from contains a file path to a ...
Wai Wong's user avatar
  • 2,803
1 vote
1 answer
129 views

Copy files to several destinations read from registry using Inno Setup

I'm using these lines in [Files] section to copy files to directories of installed versions of a software, while each version has several addresses: (For example R21.0 is a version of the software) [...
bahman jafari's user avatar
1 vote
1 answer
49 views

Service with DependsOn is not being set correctly in Inno Setup via CreateService function

I'm creating an installer for my app with Inno Setup and as part of the install it needs to install several services. For that I'm using the following code: Dependency := ''; if Depends then begin ...
TheLethalCoder's user avatar
1 vote
1 answer
65 views

How can I create a txt file with Inno Setup?

How can I create a txt file in a folder with Inno Setup? [Run] SaveStringToFile('c:\filename.txt', #13#10 + 'the string' + #13#10, True); The code doesn't work, what's the problem here?
Ori Mesilaty's user avatar
1 vote
1 answer
204 views

Where is the problem with importing function from C++ DLL

I'm trying to learn how does function import from DLL work. I created an Inno Setup script with wizard: [Files] Source: "TestDll\x64\Release\TestDll.dll"; Flags: dontcopy; [Code] procedure ...
qloq's user avatar
  • 1,179
1 vote
0 answers
45 views

Get value preinstall to define the instalation path [duplicate]

I want to create an installer where the user selects the program version, and upon choosing the version, the installation path changes. For example: if they choose Revit 2023, the path is: C:\...
M0nchit0's user avatar

15 30 50 per page
1
2 3 4 5
67