pascalscript

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

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 :=

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

落爺英雄遲暮 提交于 2020-12-04 03:56:33
问题 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 :=

How can I use language files with custom messages with preprocessor constants?

混江龙づ霸主 提交于 2020-11-28 02:43:34
问题 I want to have all CustomMessages in language files (extension isl ). Also, some of the messages contain preprocessor constants, e.g. ALREADY_INSTALLED={#MyAppName} is already installed on this computer. The message should be displayed like this: "My-really-nice-App is already installed on this computer" But what I get is: "{#MyAppName} is already installed on this computer." The following works like a charm when I have the code, the message defined in a [CustomMessages] -topic and #define

How can I use language files with custom messages with preprocessor constants?

你。 提交于 2020-11-28 02:42:32
问题 I want to have all CustomMessages in language files (extension isl ). Also, some of the messages contain preprocessor constants, e.g. ALREADY_INSTALLED={#MyAppName} is already installed on this computer. The message should be displayed like this: "My-really-nice-App is already installed on this computer" But what I get is: "{#MyAppName} is already installed on this computer." The following works like a charm when I have the code, the message defined in a [CustomMessages] -topic and #define

How can I use language files with custom messages with preprocessor constants?

六眼飞鱼酱① 提交于 2020-11-28 02:42:00
问题 I want to have all CustomMessages in language files (extension isl ). Also, some of the messages contain preprocessor constants, e.g. ALREADY_INSTALLED={#MyAppName} is already installed on this computer. The message should be displayed like this: "My-really-nice-App is already installed on this computer" But what I get is: "{#MyAppName} is already installed on this computer." The following works like a charm when I have the code, the message defined in a [CustomMessages] -topic and #define

TInputDirWizardPage with Radio Buttons

梦想的初衷 提交于 2020-11-27 02:52:06
问题 I need a setup page with two radio buttons. Clicking the second button should enable an input to define a path (Like it's done in TInputDirWizardPage ). Is it possible to customize TInputDirWizardPage for my needs? Or do I need to build a CustomPage and define the controls by myself? If the second question will be answered with yes, how am I able to use the "directory input" (from the TInputDirWizardPage ), or is it also neccessary to build this on my own? 回答1: As you correctly guessed you