inno-setup

Setting task value based on active file type associations when upgrading

一曲冷凌霜 提交于 2020-06-13 08:46:07
问题 I have the following tasks as part of my installer: [Tasks] Name: register32; Description: "Meeting Schedule Assistant (32 bit)"; \ GroupDescription: "{cm:FileAssociations}"; flags: unchecked exclusive; Name: register64; Description: "Meeting Schedule Assistant (64 bit)"; \ GroupDescription: "{cm:FileAssociations}"; Check: IsWin64; Flags: exclusive; By design, Inno Setup has UsePreviousTasks set to Yes . However, my software installs both bit editions and the user may subsequently override

Choosing install language programmatically in Inno Setup

 ̄綄美尐妖づ 提交于 2020-06-13 08:11:32
问题 I'm using Inno Setup as an installer for my program, but I want to be able to choose the default language for the installer itself. I know it chooses default based on system locale (based on a list of languages I've chosen to support), but I would want to select the language according to my rules. The rules is that for "Norwegian" and "English" OS, I want to show Norwegian, while all other gets defaulted to their own. After loads of Googling I have not found an answer to this, and it's very

Execute postinstall program with administrator privileges in Inno Setup

末鹿安然 提交于 2020-06-13 07:02:46
问题 I'm trying to run another installer at the end of the installation ( postinstall ). The installer needs administrator provileges. So PrivilegesRequired=admin was added and the error still was there. Error message below: Unable to execute file: C:\Users\User1\AppData\Local\Multi Webcam Video Recorder\webcam.exe CreateProcess failed; code 740. The requested operation requires elevation. #define MyAppName "Multi Webcam Video Recorder" #define MyAppExeName "webcam.exe" [Setup] AppName={#MyAppName

How to change background color of SelectDirBitmapImage and SelectGroupBitmapImage in Inno Setup

╄→尐↘猪︶ㄣ 提交于 2020-06-13 05:52:07
问题 How to change background color of SelectDirBitmapImage and SelectGroupBitmapImage in Inno Setup? 回答1: Hardly. Both those are icons with a transparent background from shell32.dll painted on the TBitmapImage using SelectDirPage.Color and SelectProgramGroupPage.Color long before any use code is triggered. It cannot be updated. You would have to repeat all the painting code in your Pascal Script. It's probably doable, but lot of work. The relevant code is in LoadSelectDirAndGroupImages function:

Inno Setup - How to create checkboxes at finished page?

*爱你&永不变心* 提交于 2020-06-11 12:39:31
问题 How to create checkboxes at finished page to install DirectX? (dxwebsetup.exe for example). I see this with some information: Is it possible to create checkbox tree view in Inno Setup? but i want to understand how to give it action to these checkboxes. 回答1: Add [Run] section entry with postinstall flag. To run an installer you also may need the runascurrentuser flag to retain elevated privileges. [Run] Filename: "{tmp}\dxwebsetup.exe"; Description: "Install DirectX"; \ Flags: postinstall

Replace or customize modal uninstallation windows in Inno Setup

故事扮演 提交于 2020-06-05 05:41:22
问题 Is it possible to replace next uninstalling modal windows with custom modal windows or pages in Inno Setup: 回答1: Both messages are shown always, except for silent (or very silent) uninstallations. What you can do: Change message texts: [Message] ConfirmUninstall=Are you sure you want to completely remove %1 and all of its components? UninstalledAll=%1 was successfully removed from your computer. UninstalledMost=%1 uninstall complete.%n%nSome elements could not be removed. These can be removed

Evaluate a collection of data from preprocessor on run time in Inno Setup Pascal Script

断了今生、忘了曾经 提交于 2020-05-28 06:42:29
问题 I am trying to get Inno Setup define value in Code section but not with {#VersionTool1} . I need to pass defined name dynamically, because there are a lot of them (I want to avoid large switch case). I tried SetupSetting but it's not in Setup section (it's before it). Is there any way to do this? #define VersionTool1 2019.01.1111 #define VersionTool2 2020.02.2111 ... [Code] procedure SetSelectedTool(ToolName: String); var CurrentTool: string; begin ... CurrentTool := 'Version' + ToolName;

Evaluate a collection of data from preprocessor on run time in Inno Setup Pascal Script

眉间皱痕 提交于 2020-05-28 06:41:53
问题 I am trying to get Inno Setup define value in Code section but not with {#VersionTool1} . I need to pass defined name dynamically, because there are a lot of them (I want to avoid large switch case). I tried SetupSetting but it's not in Setup section (it's before it). Is there any way to do this? #define VersionTool1 2019.01.1111 #define VersionTool2 2020.02.2111 ... [Code] procedure SetSelectedTool(ToolName: String); var CurrentTool: string; begin ... CurrentTool := 'Version' + ToolName;

Can Inno Setup Preprocessor be used to build a duplicated set of custom messages?

China☆狼群 提交于 2020-05-28 06:36:52
问题 My installer caters for 20 partial translations. Partial translations have the bulk of the GUI in English and just certain parts in the respective languages. To acheive this with the installer I physically duplicate the default English isl file and rename the language name property to each of the twenty languages. Then Iuse those files in the installer script to add these languages to the drop-down list for the user to choose from. What this means is that for my custom message I have to

Running script code (adding a registry key) instead of executable in Run entry in Inno Setup

China☆狼群 提交于 2020-05-28 04:39:33
问题 I want to add a registry key after the user accept the key addition. The key will tell Firefox where to find our plugin (which is stored in the app folder) The user will get a checkbox "install ff plug-in?" in the same form as where we ask "install chrome plugin" and "install ie plugin?" . [Code] function GetHKLM: Integer; begin if IsWin64 then Result := HKLM64 else Result := HKLM32; end; function CheckForMozilla: Boolean; begin Result := False; if RegKeyExists(GetHKLM(), 'SOFTWARE\Mozilla