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
0
votes
1 answer

How can I kill a process with a long name using tskill?

(Answering my own question for the future / others). I have a process I'd like to kill by name (in my case from an InnoSetup from Pascal script). My issue is that my process is called MyVeryLongProcessName.exe and I don't have access to taskkill…
Duncan
  • 858
  • 1
  • 11
  • 29
0
votes
1 answer

Correctly show component sizes with shared files

I have an inno setup project which includes 5 different sub-programs, installable as components. Many of the dlls that end up in the final program folder are shared between some of these, but not all. I've made a tool to sort out the common dlls to…
Nyerguds
  • 5,360
  • 1
  • 31
  • 63
0
votes
1 answer

InnoSetup pascal inheriting TControl causes identifier expected

I am trying to create my own InnoSetup Control (combined dropdown and file input box with browse button). I need dynamic number of these controls. My idea was to inherit TControl and build the needed control like that. type TConfigControl =…
Juho Rutila
  • 2,316
  • 1
  • 25
  • 40
0
votes
2 answers

InnoSetup, How to change the color of RichEditorViewer

I need to change the font color property of the RichEditorViewer of the default pages, but I can't find the control names or property name, I need help with this... The RichEditorViewer of the InfoBeforePage (I need to change the font color): This…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
3 answers

Copy same file to different directories

Is there a program (or a code for ReNamer or .cmd) that will copy the file readme.txt to every directory in the same directory as readme.txt is? ReNamer: http://www.den4b.com/?x=products&product=renamer (there is a PascalScript rule, which let users…
WHOMEZz
  • 79
  • 7
-1
votes
1 answer

Inno Setup: Cannot call "WIZARDISCOMPONENTSELECTED" function during Uninstall

What would cause the message: Cannot call "WIZARDISCOMPONENTSELECTED" function during Uninstall. It has to be here: procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then begin if…
df234987
  • 513
  • 2
  • 13
-1
votes
1 answer

FastReports pascalscript if

I have a problem with an IF statement in FastReport. I want to check if ProgramName = "", then change Memo1.Text = "ONLY FOR CALCULATION", if not, then "OTHER" procedure rara(Sender: TfrxComponent); var ProgramName : sring; begin ProgramName :=…
-1
votes
1 answer

open predefined url after setup finished

I used Inno Setup to build myapp (webapp) final setup, also used custom Pascal code to set prerequisites and create config file which has base_URL. I defined the servername as 'Domain' and port as 'HostPort', and there is a dialog in setup progress…
M.A_55
  • 135
  • 17
-1
votes
1 answer

Installation of some files in Inno Setup

Is there a way to somehow install some files that are not .exe,.jar or .msi during installation made in Inno Setup? Precisely, I need to install unfinished project(there is no .jar or .exe) during installation process through Inno Setup. I've used…
Petar
  • 273
  • 1
  • 4
  • 16
-1
votes
1 answer

Tomcat unable to remove the exploded files even when tomcat is in stopped state

I have a peculiar problem with deploying a spring boot web application with Tomcat . I deploy a spring boot webapplication into tomcat 8.5.8 . The deployment steps follows as below via a pascal script in windows system: 1) Tomcat is stopped 2) A…
Priya
  • 1,096
  • 4
  • 15
  • 32
-1
votes
1 answer

How to align the typing to the center in the UserInfoPage?

As the question says i want to start typing from the center intead of starting from the left. A short code value: with WizardForm.UserInfoNameEdit do begin Left := ScaleX(104); Top := ScaleY(182); Width := ScaleX(233); Height :=…
Joshua
  • 277
  • 1
  • 9
-1
votes
1 answer

Pascal Script, how to return var parameter from script into my Delphi code?

I need to modify function parameter variable (string) in my Pascal Script code and get it in the Delphi function, after the script finish it's work. My script code: function OnBroadcastMessage(iCID, iUIN: integer; var sUsersList: string; dtActualTo:…
-1
votes
2 answers

Check if all Strings in a String List are the Same in Inno Setup

I found the following link, but it is for C#: c# Check if all Strings in a String List are the Same. I wrote a working Code which can do the rest well but it only function correctly with Sorted String Lists. Regards, function…
GTAVLover
  • 1,407
  • 3
  • 22
  • 41
-1
votes
1 answer

Inno Setup: Create application valid for one year

I test my software with new code. const MY_EXPIRY_DATE_STR = '20131112'; //Date format: yyyymmdd function InitializeSetup(): Boolean; var ErrorCode: Integer; begin //If current date exceeds MY_EXPIRY_DATE_STR then return false and exit…
Mohamed Ahmed
  • 113
  • 11
-1
votes
1 answer

Invalid Floating point operation Pascal

I'm coding a program with Pascal in fastreport, The problem appear when I try to show the result of a division. this is my program: var relec_tp_for_pa, tp_for_pa, relec_tt_tp, total_tp, coef_relec : Real = 0; relec_vt : Integer = 0; procedure…
S. Bertit
  • 7
  • 5
1 2 3
64
65