From 8fb33b4a128b5c3af8b721e2e7d20c61b60b30b0 Mon Sep 17 00:00:00 2001 From: dion Date: Mon, 5 Jul 2004 04:45:42 +0000 Subject: [PATCH] Add section on the provided templates and customization points git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115654 13f79535-47bb-0310-9956-ffa450edef68 --- nsis/xdocs/customizing.xml | 71 +++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/nsis/xdocs/customizing.xml b/nsis/xdocs/customizing.xml index 30f8e58c..ae38ed02 100644 --- a/nsis/xdocs/customizing.xml +++ b/nsis/xdocs/customizing.xml @@ -35,7 +35,7 @@

- 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.

@@ -98,6 +98,75 @@ +

+ This template produces a file (${maven.build.dir}/setup.nsi) + which is used by the NSIS 'compiler', makensis.exe to + produce the installer. +

+

+ The file, when processed, includes other files which you can optionally + provide, to add functionality to the installer. The property, + ${maven.nsis.src}, which defaults to + ${basedir}/src/nsis, is where you can place any NSIS source + files which you want included. +

+

+ The setup.nsh file that is generated uses following list + of directories to search for files to include: +

    +
  1. ${maven.nsis.src} if it exists,
  2. +
  3. ${maven.build.dir}
  4. +
  5. ${plugin.resources}
  6. +
+ So anything in your NSIS source will override the defaults. +

+

+ The generated setup.nsh file includes the following files: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilePurpose
before-install.nshAllow customization of code to be run before the install, e.g. check JAVA_HOME etc
BrandingImage.nshAdds a macro to display the project logo on the installer
desktop-shortcuts.nshAllow customization of desktop shortcuts to be added
Environment.nshAdds functionality to set environment variables
JDK.nshAdds a function to check for JAVA_HOME being set
project.nshThe generated file with project details as constants
registry.nshAllow customization of environment variables and registry entries to be written
registry-uninstall.nshAllow customization of environment variables and registry entries to be removed on uninstall
startmenu-shortcuts.nshAllow 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. +