inno-setup

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

霸气de小男生 提交于 2020-07-19 18:13:01
问题 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

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

Inno setup - How to find string in text file so that the installer knows which program path should be installed?

限于喜欢 提交于 2020-07-19 09:10:26
问题 i need some help with my code. I want to program an installer that will install certain programs by selecting a user. Every user has defined assignments which program should be installed. For now, you have to use the components section to configurate the programs but my goal is to configurate it with an text file. Example for text file could be like: User1 User2 User3 User4 Program 1 x x x x Program 2 x x Program 3 x x Here is my code: #define MyAppVersion "1.0" #define MyAppExeName

Inno setup - How to find string in text file so that the installer knows which program path should be installed?

余生颓废 提交于 2020-07-19 09:09:09
问题 i need some help with my code. I want to program an installer that will install certain programs by selecting a user. Every user has defined assignments which program should be installed. For now, you have to use the components section to configurate the programs but my goal is to configurate it with an text file. Example for text file could be like: User1 User2 User3 User4 Program 1 x x x x Program 2 x x Program 3 x x Here is my code: #define MyAppVersion "1.0" #define MyAppExeName

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 secure/encrypt Inno Setup from decompiling

跟風遠走 提交于 2020-07-18 06:53:25
问题 I am using an Inno Setup Tool to pack/setup all my files (dll, exe, jpg, etc). But I found that there is a software called InnoExtractor which can really open my setup and read all the scripts and also extract all the files, since I need to hide/protect my files in setup I spent a lot of time/efforts to secure my setup.exe which was generated from Inno Setup, but I found some people saying add a password to Inno Setup Script, but this is also a wrong because the client knows that password and

How do I fix maven error The JAVA_HOME environment variable is not defined correctly?

徘徊边缘 提交于 2020-07-14 16:26:54
问题 Issue: I am getting the Maven error "The JAVA_HOME environment variable is not defined correctly" when I run through Inno setup batch execution. However, I am able to run successfully outside Inno Setup.(e.g Command line, Batch file, Vbs). I am clueless to identify the issue. Inno Setup Invoked Prompt: C:\>mvn -version The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE Regular

How to automatically update an application installed with Inno Setup

早过忘川 提交于 2020-07-07 12:33:48
问题 I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java. I often frequently release new versions and bug fixes. I would like to know if there is a mechanism to install updates automatically? 回答1: Inno Setup does not have any built-in mechanism for implementing automatic updates. You need to implement that yourself: Make your application check for new versions (against your application webpage?). E.g. on startup (on a background thread?) If