inno-setup

Inno Setup - Language selector with VCL Styles

随声附和 提交于 2020-12-07 08:20:12
问题 Is there any way to use language selector (Inno Setup) with VCL Styles? How? 回答1: The "Select Setup Language" dialog displays before the InitializeSetup event function is called. So you cannot load the skin for the dialog. As a workaround, you can implement your own "language" dialog, and display that from the InitializeSetup . This way the custom dialog will be skinned. Once a user selects a language, you restart the installer with the /LANG switch to load the selected language. Make sure

Inno Setup - Language selector with VCL Styles

六月ゝ 毕业季﹏ 提交于 2020-12-07 08:20:12
问题 Is there any way to use language selector (Inno Setup) with VCL Styles? How? 回答1: The "Select Setup Language" dialog displays before the InitializeSetup event function is called. So you cannot load the skin for the dialog. As a workaround, you can implement your own "language" dialog, and display that from the InitializeSetup . This way the custom dialog will be skinned. Once a user selects a language, you restart the installer with the /LANG switch to load the selected language. Make sure

Why is there an additional pair of curly braces on the Inno Setup Preprocessor:#emit page?

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-06 16:51:19
问题 I've been looking through Inno Setup documentation and found this: (https://jrsoftware.org/ispphelp/index.php?topic=expressions) Filename: "file2.ext"; DestDir: {{#MyDestDir}} Why do we need to use an additional pair of curly braces here? Mustn't we type it like this instead DestDir: "{#MyDestDir}" ? 来源: https://stackoverflow.com/questions/63036551/why-is-there-an-additional-pair-of-curly-braces-on-the-inno-setup-preprocessor

How to use wildcards in [CustomMessages] section of Inno Setup?

ぐ巨炮叔叔 提交于 2020-12-06 15:51:23
问题 Why can't I use a wildcard for this? [CustomMessages] ; ================================================================== ; Inno Download Plugin custom messages #include ".\idplang\Arabic.iss" #include ".\idplang\Bulgarian.iss" #include ".\idplang\ChineseSimplified.iss" #include ".\idplang\Croatian.iss" #include ".\idplang\Czech.iss" #include ".\idplang\Danish.iss" #include ".\idplang\Finnish.iss" #include ".\idplang\French.iss" #include ".\idplang\German.iss" #include ".\idplang\Hungarian

How can I pass command line parameters with a value to the Inno Setup Compiler, so I can use them in my code?

半腔热情 提交于 2020-12-06 15:42:19
问题 I have two possible build options. As I don't want my clients to start the installer with some parameters, I'd better pass them to the compiler and do all the job in my code. Let's say I have the variable UNION which may take two values: 0 and 1 . I have to analyze the value of that variable in my code and depending on the result to include some files or not. I know how to pass parameterrs to the installer itself, but how can I pass them to the compiler? Here's some code: procedure

How can I pass command line parameters with a value to the Inno Setup Compiler, so I can use them in my code?

自古美人都是妖i 提交于 2020-12-06 15:34:36
问题 I have two possible build options. As I don't want my clients to start the installer with some parameters, I'd better pass them to the compiler and do all the job in my code. Let's say I have the variable UNION which may take two values: 0 and 1 . I have to analyze the value of that variable in my code and depending on the result to include some files or not. I know how to pass parameterrs to the installer itself, but how can I pass them to the compiler? Here's some code: procedure

How can I pass command line parameters with a value to the Inno Setup Compiler, so I can use them in my code?

扶醉桌前 提交于 2020-12-06 15:33:54
问题 I have two possible build options. As I don't want my clients to start the installer with some parameters, I'd better pass them to the compiler and do all the job in my code. Let's say I have the variable UNION which may take two values: 0 and 1 . I have to analyze the value of that variable in my code and depending on the result to include some files or not. I know how to pass parameterrs to the installer itself, but how can I pass them to the compiler? Here's some code: procedure

Inno Setup: change the setup language while setup is running

落爺英雄遲暮 提交于 2020-12-06 07:03:23
问题 In my Setup I don't want use the standard Language Dialog form. Instead, I want to add a combobox to the Welcome page of my Inno Setup to do the same job made by the Language Dialog, so that it's able to : show all the languages included in the [Languages] section in the drop down list. So the user can select a language from this custom combobox. apply the chosen language to the whole setup. I know that this is not possible using the "normal way", because there are no functions available in

How to use DLLs with dependencies at install AND uninstall time in Inno Setup?

帅比萌擦擦* 提交于 2020-12-04 04:04:14
问题 I want to import two dlls in my .iss when uninstalled the app. I cannot find a way to do this. procedure Installed(); external 'Installed@files:StatisticInstallInfo.dll,adcore.dll cdecl setuponly '; procedure Uninstalled(); external 'Uninstalled@{app}\StatisticInstallInfo.dll cdecl uninstallonly'; I want import adcore.dll in procedure Uninstalled too. And it's failed as below shows; [Files] Source: {#MyDefaultPackDir}\adcore.dll; DestDir: "{app}" Source: {#MyDefaultPackDir}

Inno Setup - how to center an animated gif in resized wizard

假装没事ソ 提交于 2020-12-04 03:57:11
问题 I would like to center my animated gif right in the middle of all pages in my installer ( WizardSizePercent=150 ) without using values. Here is my code: var ParentForm: TSetupForm; begin TimerID := 0; SlideID := 0; ContentHeight := ParentForm.Top + ParentForm.Height; ExtractTemporaryFile('Image1.bmp'); ExtractTemporaryFile('Image2.bmp'); ExtractTemporaryFile('Image3.bmp'); ExtractTemporaryFile('Image4.bmp'); ExtractTemporaryFile('Image5.bmp'); ExtractTemporaryFile('Image6.bmp'); Panel :=