2010-05-13 04:15:32 +00:00
|
|
|
|
2010-05-26 19:46:37 +00:00
|
|
|
; PCSX2 Full/Complete Install Package!
|
|
|
|
; (a NSIS installer script)
|
|
|
|
;
|
2013-12-31 10:59:17 +00:00
|
|
|
; Copyright 2009-2014 PCSX2 Dev Team
|
2010-05-26 19:46:37 +00:00
|
|
|
;
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!ifndef INC_CRT_2008
|
2010-05-26 19:46:37 +00:00
|
|
|
; Set to 0 to disable inclusion of Visual Studio 2008 SP1 CRT Redists
|
2012-06-06 14:55:15 +00:00
|
|
|
!define INC_CRT_2008 0
|
2010-05-17 04:52:31 +00:00
|
|
|
!endif
|
2010-05-15 13:13:55 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!ifndef INC_CRT_2010
|
2012-06-06 14:55:15 +00:00
|
|
|
; Set to 0 to disable inclusion of Visual Studio 2010 SP1 CRT Redists
|
2013-12-31 10:59:17 +00:00
|
|
|
!define INC_CRT_2010 0
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef INC_CRT_2013
|
|
|
|
; Set to 0 to disable inclusion of Visual Studio 2013 SP1 CRT Redists
|
|
|
|
!define INC_CRT_2013 1
|
2010-05-17 04:52:31 +00:00
|
|
|
!endif
|
2010-05-15 13:13:55 +00:00
|
|
|
|
2013-12-30 17:50:07 +00:00
|
|
|
ShowInstDetails nevershow
|
|
|
|
ShowUninstDetails nevershow
|
|
|
|
|
2010-05-27 12:13:51 +00:00
|
|
|
!define OUTFILE_POSTFIX "setup"
|
2010-05-30 02:00:19 +00:00
|
|
|
!include "SharedBase.nsh"
|
2014-01-05 21:23:46 +00:00
|
|
|
!include "x64.nsh"
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-27 12:13:51 +00:00
|
|
|
; Reserve features for improved performance with solid archiving.
|
|
|
|
; (uncomment if we add our own install options ini files)
|
|
|
|
;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
|
|
|
;!insertmacro MUI_RESERVEFILE_LANGDLL
|
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!include "ApplyExeProps.nsh"
|
|
|
|
!include "SharedRedtape.nsh"
|
2010-05-15 13:13:55 +00:00
|
|
|
|
|
|
|
; =======================================================================
|
|
|
|
; Installer Sections
|
|
|
|
; =======================================================================
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
; -----------------------------------------------------------------------
|
2009-08-30 01:48:08 +00:00
|
|
|
; Basic section (emulation proper)
|
2010-05-17 04:52:31 +00:00
|
|
|
Section "!${APP_NAME} (required)" SEC_CORE
|
2009-08-30 01:48:08 +00:00
|
|
|
|
|
|
|
SectionIn RO
|
2010-05-15 13:13:55 +00:00
|
|
|
|
2010-05-27 12:13:51 +00:00
|
|
|
!include "SectionCoreReqs.nsh"
|
2009-09-20 20:54:45 +00:00
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
; ------------------------------------------
|
|
|
|
; -- Plugins Section --
|
|
|
|
; ------------------------------------------
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!if ${INC_PLUGINS} > 0
|
2009-09-20 20:54:45 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
SetOutPath "$INSTDIR\Plugins"
|
|
|
|
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
|
2009-09-20 20:54:45 +00:00
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
File /nonfatal /oname=gsdx32-sse2.dll ..\bin\Plugins\gsdx32-sse2.dll
|
|
|
|
File /nonfatal /oname=gsdx32-ssse3.dll ..\bin\Plugins\gsdx32-ssse3.dll
|
|
|
|
File /nonfatal /oname=gsdx32-sse4.dll ..\bin\Plugins\gsdx32-sse4.dll
|
|
|
|
File /nonfatal /oname=gsdx32-avx.dll ..\bin\Plugins\gsdx32-avx.dll
|
|
|
|
File /nonfatal /oname=gsdx32-avx2.dll ..\bin\Plugins\gsdx32-avx2.dll
|
|
|
|
File /nonfatal /oname=zerogs.dll ..\bin\Plugins\zerogs.dll
|
2010-05-15 16:37:21 +00:00
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
File /nonfatal /oname=spu2-x.dll ..\bin\Plugins\spu2-x.dll
|
|
|
|
File /nonfatal /oname=zerospu2.dll ..\bin\Plugins\zerospu2.dll
|
2010-05-15 16:37:21 +00:00
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
File /nonfatal /oname=cdvdiso.dll ..\bin\Plugins\cdvdiso.dll
|
2010-05-17 04:52:31 +00:00
|
|
|
File ..\bin\Plugins\cdvdGigaherz.dll
|
2010-05-15 16:37:21 +00:00
|
|
|
|
2014-07-08 00:38:06 +00:00
|
|
|
File /nonfatal /oname=lilypad.dll ..\bin\Plugins\lilypad.dll
|
2013-12-31 10:59:17 +00:00
|
|
|
File /nonfatal ..\bin\Plugins\padPokopom.dll
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
|
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!endif
|
2009-08-30 01:48:08 +00:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
2010-05-29 16:24:26 +00:00
|
|
|
!include "SectionShortcuts.nsh"
|
2010-05-13 13:21:45 +00:00
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
; -----------------------------------------------------------------------
|
|
|
|
; MSVC Redistributable - required if the user does not already have it
|
|
|
|
; Note: if your NSIS generates an error here it means you need to download the latest
|
2012-07-03 10:30:26 +00:00
|
|
|
; visual studio redist package from microsoft.
|
2010-05-17 04:52:31 +00:00
|
|
|
;
|
|
|
|
; IMPORTANT: Online references for how to detect the presence of the VS2008 redists LIE.
|
|
|
|
; None of the methods are reliable, because the registry keys placed by the MSI installer
|
|
|
|
; vary depending on operating system *and* MSI installer version (youch).
|
|
|
|
;
|
|
|
|
!if ${INC_CRT_2008} > 0
|
2012-07-03 10:30:26 +00:00
|
|
|
Section "Microsoft Visual C++ 2008 SP1 Redist" SEC_CRT2008
|
2010-05-15 13:13:55 +00:00
|
|
|
|
|
|
|
SectionIn RO
|
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
; Downloaded from:
|
|
|
|
; http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe
|
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
SetOutPath "$TEMP"
|
2010-05-17 04:52:31 +00:00
|
|
|
File "vcredist_2008_sp1_x86.exe"
|
2010-05-15 17:43:44 +00:00
|
|
|
DetailPrint "Running Visual C++ 2008 SP1 Redistributable Setup..."
|
2010-05-17 04:52:31 +00:00
|
|
|
ExecWait '"$TEMP\vcredist_2008_sp1_x86.exe" /qb'
|
2010-05-15 17:43:44 +00:00
|
|
|
DetailPrint "Finished Visual C++ 2008 SP1 Redistributable Setup"
|
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
Delete "$TEMP\vcredist_2008_sp1_x86.exe"
|
2010-05-15 14:26:13 +00:00
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
SectionEnd
|
2010-05-17 04:52:31 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if ${INC_CRT_2010} > 0
|
2012-07-03 10:30:26 +00:00
|
|
|
Section "Microsoft Visual C++ 2010 SP1 Redist" SEC_CRT2010
|
2010-05-17 04:52:31 +00:00
|
|
|
|
|
|
|
;SectionIn RO
|
|
|
|
|
2013-12-31 10:59:17 +00:00
|
|
|
; Detection made easy: Unlike previous redists, VC2010 now generates a
|
2010-05-17 04:52:31 +00:00
|
|
|
; independent key for checking availability.
|
|
|
|
|
2013-12-31 10:59:17 +00:00
|
|
|
; These locations are current as of Jan. 2014. The code below might not work anymore (rama)
|
|
|
|
; HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\Runtimes\x86 for x64 Windows
|
|
|
|
; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\VC\Runtimes\x86 for x86 Windows
|
2010-05-17 04:52:31 +00:00
|
|
|
; Downloaded from:
|
2012-06-06 14:55:15 +00:00
|
|
|
; http://download.microsoft.com/download/C/6/D/C6D0FD4E-9E53-4897-9B91-836EBA2AACD3/vcredist_x86.exe
|
2010-05-17 04:52:31 +00:00
|
|
|
|
2010-07-03 15:10:12 +00:00
|
|
|
ClearErrors
|
2010-05-17 04:52:31 +00:00
|
|
|
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86" "Installed"
|
2010-07-03 15:10:12 +00:00
|
|
|
IfErrors 0 +2
|
|
|
|
DetailPrint "Visual C++ 2010 Redistributable registry key was not found; assumed to be uninstalled."
|
|
|
|
StrCmp $R0 "1" 0 +3
|
|
|
|
DetailPrint "Visual C++ 2010 Redistributable is already installed; skipping!"
|
|
|
|
Goto done
|
2010-05-17 04:52:31 +00:00
|
|
|
|
|
|
|
SetOutPath "$TEMP"
|
2012-06-06 14:55:15 +00:00
|
|
|
File "vcredist_2010_sp1_x86.exe"
|
|
|
|
DetailPrint "Running Visual C++ 2010 SP1 Redistributable Setup..."
|
|
|
|
ExecWait '"$TEMP\vcredist_2010_sp1_x86.exe" /qb'
|
|
|
|
DetailPrint "Finished Visual C++ 2010 SP1 Redistributable Setup"
|
2010-05-17 04:52:31 +00:00
|
|
|
|
2012-06-06 14:55:15 +00:00
|
|
|
Delete "$TEMP\vcredist_2010_sp1_x86.exe"
|
2010-05-17 04:52:31 +00:00
|
|
|
|
|
|
|
done:
|
|
|
|
SectionEnd
|
|
|
|
!endif
|
2010-05-15 13:13:55 +00:00
|
|
|
|
2013-12-31 10:59:17 +00:00
|
|
|
!if ${INC_CRT_2013} > 0
|
|
|
|
Section "Microsoft Visual C++ 2013 Redist" SEC_CRT2013
|
|
|
|
|
|
|
|
;SectionIn RO
|
|
|
|
|
|
|
|
; Detection made easy: Unlike previous redists, VC2013 now generates a platform
|
|
|
|
; independent key for checking availability.
|
|
|
|
; HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x86 for x64 Windows
|
|
|
|
; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86 for x86 Windows
|
|
|
|
|
|
|
|
; Downloaded from:
|
|
|
|
; http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe
|
|
|
|
|
|
|
|
ClearErrors
|
2014-01-05 21:23:46 +00:00
|
|
|
|
|
|
|
${If} ${RunningX64}
|
|
|
|
ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
|
|
|
|
${Else}
|
|
|
|
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
|
|
|
|
${EndIf}
|
|
|
|
|
2013-12-31 10:59:17 +00:00
|
|
|
IfErrors 0 +2
|
|
|
|
DetailPrint "Visual C++ 2013 Redistributable registry key was not found; assumed to be uninstalled."
|
|
|
|
StrCmp $R0 "1" 0 +3
|
|
|
|
DetailPrint "Visual C++ 2013 Redistributable is already installed; skipping!"
|
|
|
|
Goto done
|
|
|
|
|
|
|
|
SetOutPath "$TEMP"
|
|
|
|
File "vcredist_2013_x86.exe"
|
|
|
|
DetailPrint "Running Visual C++ 2013 Redistributable Setup..."
|
|
|
|
ExecWait '"$TEMP\vcredist_2013_x86.exe" /qb'
|
|
|
|
DetailPrint "Finished Visual C++ 2013 Redistributable Setup"
|
|
|
|
|
|
|
|
Delete "$TEMP\vcredist_2013_x86.exe"
|
|
|
|
|
|
|
|
done:
|
|
|
|
SectionEnd
|
|
|
|
!endif
|
|
|
|
|
2010-05-15 13:13:55 +00:00
|
|
|
; -----------------------------------------------------------------------
|
2010-05-13 04:15:32 +00:00
|
|
|
; This section needs to be last, so that in case it fails, the rest of the program will
|
2010-05-15 13:13:55 +00:00
|
|
|
; be installed cleanly.
|
|
|
|
;
|
|
|
|
; This section could be optional, but why not? It's pretty painless to double-check that
|
|
|
|
; all the libraries are up-to-date.
|
|
|
|
;
|
2012-07-03 10:30:26 +00:00
|
|
|
Section "DirectX Web Setup" SEC_DIRECTX
|
2010-05-13 04:15:32 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
;SectionIn RO
|
2010-05-15 13:13:55 +00:00
|
|
|
|
2010-05-14 18:15:27 +00:00
|
|
|
SetOutPath "$TEMP"
|
|
|
|
File "dxwebsetup.exe"
|
|
|
|
DetailPrint "Running DirectX Web Setup..."
|
|
|
|
ExecWait '"$TEMP\dxwebsetup.exe" /Q' $DirectXSetupError
|
2010-05-13 04:15:32 +00:00
|
|
|
DetailPrint "Finished DirectX Web Setup"
|
|
|
|
|
2010-05-14 18:15:27 +00:00
|
|
|
Delete "$TEMP\dxwebsetup.exe"
|
|
|
|
|
|
|
|
SectionEnd
|
2010-05-13 04:15:32 +00:00
|
|
|
|
2010-05-29 16:24:26 +00:00
|
|
|
!include "SectionUninstaller.nsh"
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
LangString DESC_CORE ${LANG_ENGLISH} "Core components (binaries, plugins, languages, etc)."
|
2009-09-20 20:54:45 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
LangString DESC_STARTMENU ${LANG_ENGLISH} "Adds shortcuts for PCSX2 to the start menu (all users)."
|
|
|
|
LangString DESC_DESKTOP ${LANG_ENGLISH} "Adds a shortcut for PCSX2 to the desktop (all users)."
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-27 12:13:51 +00:00
|
|
|
LangString DESC_CRT2008 ${LANG_ENGLISH} "Required by the PCSX2 binaries packaged in this installer."
|
2012-07-03 10:30:26 +00:00
|
|
|
LangString DESC_CRT2010 ${LANG_ENGLISH} "Required by the PCSX2 binaries packaged in this installer."
|
2013-12-31 10:59:17 +00:00
|
|
|
LangString DESC_CRT2013 ${LANG_ENGLISH} "Required by the PCSX2 binaries packaged in this installer."
|
2010-05-17 04:52:31 +00:00
|
|
|
LangString DESC_DIRECTX ${LANG_ENGLISH} "Only uncheck this if you are quite certain your Direct3D runtimes are up to date."
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CORE} $(DESC_CORE)
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_STARTMENU} $(DESC_STARTMENU)
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DESKTOP} $(DESC_DESKTOP)
|
2009-08-30 01:48:08 +00:00
|
|
|
|
2010-05-23 15:20:52 +00:00
|
|
|
!if ${INC_CRT_2008} > 0
|
2010-05-17 04:52:31 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CRT2008} $(DESC_CRT2008)
|
2010-05-23 15:20:52 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if ${INC_CRT_2010} > 0
|
2010-05-17 04:52:31 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CRT2010} $(DESC_CRT2010)
|
2010-05-23 15:20:52 +00:00
|
|
|
!endif
|
|
|
|
|
2013-12-31 10:59:17 +00:00
|
|
|
!if ${INC_CRT_2013} > 0
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CRT2013} $(DESC_CRT2013)
|
|
|
|
!endif
|
|
|
|
|
2010-05-17 04:52:31 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DIRECTX} $(DESC_DIRECTX)
|
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
2010-05-29 16:24:26 +00:00
|
|
|
|