Class InstallerOptions
java.lang.Object
io.github.danlewis783.jpackage.InstallerOptions
Options for building native installers from the application image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<String> URL shown in the installer/uninstall entry (--about-url).abstract org.gradle.api.provider.ListProperty<String> Extra arguments appended verbatim to each installer jpackage invocation.abstract org.gradle.api.provider.Property<String> Installation directory.abstract org.gradle.api.file.RegularFilePropertyLicense file displayed by the installer (--license-file).abstract org.gradle.api.provider.Property<Boolean> Whentrue(the default), different versions of the application can be installed side by side: the Windows upgrade UUID is derived from the app name and version, and the install directory defaults to<appName>/<appVersion>.abstract org.gradle.api.provider.ListProperty<String> getTypes()Installer types to produce, e.g.abstract org.gradle.api.provider.Property<Boolean> Lets the user choose the install directory (--win-dir-chooser).abstract org.gradle.api.provider.Property<Boolean> Adds a Start Menu entry (--win-menu).abstract org.gradle.api.provider.Property<String> Start Menu group (folder) name (--win-menu-group).abstract org.gradle.api.provider.Property<Boolean> Installs per-user instead of per-machine (--win-per-user-install).abstract org.gradle.api.provider.Property<Boolean> Adds a desktop shortcut (--win-shortcut).abstract org.gradle.api.provider.Property<Boolean> Lets the user choose shortcuts during install (--win-shortcut-prompt).abstract org.gradle.api.provider.Property<String> Explicit MSI upgrade UUID (--win-upgrade-uuid).
-
Constructor Details
-
InstallerOptions
public InstallerOptions()
-
-
Method Details
-
getTypes
Installer types to produce, e.g.["msi"]or["msi", "exe"]. Defaults to["msi"]on Windows and the platform default elsewhere. Buildingmsi/exerequires the WiX Toolset on the PATH. -
getLicenseFile
public abstract org.gradle.api.file.RegularFileProperty getLicenseFile()License file displayed by the installer (--license-file). -
getAboutUrl
URL shown in the installer/uninstall entry (--about-url). -
getInstallDir
Installation directory. On Windows this is a relative sub-path below the default installation location, e.g."MyApp/1.2.3". WhensideBySideis enabled (the default) this defaults to<appName>/<appVersion>. -
getSideBySide
Whentrue(the default), different versions of the application can be installed side by side: the Windows upgrade UUID is derived from the app name and version, and the install directory defaults to<appName>/<appVersion>. Installing a new version then does not remove the previous one.When
false, jpackage's default upgrade UUID (stable across versions) is used, so installing a newer version upgrades/replaces the older one. -
getWinMenu
Adds a Start Menu entry (--win-menu). Defaults totrue. -
getWinMenuGroup
Start Menu group (folder) name (--win-menu-group). Defaults to the app name. -
getWinShortcut
Adds a desktop shortcut (--win-shortcut). Defaults totrue. -
getWinShortcutPrompt
Lets the user choose shortcuts during install (--win-shortcut-prompt). -
getWinDirChooser
Lets the user choose the install directory (--win-dir-chooser). -
getWinPerUserInstall
Installs per-user instead of per-machine (--win-per-user-install). -
getWinUpgradeUuid
Explicit MSI upgrade UUID (--win-upgrade-uuid). Setting this overrides thesideBySidederivation. -
getExtraArgs
Extra arguments appended verbatim to each installer jpackage invocation.
-