A few fixes to the installer script. Not done yet, but compiles at least.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2990 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-05-12 18:34:31 +00:00
parent 069d1d59b8
commit 25301ec90c
1 changed files with 7 additions and 7 deletions

View File

@ -120,7 +120,7 @@ Section "${APP_NAME} (required)"
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
File /oname=pcsx2-r${SVNREV}.exe ..\bin\pcsx2.exe
File /nonfatal /oname=pcsx2-dev-r${SVNREV}.exe ..\bin\pcsx2-dev.exe
File ..\bin\w32pthreads.v2.dll
File ..\bin\w32pthreads.v4.dll
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
; -- Languages and Patches --
@ -235,7 +235,7 @@ FunctionEnd
; --------------------------------------
; Uninstaller
Function .removeShorties
Function un.removeShorties
; Remove shortcuts, if any
Delete "$SMPROGRAMS\pcsx2\${UNINST_EXE}-r${SVNREV}.lnk"
@ -250,7 +250,7 @@ FunctionEnd
; Languages, patches, and null plugins should only be removed if all previous versions of
; PCSX2 have been uninstalled. And we know that's happened when the pcsx2\versions registry
; key is empty.
Function .removeSharedJunk
Function un.removeSharedJunk
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Langs"
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Patches"
@ -273,9 +273,9 @@ Section "Un.Basic Removal (removes only files installed by this package) ${APP_N
!insertmacro UNINSTALL.LOG_END_UNINSTALL
; Remove registry keys
DeleteRegKey HKLM ${INSTDIR_REG_KEY}
DeleteRegKey HKLM "${INSTDIR_REG_KEY}"
Call .removeShorties
Call un.removeShorties
DeleteRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}"
@ -285,13 +285,13 @@ Section "Un.Basic Removal (removes only files installed by this package) ${APP_N
SectionEnd
Section Un.Full Removal (completely removes all PCSX2 program files and folders)
Section "Un.Full Removal (completely removes all PCSX2 program files and folders)"
MessageBox MB_YESNO "WARNING! This will remove *all* files in $INSTDIR -- are you sure you want to proceed?" IDYES true IDNO false
true:
RMDir /r "$INSTDIR"
Call .removeShorties
Call un.removeShorties
DeleteRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}"
DeleteRegKey HKLM Software\pcsx2