Add license to Windows installer

This commit is contained in:
Daniel Molkentin 2012-10-12 14:41:21 +02:00
parent b7433ccad6
commit aad21c8c4a
2 changed files with 5 additions and 3 deletions

View file

@ -5,4 +5,5 @@ set( APPLICATION_DOMAIN "owncloud.org" )
set( APPLICATION_VENDOR "ownCloud.org" ) set( APPLICATION_VENDOR "ownCloud.org" )
set( THEME_CLASS "ownCloudTheme" ) set( THEME_CLASS "ownCloudTheme" )
SET( APPLICATION_REV_DOMAIN "org.owncloud.desktopclient" ) SET( APPLICATION_REV_DOMAIN "org.owncloud.desktopclient" )
SET( APPLICATION_LICENSE "COPYING" )

View file

@ -5,6 +5,7 @@
!define APPLICATION_VENDOR "@APPLICATION_VENDOR@" !define APPLICATION_VENDOR "@APPLICATION_VENDOR@"
!define APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@.exe" !define APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@.exe"
!define APPLICATION_DOMAIN "@APPLICATION_DOMAIN@" !define APPLICATION_DOMAIN "@APPLICATION_DOMAIN@"
!define APPLICATION_LICENSE "@APPLICATION_LICENSE@"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.${APPLICATION_DOMAIN}" !define MUI_FINISHPAGE_LINK_LOCATION "http://www.${APPLICATION_DOMAIN}"
@ -12,7 +13,7 @@
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; Some installer script options (comment-out options not required) ; Some installer script options (comment-out options not required)
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
;!define OPTION_LICENSE_AGREEMENT !define OPTION_LICENSE_AGREEMENT
!define OPTION_UAC_PLUGIN_ENHANCED !define OPTION_UAC_PLUGIN_ENHANCED
!define OPTION_SECTION_SC_START_MENU !define OPTION_SECTION_SC_START_MENU
!define OPTION_SECTION_SC_DESKTOP !define OPTION_SECTION_SC_DESKTOP
@ -40,7 +41,7 @@
!define CSYNC_PLUGIN_DIR "@CSYNC_PLUGIN_DIR@" !define CSYNC_PLUGIN_DIR "@CSYNC_PLUGIN_DIR@"
!define CSYNC_CONFIG_DIR "@CSYNC_CONFIG_DIR@" !define CSYNC_CONFIG_DIR "@CSYNC_CONFIG_DIR@"
!define NSI_PATH "${SOURCE_PATH}/admin/win/nsi" !define NSI_PATH "${source_path}/admin/win/nsi"
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; Installer version ; Installer version
@ -125,7 +126,7 @@ ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_WELCOME
!ifdef OPTION_LICENSE_AGREEMENT !ifdef OPTION_LICENSE_AGREEMENT
!insertmacro MUI_PAGE_LICENSE "LICENSE.txt" !insertmacro MUI_PAGE_LICENSE "${source_path}/${APPLICATION_LICENSE}"
!endif !endif
Page custom PageReinstall PageLeaveReinstall Page custom PageReinstall PageLeaveReinstall
!insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_COMPONENTS