From d91bcf2bbcb1324413e729eb8f4fd9402752c17a Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Thu, 13 May 2010 20:22:00 +0000 Subject: [PATCH] Few more installer fixes. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2998 96395faa-99c1-11dd-bbfe-3dabce05a288 --- nsis/pcsx2_installer_script.nsi | 22 ++++++++++++++-------- pcsx2/gui/Panels/DirPickerPanel.cpp | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/nsis/pcsx2_installer_script.nsi b/nsis/pcsx2_installer_script.nsi index 2cb5fa6291..5a5d9fa1f2 100644 --- a/nsis/pcsx2_installer_script.nsi +++ b/nsis/pcsx2_installer_script.nsi @@ -4,6 +4,9 @@ ; Application version, changed for each release to match the version +; Always include plugins for now +!define INC_PLUGINS + ; ---------------------------------------- ; Determine the revision numbers of the various components @@ -211,11 +214,12 @@ SectionEnd ; Start Menu - Optional section (can be disabled by the user) Section "Start Menu Shortcuts" - SetOutPath "$SMPROGRAMS" - - CreateDirectory "PCSX2" - CreateShortCut "PCSX2\Uninstall ${APP_NAME}.lnk" "${UNINST_EXE}" "" "${UNINST_EXE}" 0 - CreateShortCut "PCSX2\${APP_NAME}.lnk" "${APP_EXE}" "" "${APP_EXE}" 0 + ; CreateShortCut gets the working directory from OutPath + SetOutPath "$INSTDIR" + + CreateDirectory "$SMPROGRAMS\PCSX2" + CreateShortCut "$SMPROGRAMS\PCSX2\Uninstall ${APP_NAME}.lnk" "${UNINST_EXE}" "" "${UNINST_EXE}" 0 + CreateShortCut "$SMPROGRAMS\PCSX2\${APP_NAME}.lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\${APP_EXE}" 0 ;IfFileExists ..\bin\pcsx2-dev.exe 0 +2 ; CreateShortCut "PCSX2\pcsx2-dev-r${SVNREV}.lnk" "$INSTDIR\pcsx2-dev-r${SVNREV}.exe" "" "$INSTDIR\pcsx2-dev-r${SVNREV}.exe" 0 "" "" \ @@ -227,8 +231,10 @@ SectionEnd ; Desktop Icon - Optional section (can be disabled by the user) Section "Desktop Shortcut" - SetOutPath "$DESKTOP" - CreateShortCut "${APP_NAME}.lnk" "${APP_EXE}" "" "${APP_EXE}" 0 "" "" "A Playstation 2 Emulator" + ; CreateShortCut gets the working directory from OutPath + SetOutPath "$INSTDIR" + + CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\${APP_EXE}" 0 "" "" "A Playstation 2 Emulator" SectionEnd @@ -362,7 +368,7 @@ Section "Un.Full Removal (completely removes all PCSX2 program files and folders RMDir /r "$INSTDIR" Call un.removeShorties - ; Killt he entire PCSX2 registry key, along with installer junk. + ; Kill the entire PCSX2 registry key, along with installer junk. DeleteRegKey HKLM Software\PCSX2 DeleteRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" diff --git a/pcsx2/gui/Panels/DirPickerPanel.cpp b/pcsx2/gui/Panels/DirPickerPanel.cpp index f15ccc5e1b..785d13b3ff 100644 --- a/pcsx2/gui/Panels/DirPickerPanel.cpp +++ b/pcsx2/gui/Panels/DirPickerPanel.cpp @@ -221,7 +221,7 @@ void Panels::DirPickerPanel::Apply() if( !wxDir::Exists( path ) ) { wxDialogWithHelpers dialog( NULL, _("Create folder?"), wxVERTICAL ); - dialog += dialog.Heading( _("A configured folder does not exist. Should PCSX2 to create it?") ); + dialog += dialog.Heading( _("A configured folder does not exist. Should PCSX2 try to create it?") ); dialog += 12; dialog += dialog.Heading( path );