pascalscript

Inno Setup: Access to custom control from OnClick event of another control

故事扮演 提交于 2020-07-19 18:11:07
问题 I have next code for Inno Setup: procedure CheckBoxClick(Sender: TObject); begin { How to make BrowseButton visible from here? } end; procedure CreateTheWizardPage; var Page: TWizardPage; BrowseButton, FormButton: TNewButton; CheckBox: TNewCheckBox; Memo: TNewMemo; begin Page := PageFromID(wpReady); BrowseButton := TNewButton.Create(Page); CheckBox := TNewCheckBox.Create(Page); CheckBox.OnClick := @CheckBoxClick; end; I'm wondering how can I access custom controllers on the wizard page from

Adjust Inno Setup MainPanel to banner image size

↘锁芯ラ 提交于 2020-07-19 05:49:14
问题 The image I am not allowed to resize the image I am using for the MainPanel . This is causing issues, as it is covering an input query page I have created. How do I make sure the input query page with "grow" with the size dimensions set by the MainPanel image? procedure InitializeWizard; begin { Extract the banner so we can use it with the input page. } BannerImage := TBitmapImage.Create(WizardForm); BannerImage.Bitmap.LoadFromFile('C:\temp\tempbanner.bmp'); { Create the Bitmap Banner img to

Adjust Inno Setup MainPanel to banner image size

牧云@^-^@ 提交于 2020-07-19 05:47:11
问题 The image I am not allowed to resize the image I am using for the MainPanel . This is causing issues, as it is covering an input query page I have created. How do I make sure the input query page with "grow" with the size dimensions set by the MainPanel image? procedure InitializeWizard; begin { Extract the banner so we can use it with the input page. } BannerImage := TBitmapImage.Create(WizardForm); BannerImage.Bitmap.LoadFromFile('C:\temp\tempbanner.bmp'); { Create the Bitmap Banner img to

Adjust Inno Setup MainPanel to banner image size

我怕爱的太早我们不能终老 提交于 2020-07-19 05:47:05
问题 The image I am not allowed to resize the image I am using for the MainPanel . This is causing issues, as it is covering an input query page I have created. How do I make sure the input query page with "grow" with the size dimensions set by the MainPanel image? procedure InitializeWizard; begin { Extract the banner so we can use it with the input page. } BannerImage := TBitmapImage.Create(WizardForm); BannerImage.Bitmap.LoadFromFile('C:\temp\tempbanner.bmp'); { Create the Bitmap Banner img to

how to modify the exe.config from Innosetup script

戏子无情 提交于 2020-07-05 08:53:14
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

how to modify the exe.config from Innosetup script

最后都变了- 提交于 2020-07-05 08:52:07
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

how to modify the exe.config from Innosetup script

ⅰ亾dé卋堺 提交于 2020-07-05 08:52:07
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

Defining structure with wide character pointer field in Inno Setup Unicode

六月ゝ 毕业季﹏ 提交于 2020-06-29 13:20:41
问题 Some external libraries, notably Windows API, use structure types with some fields being a pointer to a character array. Inno Setup Unicode does not have PChar ( PWideChar ) type. How do I define a structure, that uses fields of wide character array pointer type? For example how do I define SHFILEOPSTRUCT structure? type TSHFileOpStruct = record hwnd: HWND; wFunc: UINT; pFrom: { what type? } pTo: { what type? } fFlags: Word; fAnyOperationsAborted: BOOL; hNameMappings: HWND; lpszProgressTitle:

Defining structure with wide character pointer field in Inno Setup Unicode

雨燕双飞 提交于 2020-06-29 13:15:29
问题 Some external libraries, notably Windows API, use structure types with some fields being a pointer to a character array. Inno Setup Unicode does not have PChar ( PWideChar ) type. How do I define a structure, that uses fields of wide character array pointer type? For example how do I define SHFILEOPSTRUCT structure? type TSHFileOpStruct = record hwnd: HWND; wFunc: UINT; pFrom: { what type? } pTo: { what type? } fFlags: Word; fAnyOperationsAborted: BOOL; hNameMappings: HWND; lpszProgressTitle:

Inno Setup, install only on a non existent directory

大兔子大兔子 提交于 2020-06-27 03:47:29
问题 I would like to not permit the installation on an existent directory or at least a non-empty one. Right now I am using this workaround just to check if the program was installed in the directory chosen by the user but this doesn't work if it is a directory where the program was not installed or a non empty one. function NextButtonClick(PageId: Integer): Boolean; begin Result := True; if (PageId = wpSelectDir) and FileExists(ExpandConstant('{app}\some_app_file')) then begin MsgBox('Warning