Ausführbares Windows-Programm aus JavaFX generieren (Teil 2)

Avatar of domjosdomjos - 08. Dezember 2019 - JavaFX, Maven

InnoSetup installieren

  1. Laden Sie Inno Setup herunter und Installieren Sie es
  2. Erstellen Sie mit dem Assistenten eine neue ISS-Datei
  3. Kopieren Sie die Datei in die Ressourcen des JavaFX-Programms unter Setup.

Config-Datei

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "PhotoManager"
#define MyAppVersion "0.1"
#define MyAppPublisher "Domjos"
#define MyAppURL "https://domjos.de/entwicklung/programme/photomanager.html"
#define MyAppExeName "PhotoManager.exe

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{05ED8F86-82D0-45BA-B531-B27FEADD118A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=LICENSE.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=..\..\..\..\build\
OutputBaseFilename=PhotoManager_Setup
SetupIconFile=header.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "..\..\..\..\build\PhotoManager.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "photoManager_de_documentation.pdf"; DestDir: "{app}"; Flags: ignoreversion
Source: "photoManager_en_documentation.pdf"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec postinstall skipifsilent

Comments are disabled for this post.

0 comments