2010-05-30 02:00:19 +00:00
|
|
|
|
|
|
|
; =======================================================================
|
|
|
|
; Core Includes and Defines
|
|
|
|
; =======================================================================
|
|
|
|
|
|
|
|
!ifndef INC_CORE
|
|
|
|
!define INC_CORE 1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef INC_PLUGINS
|
|
|
|
; Set to 0 to include the core binaries only (no plugins)
|
|
|
|
!define INC_PLUGINS 1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef INC_LANGS
|
2011-03-24 04:34:46 +00:00
|
|
|
; Set to 1 to enable inclusion of Languages folders
|
|
|
|
!define INC_LANGS 1
|
2010-05-30 02:00:19 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef USE_PACKAGE_REV
|
|
|
|
; When enabled, all exe and plugins use a single revision based ont he trunk/HEAD svn revision.
|
|
|
|
; When disabled, each plugin and the main exe get their own revision number based on the actual
|
|
|
|
; revision the component was last updated.
|
2014-07-08 00:38:06 +00:00
|
|
|
!define USE_PACKAGE_REV 0
|
2010-05-30 02:00:19 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
; Notes on Uninstall Log Location (UNINSTALL_LOG)
|
|
|
|
; The name of the uninstall log determines whether or not future installers
|
|
|
|
; fall under the same single uninstall entry, or if they use multiple (separate)
|
|
|
|
; uninstall folders.
|
|
|
|
|
|
|
|
!ifndef APP_VERSION
|
2015-12-20 01:55:17 +00:00
|
|
|
!define APP_VERSION "1.4.0"
|
2010-05-30 02:00:19 +00:00
|
|
|
!endif
|
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
!define APP_NAME "PCSX2 ${APP_VERSION}"
|
|
|
|
!define APP_FILENAME "pcsx2"
|
|
|
|
!define UNINSTALL_LOG "Uninst-pcsx2 ${APP_VERSION}"
|
2010-05-30 02:00:19 +00:00
|
|
|
|
|
|
|
!define INSTDIR_REG_ROOT "HKLM"
|
|
|
|
|
|
|
|
XPStyle on
|
|
|
|
|
|
|
|
; LZMA is the best, by far, so let's make sure it's always in use:
|
|
|
|
; (dictionaries larger than 24MB don't seem to help)
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
SetCompressorDictSize 24
|
|
|
|
|
|
|
|
|
|
|
|
; The name of the installer
|
|
|
|
Name "${APP_NAME}"
|
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
OutFile "output\pcsx2-${APP_VERSION}-${OUTFILE_POSTFIX}.exe"
|
2010-05-30 02:00:19 +00:00
|
|
|
|
|
|
|
; The default installation directory
|
|
|
|
InstallDir "$PROGRAMFILES\PCSX2 ${APP_VERSION}"
|
|
|
|
|
|
|
|
; These defines are dependent on NSIS vars assigned above.
|
|
|
|
|
|
|
|
!define APP_EXE "$INSTDIR\${APP_FILENAME}.exe"
|
|
|
|
!define INSTDIR_REG_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FILENAME}"
|
|
|
|
|
2012-08-04 15:37:50 +00:00
|
|
|
!define PCSX2_README "PCSX2_Readme.pdf"
|
|
|
|
!define PCSX2_FAQ "PCSX2_FAQ.pdf"
|
2010-05-30 02:00:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
Var DirectXSetupError
|
|
|
|
|
|
|
|
; =======================================================================
|
|
|
|
; Vista/Win7 UAC Stuff
|
|
|
|
; =======================================================================
|
|
|
|
; FIXME !!
|
|
|
|
; Request application privileges for Windows Vista/7; I'd love for this to be sensible about which
|
|
|
|
; execution level it requests, but UAC is breaking my mind. I included some code for User type
|
|
|
|
; detection in function IsUserAdmin, but not really using it constructively yet. (see also our
|
|
|
|
; uses of SetShellVarContext in the installer sections)
|
|
|
|
|
|
|
|
;!include "IsUserAdmin.nsi"
|
|
|
|
|
|
|
|
; Allow admin-rights PCSX2 users to be hardcore!
|
|
|
|
AllowRootDirInstall true
|
|
|
|
|
|
|
|
; Just require admin for now, until we figure out a nice way to allow for casual user installs.
|
|
|
|
RequestExecutionLevel admin
|
|
|
|
|
|
|
|
; =======================================================================
|
|
|
|
; MUI2 and Advanced Uninstaller Basics
|
|
|
|
; =======================================================================
|
|
|
|
!include "MUI2.nsh"
|
|
|
|
!include "AdvUninstLog.nsh"
|
|
|
|
|
|
|
|
; This defines the Advanced Uninstaller mode of operation...
|
|
|
|
!insertmacro UNATTENDED_UNINSTALL
|
|
|
|
|
|
|
|
!define MUI_HEADERIMAGE
|
|
|
|
!define MUI_HEADERIMAGE_BITMAP "banner.bmp"
|
|
|
|
!define MUI_COMPONENTSPAGE_SMALLDESC
|
|
|
|
|