/[pcsx2_0.9.7]/trunk/nsis/SharedBase.nsh
ViewVC logotype

Contents of /trunk/nsis/SharedBase.nsh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (8 years, 9 months ago) by william
File size: 4072 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1
2 ; =======================================================================
3 ; Core Includes and Defines
4 ; =======================================================================
5
6 !ifndef INC_CORE
7 !define INC_CORE 1
8 !endif
9
10 !ifndef INC_PLUGINS
11 ; Set to 0 to include the core binaries only (no plugins)
12 !define INC_PLUGINS 1
13 !endif
14
15 !ifndef INC_LANGS
16 ; Set to 1 to enable inclusion of Languages folders (which are currently missing in 0.9.7)
17 !define INC_LANGS 0
18 !endif
19
20 !ifndef USE_PACKAGE_REV
21 ; When enabled, all exe and plugins use a single revision based ont he trunk/HEAD svn revision.
22 ; When disabled, each plugin and the main exe get their own revision number based on the actual
23 ; revision the component was last updated.
24 !define USE_PACKAGE_REV 1
25 !endif
26
27 !if ${INC_CORE} > 0
28 ; FIXME: Technically we'd want to exclude plugin revisions here, but it isn't easy to do.
29 !system 'SubWCRev.exe ..\ templates\svnrev_package.nsh svnrev_package.nsh'
30 !else
31 ; Revision information for all plugins; used to moniker the output file when building
32 ; plugin-only packages.
33 !system 'SubWCRev.exe ..\plugins templates\svnrev_package.nsh svnrev_package.nsh'
34 !endif
35
36 !system 'SubWCRev.exe ..\pcsx2 templates\svnrev_pcsx2.nsh svnrev_pcsx2.nsh'
37
38 !include "svnrev_package.nsh"
39 !include "svnrev_pcsx2.nsh"
40
41 ; Notes on Uninstall Log Location (UNINSTALL_LOG)
42 ; The name of the uninstall log determines whether or not future installers
43 ; fall under the same single uninstall entry, or if they use multiple (separate)
44 ; uninstall folders.
45
46 !ifndef APP_VERSION
47 !define APP_VERSION "0.9.7"
48 !endif
49
50 !define APP_NAME "PCSX2 ${APP_VERSION} (r${SVNREV_PACKAGE})"
51 !define APP_FILENAME "pcsx2-r${SVNREV_PCSX2}"
52 !define UNINSTALL_LOG "Uninst-pcsx2-r${SVNREV_PACKAGE}"
53
54 !define INSTDIR_REG_ROOT "HKLM"
55
56 XPStyle on
57
58 ; LZMA is the best, by far, so let's make sure it's always in use:
59 ; (dictionaries larger than 24MB don't seem to help)
60 SetCompressor /SOLID lzma
61 SetCompressorDictSize 24
62
63
64 ; The name of the installer
65 Name "${APP_NAME}"
66
67 OutFile "output\pcsx2-${APP_VERSION}-r${SVNREV_PACKAGE}-${OUTFILE_POSTFIX}.exe"
68
69 ; The default installation directory
70 InstallDir "$PROGRAMFILES\PCSX2 ${APP_VERSION}"
71
72 ; Registry key to check for directory (so if you install again, it will
73 ; overwrite the old one automatically)
74 InstallDirRegKey ${INSTDIR_REG_ROOT} "Software\PCSX2\${APP_VERSION}" "Install_Dir"
75
76 ; These defines are dependent on NSIS vars assigned above.
77
78 !define APP_EXE "$INSTDIR\${APP_FILENAME}.exe"
79 !define INSTDIR_REG_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FILENAME}"
80
81 !define PCSX2_README "pcsx2 readme ${APP_VERSION}.doc"
82 !define PCSX2_FAQ "pcsx2 FAQ ${APP_VERSION}.pdf"
83
84
85 Var DirectXSetupError
86
87 ; =======================================================================
88 ; Vista/Win7 UAC Stuff
89 ; =======================================================================
90 ; FIXME !!
91 ; Request application privileges for Windows Vista/7; I'd love for this to be sensible about which
92 ; execution level it requests, but UAC is breaking my mind. I included some code for User type
93 ; detection in function IsUserAdmin, but not really using it constructively yet. (see also our
94 ; uses of SetShellVarContext in the installer sections)
95
96 ;!include "IsUserAdmin.nsi"
97
98 ; Allow admin-rights PCSX2 users to be hardcore!
99 AllowRootDirInstall true
100
101 ; Just require admin for now, until we figure out a nice way to allow for casual user installs.
102 RequestExecutionLevel admin
103
104 ; =======================================================================
105 ; MUI2 and Advanced Uninstaller Basics
106 ; =======================================================================
107 !include "MUI2.nsh"
108 !include "AdvUninstLog.nsh"
109
110 ; This defines the Advanced Uninstaller mode of operation...
111 !insertmacro UNATTENDED_UNINSTALL
112
113 !define MUI_HEADERIMAGE
114 !define MUI_HEADERIMAGE_BITMAP "banner.bmp"
115 !define MUI_COMPONENTSPAGE_SMALLDESC
116

  ViewVC Help
Powered by ViewVC 1.1.22