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

Annotation of /trunk/nsis/SectionCoreReqs.nsh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273 - (hide annotations) (download)
Fri Nov 12 01:10:22 2010 UTC (9 years, 2 months ago) by william
File size: 3824 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4013 local: v0.9.7.197-latest) in ./trunk
1 william 31
2     ; --- UAC NIGHTMARES ---
3     ; Ideally this would default to 'current' for user-level installs and 'all' for admin-level installs.
4     ; There are problems to be aware of, however!
5     ;
6     ; * If the user is an admin, Windows Vista/7 will DEFAULT to an "all" shell context (installing shortcuts
7     ; for all users), even if we don't want it to (which causes the uninstaller to fail!)
8     ; * If the user is not an admin, setting Shell Context to all will cause the installer to fail because the
9     ; user won't have permission enough to install it at all (sigh).
10     ;
11     ; For now we just require Admin rights to install PCSX2. An ideal solution would be to use our IsUserAdmin
12     ; function to auto-detect and modify nsis installer behavior accordingly.
13     ;
14     ; (note! the SetShellVarContext use in the uninstaller section must match this one!)
15    
16     SetShellVarContext all
17     ;SetShellVarContext current
18    
19     SetOutPath "$INSTDIR"
20     !insertmacro UNINSTALL.LOG_OPEN_INSTALL
21     File /oname=${APP_EXE} ..\bin\pcsx2.exe
22     ;File /nonfatal /oname=pcsx2-dev-r${SVNREV}.exe ..\bin\pcsx2-dev.exe
23 william 62
24 william 31 ; ------------------------------------------
25     ; -- Shared Core Components --
26     ; ------------------------------------------
27     ; (Binaries, shared DLLs, null plugins, game database, languages, etc)
28    
29     ; Note that v3 pthreads is compatible with v4 pthreads, so we just copy v4 oover both
30     ; filenames. This allows many older plugin versions to continue to work. (note that
31     ; v3 will be removed for 0.9.8).
32    
33     File ..\bin\w32pthreads.v4.dll
34     File /oname=w32pthreads.v3.dll ..\bin\w32pthreads.v4.dll
35     File ..\bin\GameIndex.dbf
36    
37     !insertmacro UNINSTALL.LOG_CLOSE_INSTALL
38 william 62
39 william 273 SetOutPath "$INSTDIR\Cheats"
40     !insertmacro UNINSTALL.LOG_OPEN_INSTALL
41     File ..\bin\Cheats\*
42     !insertmacro UNINSTALL.LOG_CLOSE_INSTALL
43    
44 william 62 SetOutPath "$INSTDIR\Docs"
45     !insertmacro UNINSTALL.LOG_OPEN_INSTALL
46     File ..\bin\docs\*
47     !insertmacro UNINSTALL.LOG_CLOSE_INSTALL
48    
49 william 31 SetOutPath "$INSTDIR\Plugins"
50     !insertmacro UNINSTALL.LOG_OPEN_INSTALL
51     ; NULL plugins are required, because the PCSX2 plugin selector needs a dummy plugin in every slot
52     ; in order to run (including CDVD!) -- and really there should be more but we don't have working
53     ; SPU2 null plugins right now.
54    
55     File ..\bin\Plugins\GSnull.dll
56     ;File ..\bin\Plugins\SPU2null.dll
57     File ..\bin\Plugins\USBnull.dll
58     File ..\bin\Plugins\DEV9null.dll
59     File ..\bin\Plugins\FWnull.dll
60     File ..\bin\Plugins\CDVDnull.dll
61     !insertmacro UNINSTALL.LOG_CLOSE_INSTALL
62    
63     ; In 0.9.7 there is only English, so including the other mo files (for now) is pointless.
64     ; This code will be re-enabled when the new GUI is translated.
65    
66     !if ${INC_LANGS} > 0
67     SetOutPath $INSTDIR\Langs
68     !insertmacro UNINSTALL.LOG_OPEN_INSTALL
69     File /nonfatal /r ..\bin\Langs\*.mo
70     !insertmacro UNINSTALL.LOG_CLOSE_INSTALL
71     !endif
72    
73    
74     ; ------------------------------------------
75     ; -- Registry Section --
76     ; ------------------------------------------
77    
78     ; Write the installation path into the registry
79     WriteRegStr HKLM Software\PCSX2 "Install_Dir" "$INSTDIR"
80    
81     ; Write the uninstall keys for Windows
82     WriteRegStr HKLM "${INSTDIR_REG_KEY}" "DisplayName" "PCSX2 - Playstation 2 Emulator"
83     WriteRegStr HKLM "${INSTDIR_REG_KEY}" "UninstallString" "${UNINST_EXE}"
84     WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoModify" 1
85     WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoRepair" 1
86     WriteUninstaller "${UNINST_EXE}"

  ViewVC Help
Powered by ViewVC 1.1.22