pascalscript

Skip Preparing to Install Wizard page in Inno Setup

*爱你&永不变心* 提交于 2019-12-08 04:43:15
问题 Referring to the question Basic or Advanced installation mode choice to skip or use advanced options pages, I need to skip the Preparing to Install wizard page now. In my case this page is displayed because one or more programs are using files that need to be replaced by the installer; so the installer asks to the user if they want the setup to automatically close the applications and restart at the end of the setup. I need that this page is hide from the setup process in Basic mode, and if

Inno Setup - Check if multiple folders exist

杀马特。学长 韩版系。学妹 提交于 2019-12-08 04:26:35
问题 I have a custom uninstall page, which is invoked with this line: UninstallProgressForm.InnerNotebook.ActivePage := UninstallConfigsPage; Now, this just shows the page every time the uninstaller is run, but I need it to show only if certain folders exist (there's 6 of them). I could make an if statement with a bunch of or 's, but I'm wondering if there's a neater way to do it. 回答1: In general, there's no better way than calling DirExists for each folder: if DirExists('C:\path1') or DirExists(

Inno Setup - Check if multiple folders exist

◇◆丶佛笑我妖孽 提交于 2019-12-08 04:16:22
I have a custom uninstall page, which is invoked with this line: UninstallProgressForm.InnerNotebook.ActivePage := UninstallConfigsPage; Now, this just shows the page every time the uninstaller is run, but I need it to show only if certain folders exist (there's 6 of them). I could make an if statement with a bunch of or 's, but I'm wondering if there's a neater way to do it. In general, there's no better way than calling DirExists for each folder: if DirExists('C:\path1') or DirExists('C:\path2') or DirExists('C:\path3') then begin { ... } end; Though, when processing a set of files/folders,

Is PascalScript compatible with Delphi XE5 to create Android/iOS/Windows applications?

空扰寡人 提交于 2019-12-08 03:38:01
问题 I want to create an application that will draw simple forms based on JSON data. I need to have a script to put intelligence on that. Is Pascal Script from RemObjects a solution for that? Is is compatible to generate application with the same source code for Android, iOS and Windows? EDIT: Extending to better understand the need: I have a delphi program that draws a form (pretty much like a dfm file, as a descriptor) and fill it with data from a database. However there is a need for

Inno Setup invoke or replicate native Windows file copy operation

心不动则不痛 提交于 2019-12-08 03:31:12
问题 I know that the FileCopy function can be used to copy files in the [Code] section and this works fine for most purposes. However, is there any way to invoke the native Windows file copy operation, so that the standard Windows file copy dialog with progress, time remaining etc is shown (i.e. the same as doing Ctrl+C , followed by Ctrl+V ), which will also allow the user to cancel or pause the copy operation mid-process? Or, better still, is there a way to replicate similar functionality

Search subdirectories for Inno Setup DestDir

徘徊边缘 提交于 2019-12-08 03:17:05
问题 I am attempting to use Inno Setup to distribute a file used as a plug-in by another application. If it cannot find the plug-in destination, it should still install itself into the Program Files directory, providing the user with manual instructions. Hats off to Tlama for providing some code that was used in a similar problem: Inno Setup find subfolder. The follow script lays out the basic setup I am hoping to achieve, with comment where the script is incomplete. I'm just in over my head. :-)

Inno Setup: How to handle progress bar on [UninstallDelete] section?

南笙酒味 提交于 2019-12-08 02:49:46
问题 I use Inno Setup to make installer for my app. When user uninstall the app I want to delete my custom folder in Program Data folder, my folder is large (about 15 GB) so I use [UninstallDelete] section to delete this folder: [UninstallDelete] Type: filesandordirs; Name: "{commonappdata}\testFolder" But when the Inno Setup gets to the [UninstallDelete] section, the progress bar is show at 20% and stop in this position for a long time, then it "jumpy" to 100%. So how to make progress bar

Changing background color of task list box and other controls in Inno Setup

不问归期 提交于 2019-12-08 01:57:45
问题 In Inno Setup, I am trying to change the color of the setup to white. The problem is that when I try to do it by the Unicode version of installer, in the Select Additional Task Screen , I am getting grey section (screenshot is below). The important part is that when I move to next screen and comes back to that screen again, that grey section is gone. I am using following code, based on Inno Setup: How to change background color. procedure CurPageChanged(CurPageID: Integer); begin case

How to disable Next button if no component is selected in Inno Setup?

。_饼干妹妹 提交于 2019-12-08 01:39:12
问题 I have three components and if the user select any component it will do installations. Now I want to disable the Next button if the user don't select any components. I am trying if not IsComponentSelected('xxx') , but it is not working. Can anyone please help me?? 回答1: There's no easy way to update the Next button state on component selection change. A way easier is to display a message when the Next button is clicked: function NextButtonClick(CurPageID: Integer): Boolean; begin Result :=

In Inno Setup how to save user inputs to registry?

感情迁移 提交于 2019-12-08 00:49:37
问题 This is what I'm trying to figure out, in Inno Setup I want the installer to get User's name (manual input) Birthday (manual input) And both of those i want to use as variable to save it in registry 回答1: Just combine answers to these questions: Adding user completed form to Inno Setup Inno Setup [Registry] - Using function return value or Inno Setup: How to pass variable from [Code] to [Run] They show you how to use the CreateInputQueryPage function and scripted constants to get a code like