2010-05-29 16:24:26 +00:00
|
|
|
; =======================================================================
|
|
|
|
; Un.Installer Sections
|
|
|
|
; =======================================================================
|
|
|
|
; (currently web and main installers share the same uninstaller behavior. This
|
|
|
|
; may change in the future, though I doubt it.)
|
|
|
|
|
|
|
|
; -----------------------------------------------------------------------
|
2011-03-29 17:55:48 +00:00
|
|
|
Section "Un.Program and Plugins ${APP_NAME}"
|
2010-05-29 16:24:26 +00:00
|
|
|
|
|
|
|
SetShellVarContext all
|
2012-06-06 14:55:15 +00:00
|
|
|
; First thing, remove the registry entry in case uninstall doesn't complete successfully
|
|
|
|
; otherwise, pcsx2 will be "confused" if it's re-installed later.
|
|
|
|
DeleteRegKey HKCU Software\PCSX2
|
2010-05-29 16:24:26 +00:00
|
|
|
|
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR"
|
|
|
|
|
2011-03-29 17:55:48 +00:00
|
|
|
; Remove uninstaller info reg key ( Wow6432Node on 64bit Windows! )
|
2010-05-29 16:24:26 +00:00
|
|
|
DeleteRegKey HKLM "${INSTDIR_REG_KEY}"
|
|
|
|
|
|
|
|
Call un.removeShorties
|
|
|
|
|
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Langs"
|
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Plugins"
|
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Docs"
|
2010-09-28 22:02:42 +00:00
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Cheats"
|
2015-12-20 01:55:17 +00:00
|
|
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Shaders"
|
2011-03-29 17:55:48 +00:00
|
|
|
; Remove files and registry key that store PCSX2 paths configurations
|
|
|
|
SetShellVarContext current
|
|
|
|
Delete $DOCUMENTS\PCSX2\inis\PCSX2_ui.ini
|
2010-05-29 16:24:26 +00:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
2011-03-29 17:55:48 +00:00
|
|
|
; /o for optional and unticked by default
|
2012-06-06 14:55:15 +00:00
|
|
|
Section /o "Un.Configuration files (Program and Plugins)"
|
|
|
|
|
|
|
|
SetShellVarContext current
|
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\inis\"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
; /o for optional and unticked by default
|
|
|
|
Section /o "Un.User files (Memory Cards, Savestates, etc)"
|
2011-03-28 22:05:10 +00:00
|
|
|
|
2010-05-29 16:24:26 +00:00
|
|
|
SetShellVarContext current
|
2014-01-26 18:00:14 +00:00
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\Cheats_ws\"
|
2015-12-20 01:55:17 +00:00
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\cheats\"
|
2011-03-28 22:05:10 +00:00
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\inis\"
|
2012-06-06 14:55:15 +00:00
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\logs\"
|
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\memcards\"
|
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\snaps\"
|
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\sstates\"
|
2011-03-28 22:05:10 +00:00
|
|
|
|
2010-05-29 16:24:26 +00:00
|
|
|
SectionEnd
|
2011-03-29 17:55:48 +00:00
|
|
|
|
|
|
|
; /o for optional and unticked by default
|
2012-06-06 14:55:15 +00:00
|
|
|
Section /o "Un.BIOS files"
|
2011-03-29 17:55:48 +00:00
|
|
|
|
|
|
|
SetShellVarContext current
|
2012-06-06 14:55:15 +00:00
|
|
|
RMDir /r "$DOCUMENTS\PCSX2\bios\"
|
2011-03-29 17:55:48 +00:00
|
|
|
|
|
|
|
SectionEnd
|