inno-setup

Can I put setup command line parameters in a file which is called during installation instead?

◇◆丶佛笑我妖孽 提交于 2020-01-06 15:02:08
问题 After creating my setup.exe I have to pack it for various software deployment tools. Therefore I can't call the setup.exe with parameters, instead I have placed my own parameters in a setup.ini file next to the setup.exe [Code] var MyIniFile: String; function InitializeSetup(): Boolean; var LoadFromIniFile: String; begin Result := true; MyIniFile := ExpandConstant('{srcexe}'); //writes the full path of the setup.exe in "MyIniFile" MyIniFile := Copy(MyIniFile, 1, Length(MyIniFile) - Length

Inno Setup - Registry uninsdeletekey - exclude upgrade

左心房为你撑大大i 提交于 2020-01-05 13:54:21
问题 I have an Inno-Setup installation with the following entry in the [Registry] section Root: HKCU; Subkey: SOFTWARE\MyCompany\MyApp; ValueName: MyKey; Flags: uninsdeletekey noerror Which as stated by the flags is to be deleted upon uninstall. But I need it to be preserved in case the uninstall is due to version upgrade. How can it be done? Check maybe? Thanks. 回答1: You will need to pass the information that you want to preserve the key to the uninstaller since it doesn't know who executes it

Inno Setup: Function to select a component

北战南征 提交于 2020-01-05 10:28:24
问题 I have a small problem. I need that a page is displayed when you select one or two components. But the other is not work only with a single component seems to have an effect. I leave the code that I'm working. [Setup] AppName=My Program AppVerName=My Program v.1.2 DefaultDirName={pf}\My Program [Types] Name: full; Description: Full installation Name: compact; Description: Compact installation Name: custom; Description: Custom installation; Flags: iscustom [Components] Name: program;

Inno Setup Unicode version still doesn't display Cyrillic properly

孤者浪人 提交于 2020-01-05 05:19:28
问题 I am using Inno Setup 5.5.2 (u) and all symbols are fine except the dynamically filled strings in TStringList . I initialize the list and add items this way: Regions := TStringList.Create; Regions.Add('Аврен'); Regions.Add('Айтос'); Regions.Add('Аксаково'); Regions.Add('Алфатар'); ... but them I get: Thanks for looking into this. 回答1: You can't use Unicode constants in Inno Setup at this time. In documentation there's a quote about it (emphasized by me): The new RemObjects PascalScript

Inno Setup Unicode version still doesn't display Cyrillic properly

非 Y 不嫁゛ 提交于 2020-01-05 05:19:26
问题 I am using Inno Setup 5.5.2 (u) and all symbols are fine except the dynamically filled strings in TStringList . I initialize the list and add items this way: Regions := TStringList.Create; Regions.Add('Аврен'); Regions.Add('Айтос'); Regions.Add('Аксаково'); Regions.Add('Алфатар'); ... but them I get: Thanks for looking into this. 回答1: You can't use Unicode constants in Inno Setup at this time. In documentation there's a quote about it (emphasized by me): The new RemObjects PascalScript

Inno Setup Shortcut Issue

試著忘記壹切 提交于 2020-01-05 03:31:00
问题 I have one small, but frustrating issue. I create installer with possibility for shortcut for the executable, but if the executable is not in the main folder in lets say MyProgram\bin\myprogram.exe the installer makes copy of the .exe in the main program folder and shortcut path is not MyProgram\bin\myprogram.exe like it supposed to be, but its MyProgram\myprogram.exe and of course it won't run until i make manual shortcut from bin folder. Hope you guys understand my problem and tell me where

Inno setup hide installation items when switching from one installation to ther other

拜拜、爱过 提交于 2020-01-05 03:06:11
问题 I should need your help. I wonder if there is a possibility in Inno to set 2 different installation masks for 2 products (by selecting from the Dropdown). We will call the 2 different installations “SETUP” and “PROGRAM”. When Installing “SETUP” we should have the possibility to check/uncheck boxes for: A.exe , B.exe, C.exe and D.exe that will be installed (no other check boxes should be seen). When installing “PROGRAM” we should have the possibility to check/uncheck boxes for A.exe, B.exe

Replacing Radio Buttons with Check Box on License Wizard Page in Inno Setup

旧时模样 提交于 2020-01-04 23:46:40
问题 Is there any easy way to replace standard 2 radio buttons on License Wizard Page with single (checked/unchecked) Check Box in Inno Setup whithout creating Custom Page? 回答1: Since there are no settings to switch between license radio buttons and some license check box (at least just because there's no component for it on the WizardForm ) you need to create it by your own. The following code hide the original license radio buttons and creates a check box on the same place at the wizard

How to get localized Windows Administrators group name in Inno Setup?

百般思念 提交于 2020-01-04 06:36:49
问题 I need to install SQL Server 2008 using Inno Setup. It requires /SQLSYSADMINACCOUNTS to be specified. I want to set it to BUILTIN\Administrators , but the problem is that in localized Windows versions this group's name is different. For example, in Russian version of Windows it's BUILTIN\Администраторы . How can I get the string name for this group (S-1-5-32-544) in Inno Setup? 回答1: You can get the name from a SID using LookupAccountSid API Call. 来源: https://stackoverflow.com/questions

How can I use a Sharepoint server as the Source for Inno Setup files?

谁都会走 提交于 2020-01-04 06:16:47
问题 I'm using Inno Setup for an application setup. Many of the data files that will be included with this application are stored on a Microsoft Sharepoint server. When I try to use the path Sharepoint provides in the 'Source:' [Files] Source: http://teams/sm/Symbols/*; DestDir: {app}\Symbols I get the following error on compile: Unknown filename prefix: "http:" How can I properly call out a Sharepoint location as the source for my data files? I'm using Inno Setup version 5.4.2 EDIT I know what