mirror of https://github.com/PCSX2/pcsx2.git
Block installation on XP/fix an uninstaller regression and add ManifestDPIAware to the installer. Remove NSIS dirs from .gitignore.
Typo ;) Remove XPStyle parameter. It isn't needed anymore Updated copyright, added ManifestDPIAware for rich folks, removed IDOK true and Cheats folder from $INSTDIR as Turtleli suggested, formatting adjustments. Gitignore: remove now unused NSIS directories Fixed a nasty regression I introduced after a registry pointer was assumed to be incorrect. It contained UserMode data generated by the First Time Wizard. This was causing conflicts and the FTW to fail randomly when running PCSX2 after a reinstall due to old configuration data being read. I added clarifcation below the original comment to reduce confusion in the future.
This commit is contained in:
parent
5298c2016f
commit
732dc881e4
|
@ -76,7 +76,6 @@ oprofile_data/
|
|||
/bin/sstates
|
||||
/deps
|
||||
/ipch
|
||||
/nsis/output/
|
||||
|
||||
!/3rdparty/libjpeg/change.log
|
||||
/3rdparty/portaudio/portaudio-2.0.pc
|
||||
|
@ -95,13 +94,6 @@ oprofile_data/
|
|||
/3rdparty/portaudio/src/hostapi/wasapi/mingw-include
|
||||
/3rdparty/**/include/wx/setup.h
|
||||
/3rdparty/**/wx/msw/rcdefs.h
|
||||
/nsis/svnrev_cdvdiso.nsh
|
||||
/nsis/svnrev_gsdx.nsh
|
||||
/nsis/svnrev_lilypad.nsh
|
||||
/nsis/svnrev_pcsx2.nsh
|
||||
/nsis/svnrev_spu2x.nsh
|
||||
/nsis/svnrev_zerogs.nsh
|
||||
/nsis/svnrev_zerospu2.nsh
|
||||
/pcsx2/gui/Resources/*.h
|
||||
!/pcsx2/gui/Resources/EmbeddedImage.h
|
||||
/plugins/CDVDolio/Template
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
|
||||
;VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "A test comment"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2016 PCSX2 Dev Team"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2017 PCSX2 Dev Team"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Installs PCSX2, a Playstation 2 Emulator for the PC."
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
|
||||
|
||||
|
|
|
@ -32,11 +32,6 @@
|
|||
|
||||
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
|
||||
|
||||
;/bin/Cheats needs CreateDirectory to prevent MakeNSIS from failing due to the folder being empty
|
||||
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
|
||||
CreateDirectory "$INSTDIR\Cheats"
|
||||
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
|
||||
|
||||
SetOutPath "$INSTDIR\Docs"
|
||||
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
|
||||
File ..\bin\docs\*
|
||||
|
@ -50,15 +45,11 @@
|
|||
SetOutPath "$INSTDIR\Plugins"
|
||||
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
|
||||
; NULL plugins are required, because the PCSX2 plugin selector needs a dummy plugin in every slot
|
||||
; in order to run (including CDVD!) -- and really there should be more but we don't have working
|
||||
; SPU2 null plugins right now.
|
||||
; in order to run (including CDVD!)
|
||||
|
||||
;File ..\bin\Plugins\GSnull.dll
|
||||
;File ..\bin\Plugins\SPU2null.dll
|
||||
File ..\bin\Plugins\USBnull.dll
|
||||
File ..\bin\Plugins\DEV9null.dll
|
||||
File ..\bin\Plugins\FWnull.dll
|
||||
;File ..\bin\Plugins\CDVDnull.dll
|
||||
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
|
||||
|
||||
|
||||
|
|
|
@ -7,9 +7,11 @@ Function .onInit
|
|||
;prepare Advanced Uninstall log always within .onInit function
|
||||
!insertmacro UNINSTALL.LOG_PREPARE_INSTALL
|
||||
|
||||
; MORE UAC HELL ---------- >
|
||||
;call IsUserAdmin
|
||||
|
||||
!include WinVer.nsh
|
||||
${IfNot} ${AtLeastWinVista}
|
||||
MessageBox MB_OK "Your operating system is unsupported by PCSX2. Please upgrade your operating system or install PCSX2 1.4.0."
|
||||
Quit
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function .onInstSuccess
|
||||
|
@ -69,6 +71,11 @@ Section "Un.Program and Plugins ${APP_NAME}"
|
|||
; otherwise, pcsx2 will be "confused" if it's re-installed later.
|
||||
DeleteRegKey HKLM Software\PCSX2
|
||||
|
||||
; Please note that pointing to HKCU here is intentional. It is the only key generated by PCSX2 and *not* NSIS!
|
||||
; The key stores configuration data used by the First Time Wizard (check AppConfig.cpp for details) such as DocumentsFolderMode, ect.
|
||||
; Failure to delete this key can result in configuration errors
|
||||
DeleteRegKey HKCU Software\PCSX2
|
||||
|
||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR"
|
||||
|
||||
; Remove uninstaller info reg key ( Wow6432Node on 64bit Windows! )
|
||||
|
@ -79,7 +86,6 @@ Section "Un.Program and Plugins ${APP_NAME}"
|
|||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Langs"
|
||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Plugins"
|
||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Docs"
|
||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Cheats"
|
||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Shaders"
|
||||
; Remove files and registry key that store PCSX2 paths configurations
|
||||
SetShellVarContext current
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
|
||||
!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
|
||||
|
|
|
@ -5,15 +5,13 @@
|
|||
; Copyright 2009-2016 PCSX2 Dev Team
|
||||
;
|
||||
|
||||
!ifndef INC_LANGS
|
||||
!define INC_LANGS 1
|
||||
!endif
|
||||
|
||||
!ifndef INC_CRT_2015
|
||||
; Set to 0 to disable inclusion of Visual Studio 2013 SP1 CRT Redists
|
||||
!define INC_CRT_2015 1
|
||||
!endif
|
||||
|
||||
ManifestDPIAware true
|
||||
ShowInstDetails nevershow
|
||||
ShowUninstDetails nevershow
|
||||
|
||||
|
@ -46,7 +44,6 @@ ShowUninstDetails nevershow
|
|||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
!include "ApplyExeProps.nsh"
|
||||
!include "SharedRedtape.nsh"
|
||||
|
||||
; =======================================================================
|
||||
; Installer Sections
|
||||
|
@ -64,42 +61,41 @@ SectionEnd
|
|||
Function UninstallPrevious
|
||||
;Check for uninstaller.
|
||||
ReadRegStr $R0 HKLM "${INSTDIR_REG_KEY}" "UninstallString"
|
||||
${If} $R0 == ""
|
||||
${If} $R0 == ""
|
||||
Goto Done
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
;Check if any other version is installed
|
||||
ReadRegStr $R1 HKLM "${INSTDIR_REG_KEY}" "InstalledVersion"
|
||||
|
||||
;This check for older versions (pre 1.6.0) without InstalledVersion string will bypass this section
|
||||
${If} $R1 == ""
|
||||
${If} $R1 == ""
|
||||
DetailPrint "InstalledVersion string not found, skipping version check"
|
||||
Goto Done
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
;Installing same version
|
||||
${If} $R1 S== ${APP_VERSION}
|
||||
MessageBox MB_ICONEXCLAMATION|MB_OKCANCEL "This version of PCSX2 is already installed. Do you want to continue?" IDOK true IDCANCEL false
|
||||
true:
|
||||
${If} $R1 S== ${APP_VERSION}
|
||||
MessageBox MB_ICONEXCLAMATION|MB_OKCANCEL "This version of PCSX2 is already installed. Do you want to continue?" IDCANCEL false
|
||||
DetailPrint "Overwriting current install"
|
||||
Goto Done
|
||||
false:
|
||||
Quit
|
||||
${Else}
|
||||
${Else}
|
||||
DetailPrint "Not the same version"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
;Installing newer version (and old version is detected)
|
||||
${If} $R1 S< ${APP_VERSION}
|
||||
${If} $R1 S< ${APP_VERSION}
|
||||
MessageBox MB_ICONEXCLAMATION|MB_OKCANCEL "An older version of PCSX2 is installed. Do you want to uninstall it?" IDOK true2 IDCANCEL false2
|
||||
true2:
|
||||
DetailPrint "Uninstalling old PCSX2 version"
|
||||
Goto Next
|
||||
false2:
|
||||
Quit
|
||||
${Else}
|
||||
${Else}
|
||||
DetailPrint "Not installing a new version"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
;Run the uninstaller silently.
|
||||
Next:
|
||||
|
@ -137,14 +133,8 @@ Section "!${APP_NAME} (required)" SEC_CORE
|
|||
File /nonfatal ..\bin\Plugins\gsdx32-sse4.dll
|
||||
File /nonfatal ..\bin\Plugins\gsdx32-avx.dll
|
||||
File /nonfatal ..\bin\Plugins\gsdx32-avx2.dll
|
||||
;File /nonfatal ..\bin\Plugins\zerogs.dll
|
||||
|
||||
File /nonfatal ..\bin\Plugins\spu2-x.dll
|
||||
;File /nonfatal ..\bin\Plugins\zerospu2.dll
|
||||
|
||||
;File /nonfatal ..\bin\Plugins\cdvdiso.dll
|
||||
File ..\bin\Plugins\cdvdGigaherz.dll
|
||||
|
||||
File /nonfatal ..\bin\Plugins\cdvdGigaherz.dll
|
||||
File /nonfatal ..\bin\Plugins\lilypad.dll
|
||||
File /nonfatal ..\bin\Plugins\padPokopom.dll
|
||||
|
||||
|
@ -157,14 +147,11 @@ SectionEnd
|
|||
!include "SectionShortcuts.nsh"
|
||||
|
||||
Section "Additional Languages" SEC_LANGS
|
||||
!if ${INC_LANGS} > 0
|
||||
SetOutPath $INSTDIR\Langs
|
||||
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
|
||||
File /nonfatal /r ..\bin\Langs\*.mo
|
||||
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
|
||||
|
||||
!endif
|
||||
SectionEnd
|
||||
SectionEnd
|
||||
|
||||
SectionGroup "DirectX Packages (required for PCSX2)" SEC_DXPACKS
|
||||
!if ${INC_CRT_2015} > 0
|
||||
|
@ -244,12 +231,8 @@ LangString DESC_DIRECTX ${LANG_ENGLISH} "Only uncheck this if you are quite c
|
|||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CORE} $(DESC_CORE)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_STARTMENU} $(DESC_STARTMENU)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DESKTOP} $(DESC_DESKTOP)
|
||||
|
||||
!if ${INC_LANGS} > 0
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_LANGS} $(DESC_LANGS)
|
||||
!endif
|
||||
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DXPACKS} $(DESC_DXPACKS)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DXPACKS} $(DESC_DXPACKS)
|
||||
|
||||
!if ${INC_CRT_2015} > 0
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_CRT2015} $(DESC_CRT2015)
|
||||
|
|
Loading…
Reference in New Issue