From: lordmulder Date: Sat, 8 Oct 2011 20:58:11 +0000 (+0200) Subject: More installer clean-up. X-Git-Tag: Release_403~37 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7c5ef4ca585950a30d5a2e1380913fd72dd85e64;p=lamexp%2FLameXP.git More installer clean-up. --- diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index 4dd6b7d4..944550f5 100644 --- a/etc/NSIS/setup.nsi +++ b/etc/NSIS/setup.nsi @@ -106,13 +106,15 @@ SetCompressorDictSize 64 ;Reserved Files ;-------------------------------- -ReserveFile "${NSISDIR}\Plugins\System.dll" -ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" ReserveFile "${NSISDIR}\Plugins\Aero.dll" -ReserveFile "${NSISDIR}\Plugins\StdUtils.dll" +ReserveFile "${NSISDIR}\Plugins\LangDLL.dll" +ReserveFile "${NSISDIR}\Plugins\LockedList.dll" ReserveFile "${NSISDIR}\Plugins\nsDialogs.dll" +ReserveFile "${NSISDIR}\Plugins\nsExec.dll" ReserveFile "${NSISDIR}\Plugins\StartMenu.dll" -ReserveFile "${NSISDIR}\Plugins\LockedList.dll" +ReserveFile "${NSISDIR}\Plugins\StdUtils.dll" +ReserveFile "${NSISDIR}\Plugins\System.dll" +ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" ReserveFile "checkproc.exe" @@ -469,7 +471,8 @@ SectionEnd Section "-Finished" !insertmacro PrintProgress "$(MUI_TEXT_FINISH_TITLE)." - + ${StdUtils.Unload} + ; ---- POLL ---- ; !insertmacro UAC_AsUser_ExecShell "" "http://mulder.brhack.net/temp/style_poll/" "" "" SW_SHOWNORMAL ; ---- POLL ---- diff --git a/etc/NSIS/wrapper.nsi b/etc/NSIS/wrapper.nsi index 0f559e63..8008dca1 100644 --- a/etc/NSIS/wrapper.nsi +++ b/etc/NSIS/wrapper.nsi @@ -48,9 +48,6 @@ !error "LAMEXP_UPX_PATH is not defined !!!" !endif -;UUID -!define MyRegPath "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FBD7A67D-D700-4043-B54F-DD106D00F308}" - ;Web-Site !define MyWebSite "http://mulder.at.gg/" @@ -159,49 +156,46 @@ Section "-LaunchTheInstaller" RunTryAgain: - DetailPrint "Exec: $PLUGINSDIR\LameXP-Install.exe" - StdUtils::ExecShellWait /NOUNLOAD '$R9' "open" "$PLUGINSDIR\LameXP-Install.exe" - Pop $R1 + DetailPrint "ExecShellWait: $PLUGINSDIR\LameXP-Install.exe" + ${StdUtils.ExecShellWait} $R1 "$PLUGINSDIR\LameXP-Install.exe" "open" '$R9' DetailPrint "Result: $R1" StrCmp $R1 "error" RunFailed StrCmp $R1 "no_wait" RunSuccess Sleep 333 HideWindow - StdUtils::WaitForProc /NOUNLOAD $R1 + ${StdUtils.WaitForProc} $R1 Goto RunSuccess ; -------- RunFailed: - MessageBox MB_ABORTRETRYIGNORE|MB_DEFBUTTON2|MB_ICONSTOP|MB_TOPMOST "Failed to launch the installer. Please try again!" IDRETRY RunTryAgain IDIGNORE RunFallback + MessageBox MB_RETRYCANCEL|MB_DEFBUTTON2|MB_ICONSTOP|MB_TOPMOST "Failed to launch the installer. Please try again!" IDRETRY RunTryAgain - SetDetailsPrint both - DetailPrint "Failed to launch installer :-(" - SetDetailsPrint listonly - - StdUtils::Unload - Abort "Aborted." - ; -------- - RunFallback: - ClearErrors ExecShell "open" "$PLUGINSDIR\LameXP-Install.exe" '$R9' SW_SHOWNORMAL IfErrors 0 RunSuccess - + ClearErrors ExecShell "" "$PLUGINSDIR\LameXP-Install.exe" '$R9' SW_SHOWNORMAL IfErrors 0 RunSuccess - Goto RunFailed - + ; -------- + + SetDetailsPrint both + DetailPrint "Failed to launch installer :-(" + SetDetailsPrint listonly + + ${StdUtils.Unload} + Abort "Aborted." + ; -------- RunSuccess: Delete /REBOOTOK "$PLUGINSDIR\LameXP-Install.exe" - StdUtils::Unload + ${StdUtils.Unload} SectionEnd diff --git a/src/Config.h b/src/Config.h index 8d037cd5..236aae51 100644 --- a/src/Config.h +++ b/src/Config.h @@ -30,7 +30,7 @@ #define VER_LAMEXP_MINOR_LO 3 #define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_PATCH 3 -#define VER_LAMEXP_BUILD 722 +#define VER_LAMEXP_BUILD 723 /////////////////////////////////////////////////////////////////////////////// // Tools versions