Conditionally include license. If no license file is found, no license page is generated in the installer
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
!define ORGANIZATION "${pom.organization}"
|
||||
!define PROJECT_BUILD_DIR "${build}"
|
||||
!define PROJECT_FINAL_NAME "${maven.final.name}"
|
||||
<util:available file="${license}">
|
||||
!define PROJECT_LICENSE_FILE "${license}"
|
||||
!define PROJECT_LICENSE_TEXT "${maven.nsis.license.text}"
|
||||
</util:available>
|
||||
!define PROJECT_NAME "${pom.name}"
|
||||
!define PROJECT_REG_KEY "SOFTWARE\${pom.organization}\${pom.name}\${pom.currentVersion}"
|
||||
!define PROJECT_REG_UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${pom.name} ${pom.version}"
|
||||
|
||||
@@ -51,9 +51,11 @@ XPStyle on
|
||||
; Sets the font of the installer
|
||||
SetFont "Arial" 8
|
||||
|
||||
; License Information
|
||||
LicenseText "$${PROJECT_LICENSE_TEXT}"
|
||||
LicenseData "$${PROJECT_LICENSE_FILE}"
|
||||
!ifdef PROJECT_LICENSE_FILE
|
||||
; License Information
|
||||
LicenseText "$${PROJECT_LICENSE_TEXT}"
|
||||
LicenseData "$${PROJECT_LICENSE_FILE}"
|
||||
!endif
|
||||
|
||||
; The default installation directory
|
||||
InstallDir "$$PROGRAMFILES\$${ORGANIZATION}\$${PROJECT_NAME} $${PROJECT_VERSION}"
|
||||
|
||||
Reference in New Issue
Block a user