mirror of https://github.com/PCSX2/pcsx2.git
NSIS Installer: disabled the vc-redist check since it's buggy or something, and fixed the desktop shortcut link.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3017 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
5ec274ca0a
commit
3b2dbb8c6f
|
@ -238,10 +238,10 @@ Section "${APP_NAME} (required)"
|
||||||
WriteRegStr HKLM Software\PCSX2 "Install_Dir" "$INSTDIR"
|
WriteRegStr HKLM Software\PCSX2 "Install_Dir" "$INSTDIR"
|
||||||
|
|
||||||
; Write the uninstall keys for Windows
|
; Write the uninstall keys for Windows
|
||||||
WriteRegStr HKLM "${INSTDIR_REG_KEY}" "DisplayName" "PCSX2 - Playstation 2 Emulator"
|
WriteRegStr HKLM "${INSTDIR_REG_KEY}" "DisplayName" "PCSX2 - Playstation 2 Emulator"
|
||||||
WriteRegStr HKLM "${INSTDIR_REG_KEY}" "UninstallString" "${UNINST_EXE}"
|
WriteRegStr HKLM "${INSTDIR_REG_KEY}" "UninstallString" "${UNINST_EXE}"
|
||||||
WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoModify" 1
|
WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoModify" 1
|
||||||
WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoRepair" 1
|
WriteRegDWORD HKLM "${INSTDIR_REG_KEY}" "NoRepair" 1
|
||||||
WriteUninstaller "${UNINST_EXE}"
|
WriteUninstaller "${UNINST_EXE}"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
@ -270,7 +270,7 @@ Section "Desktop Shortcut"
|
||||||
; CreateShortCut gets the working directory from OutPath
|
; CreateShortCut gets the working directory from OutPath
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\${APP_EXE}" 0 "" "" "A Playstation 2 Emulator"
|
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "${APP_EXE}" "" "${APP_EXE}" 0 "" "" "A Playstation 2 Emulator"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
@ -283,14 +283,21 @@ Section "Microsoft Visual C++ 2008 SP1 Redist (required)"
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
SetOutPath "$TEMP"
|
SetOutPath "$TEMP"
|
||||||
|
|
||||||
File "vcredist_x86.exe"
|
File "vcredist_x86.exe"
|
||||||
Call CheckVCRedist
|
|
||||||
StrCmp $R0 "-1" skipRedist
|
|
||||||
ExecWait "$TEMP\vcredist_x86.exe"
|
|
||||||
|
|
||||||
skipRedist:
|
; For some reason the redist check isn't reliable on some fresh XP installs? Whatever, we can
|
||||||
DetailPrint "Visual C++ 2008 SP1 Redistributable already installed, skipping..."
|
; just re-run the stupid thing every time. It'll ask to "modify" or "repair", but until we
|
||||||
|
; get a better solution, this will have to do --air
|
||||||
|
|
||||||
|
;Call CheckVCRedist
|
||||||
|
;StrCmp $R0 "-1" skipRedist
|
||||||
|
ExecWait "$TEMP\vcredist_x86.exe"
|
||||||
|
;Goto done
|
||||||
|
|
||||||
|
;skipRedist:
|
||||||
|
;DetailPrint "Visual C++ 2008 SP1 Redistributable already installed, skipping..."
|
||||||
|
|
||||||
|
;done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
; -----------------------------------------------------------------------
|
; -----------------------------------------------------------------------
|
||||||
|
@ -384,7 +391,6 @@ Section "Un.Core Executables ${APP_NAME}"
|
||||||
|
|
||||||
; Remove registry keys (but only the ones related to the installer -- user options remain)
|
; Remove registry keys (but only the ones related to the installer -- user options remain)
|
||||||
DeleteRegKey HKLM "${INSTDIR_REG_KEY}"
|
DeleteRegKey HKLM "${INSTDIR_REG_KEY}"
|
||||||
DeleteRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}"
|
|
||||||
|
|
||||||
Call un.removeShorties
|
Call un.removeShorties
|
||||||
|
|
||||||
|
@ -401,7 +407,7 @@ Section "Un.Shared Components (DLLs, Languages, etc)"
|
||||||
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Plugins"
|
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Plugins"
|
||||||
|
|
||||||
; Kill the entire PCSX2 registry key.
|
; Kill the entire PCSX2 registry key.
|
||||||
DeleteRegKey HKLM Software\PCSX2
|
DeleteRegKey ${INSTDIR_REG_ROOT} Software\PCSX2
|
||||||
|
|
||||||
false:
|
false:
|
||||||
; User cancelled -- do nothing!!
|
; User cancelled -- do nothing!!
|
||||||
|
|
Loading…
Reference in New Issue