From 8fb33b4a128b5c3af8b721e2e7d20c61b60b30b0 Mon Sep 17 00:00:00 2001
From: dion
- You can customize the resultant executable installer either
+ You can customize the installer either
by providing your own scripts that the existing templates
includes, or you can provide your own templates.
+ This template produces a file (
+ The file, when processed, includes other files which you can optionally
+ provide, to add functionality to the installer. The property,
+
+ The ${maven.build.dir}/setup.nsi)
+ which is used by the NSIS 'compiler', makensis.exe to
+ produce the installer.
+ ${maven.nsis.src}, which defaults to
+ ${basedir}/src/nsis, is where you can place any NSIS source
+ files which you want included.
+ setup.nsh file that is generated uses following list
+ of directories to search for files to include:
+
+
+ So anything in your NSIS source will override the defaults.
+ ${maven.nsis.src} if it exists,${maven.build.dir}${plugin.resources}
+ The generated setup.nsh file includes the following files: +
+| File | Purpose |
|---|---|
| before-install.nsh | +Allow customization of code to be run before the install, e.g. check JAVA_HOME etc | +
| BrandingImage.nsh | +Adds a macro to display the project logo on the installer | +
| desktop-shortcuts.nsh | +Allow customization of desktop shortcuts to be added | +
| Environment.nsh | +Adds functionality to set environment variables | +
| JDK.nsh | +Adds a function to check for JAVA_HOME being set |
+
| project.nsh | +The generated file with project details as constants | +
| registry.nsh | +Allow customization of environment variables and registry entries to be written | +
| registry-uninstall.nsh | +Allow customization of environment variables and registry entries to be removed on uninstall | +
| startmenu-shortcuts.nsh | +Allow start menu shortcuts to be added | +
+ Typically you wont provide overrides for BrandingImage.nsh, + Environment.nsh and JDK.nsh, as these are utilities used in the setup.nsh + script. +