Added modern installer (NSIS MUI2) and the build version to the installer script.
This commit is contained in:
parent
361e403936
commit
64b67a5ff2
|
@ -6,13 +6,18 @@
|
||||||
; It will install makensisw.exe into a directory that the user selects,
|
; It will install makensisw.exe into a directory that the user selects,
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
!include "MUI2.nsh"
|
||||||
|
|
||||||
!ifndef OUTPUTDIR
|
!ifndef OUTPUTDIR
|
||||||
!define OUTPUTDIR "build\Release"
|
!define OUTPUTDIR "build\Release"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
SetDatablockOptimize on
|
||||||
|
|
||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "Synergy"
|
!define PRODUCT "Synergy+"
|
||||||
|
Name "${PRODUCT} 1.3.3"
|
||||||
|
BrandingText "${PRODUCT} 1.3.3"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "${OUTPUTFILE}"
|
OutFile "${OUTPUTFILE}"
|
||||||
|
@ -24,17 +29,38 @@ InstallDir $PROGRAMFILES\Synergy
|
||||||
; overwrite the old one automatically)
|
; overwrite the old one automatically)
|
||||||
InstallDirRegKey HKLM "Software\Synergy" "Install_Dir"
|
InstallDirRegKey HKLM "Software\Synergy" "Install_Dir"
|
||||||
|
|
||||||
|
;Request application privileges for Windows Vista
|
||||||
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
|
!define MUI_ICON cmd\launcher\synergy.ico
|
||||||
|
!define MUI_UNICON cmd\launcher\synergy.ico
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
; Pages
|
; Pages
|
||||||
|
|
||||||
Page components
|
;--------------------------------
|
||||||
Page license
|
;Pages
|
||||||
Page directory
|
|
||||||
Page instfiles
|
!insertmacro MUI_PAGE_LICENSE "${OUTPUTDIR}\COPYING.txt"
|
||||||
|
!insertmacro MUI_PAGE_COMPONENTS
|
||||||
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
|
||||||
|
;Page components
|
||||||
|
;Page license
|
||||||
|
;Page directory
|
||||||
|
;Page instfiles
|
||||||
|
|
||||||
UninstPage uninstConfirm
|
UninstPage uninstConfirm
|
||||||
UninstPage instfiles
|
UninstPage instfiles
|
||||||
|
;--------------------------------
|
||||||
|
;Languages
|
||||||
|
|
||||||
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
|
@ -48,7 +74,7 @@ LicenseData ${OUTPUTDIR}\COPYING.txt
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
; The stuff to install
|
; The stuff to install
|
||||||
Section "Synergy (required)"
|
Section "Synergy+ (required)"
|
||||||
|
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue