inno-setup

How to handle path with spaces in Inno Setup?

六眼飞鱼酱① 提交于 2021-01-23 01:49:34
问题 I want to allow paths with spaces (for example program files ) when installing my program with Inno Setup. However paths with spaces let my installed service crash. The Inno Setup file looks like this: [Setup] AppName=Demo DefaultDirName={pf}\demo [Files] Source: "bin\nssm.exe"; DestDir: "{app}" Source: "bin\jdk1.8.0_152\jre\*"; DestDir: "{app}\jre"; Flags: recursesubdirs Source: "build\libs\demo.jar"; DestDir: "{app}" [Run] Filename: "{app}\nssm.exe"; \ Parameters: "install demo ""{app}\jre

How to handle path with spaces in Inno Setup?

只愿长相守 提交于 2021-01-23 01:47:30
问题 I want to allow paths with spaces (for example program files ) when installing my program with Inno Setup. However paths with spaces let my installed service crash. The Inno Setup file looks like this: [Setup] AppName=Demo DefaultDirName={pf}\demo [Files] Source: "bin\nssm.exe"; DestDir: "{app}" Source: "bin\jdk1.8.0_152\jre\*"; DestDir: "{app}\jre"; Flags: recursesubdirs Source: "build\libs\demo.jar"; DestDir: "{app}" [Run] Filename: "{app}\nssm.exe"; \ Parameters: "install demo ""{app}\jre

How can I rewrite predefined messages for the WelcomePage in different languages in Inno Setup?

旧街凉风 提交于 2021-01-21 11:22:25
问题 I have 3 languages and I need to change the AppName according to the language I've chosen. I wrote this: [Setup] AppName={code:GetMyAppName} [Code] function GetMyAppName(param : String) : String; begin case ActiveLanguage of 'en': Result := 'AB Office Client'; 'ru': Result := 'Клиент АБ Офис'; 'ua': Result := 'Клієнт АБ Офіс'; end; end; And here I have my language-dependent [Messages] section: [Messages] en.WelcomeLabel1=Welcome to [APPNAME] Setup program. This program will install [APPNAME]

Inno Setup: Ready Page custom layout

元气小坏坏 提交于 2021-01-21 09:59:08
问题 The UX designer's call. I am reworking layout for Ready Page to make it similar to Welcome Page as in my drawing: The two slides above are standard pages. The one on the bottom is reworked Ready Page. How can I reposition all the controls and text labels to accomplish that? P.S. I accepted the answer from Martin Prikryl and the most important part was the structure from Wizard.dfm.txt. The exact answer was not fully applicable partially due to the sketch above being simplification of the

Inno Setup: Ready Page custom layout

[亡魂溺海] 提交于 2021-01-21 09:59:08
问题 The UX designer's call. I am reworking layout for Ready Page to make it similar to Welcome Page as in my drawing: The two slides above are standard pages. The one on the bottom is reworked Ready Page. How can I reposition all the controls and text labels to accomplish that? P.S. I accepted the answer from Martin Prikryl and the most important part was the structure from Wizard.dfm.txt. The exact answer was not fully applicable partially due to the sketch above being simplification of the

Play a sound only in a specific page in Inno Setup

人走茶凉 提交于 2021-01-21 05:34:06
问题 I'm creating a installer for my application with Inno Setup. I use BASS audio library to play music in background of the installer. Here is my code for playing the sound. [Code] const DI_NORMAL = 3; FR_PRIVATE = $10; {added to compact Mode} BASS_SAMPLE_LOOP = 4; BASS_ACTIVE_STOPPED = 0; BASS_ACTIVE_PLAYING = 1; BASS_ACTIVE_STALLED = 2; BASS_ACTIVE_PAUSED = 3; BASS_UNICODE = $80000000; BASS_CONFIG_GVOL_STREAM = {#MusicVolume}; EncodingFlag = BASS_UNICODE; #if CheckCRC == "1" PM_REMOVE = 1; WM

Query list of Windows accounts in Inno Setup

久未见 提交于 2021-01-01 06:43:52
问题 In my Inno Setup project I need to allow the user to choose an account from the list of all local accounts on a custom page. The selected account will be used to install a service with custom credential. How can I make this? Thank you in advance! 回答1: You can use WMI Win32_UserAccount class to query the list of accounts. [Run] Filename: sc.exe; Parameters: ... {code:GetAccount} [Code] var AccountPage: TInputOptionWizardPage; procedure InitializeWizard(); var WMIService: Variant; WbemLocator:

Inno Setup: How to show (hide/unhide) password on checkbox checked

一曲冷凌霜 提交于 2021-01-01 04:58:51
问题 I am adding a checkbox to my input query page to use it to show me the password uncovered, when is checked. But I don't know how to do that. I already created the following procedure. But this procedure does not change me the true false value on add input. This procedure adds me new textbox that do the job. Could you please help me? procedure SPCheckBoxChecked(Sender: TObject); begin if Assigned(SPCheckBox) then begin if SPCheckBox.Checked then CredentialsPage.Add('Password:', False) if not

Inno Setup: How to show (hide/unhide) password on checkbox checked

时光毁灭记忆、已成空白 提交于 2021-01-01 04:58:43
问题 I am adding a checkbox to my input query page to use it to show me the password uncovered, when is checked. But I don't know how to do that. I already created the following procedure. But this procedure does not change me the true false value on add input. This procedure adds me new textbox that do the job. Could you please help me? procedure SPCheckBoxChecked(Sender: TObject); begin if Assigned(SPCheckBox) then begin if SPCheckBox.Checked then CredentialsPage.Add('Password:', False) if not

Execute a batch file after installation and display its output on a custom page before Finished page in Inno Setup

只愿长相守 提交于 2021-01-01 04:53:34
问题 A cmd output can be shown within Inno Setup UI using this solution: Embedded CMD in Inno Setup installer (show command output on a custom page) My problem is that I want to execute a batch file in [Run] section (i.e.) after installation. Also, I want its output to be displayed in Inno Setup UI, but from documentation I see that [Run] will be executed after installation and before final dialog is displayed. So how can I show a custom page after installation, which will display all the output