OSDN Git Service

Clean-up installer script.
authorlordmulder <mulder2@gmx.de>
Sat, 8 Oct 2011 17:34:24 +0000 (19:34 +0200)
committerlordmulder <mulder2@gmx.de>
Sat, 8 Oct 2011 17:34:24 +0000 (19:34 +0200)
etc/NSIS/setup.nsi
src/Config.h

index 7c30405..4dd6b7d 100644 (file)
@@ -382,47 +382,10 @@ Function _CreateWebLink
        SetFileAttributes "$0" FILE_ATTRIBUTE_READONLY
 FunctionEnd
 
-!macro TrimStr VarName
-       Push ${VarName}
-       Call _TrimStr
-       Pop ${VarName}
-!macroend
-
-Function _TrimStr
-       Exch $R1
-       Push $R2
-       TrimLoop1:
-       StrCpy $R2 "$R1" 1
-       StrCmp "$R2" " " TrimLeft
-       StrCmp "$R2" "$\r" TrimLeft
-       StrCmp "$R2" "$\n" TrimLeft
-       StrCmp "$R2" "$\t" TrimLeft
-       Goto TrimLoop2
-       TrimLeft:       
-       StrCpy $R1 "$R1" "" 1
-       Goto TrimLoop1
-       TrimLoop2:
-       StrCpy $R2 "$R1" 1 -1
-       StrCmp "$R2" " " TrimRight
-       StrCmp "$R2" "$\r" TrimRight
-       StrCmp "$R2" "$\n" TrimRight
-       StrCmp "$R2" "$\t" TrimRight
-       Goto TrimDone
-       TrimRight:      
-       StrCpy $R1 "$R1" -1
-       Goto TrimLoop2
-       TrimDone:
-       Pop $R2
-       Exch $R1
-FunctionEnd
-
 !macro GetExecutableName OutVar
        ${StdUtils.GetParameter} ${OutVar} "Update" ""
-       StrCmp ${OutVar} "" 0 +2
-       StrCpy ${OutVar} "LameXP.exe"
+       ${StdUtils.TrimStr} ${OutVar}
+       ${IfThen} "${OutVar}" == "" ${|} StrCpy ${OutVar} "LameXP.exe" ${|}
 !macroend
 
 !macro DisableNextButton TmpVar
index c37d68f..8d037cd 100644 (file)
@@ -30,7 +30,7 @@
 #define VER_LAMEXP_MINOR_LO                                    3
 #define VER_LAMEXP_TYPE                                                Beta
 #define VER_LAMEXP_PATCH                                       3
-#define VER_LAMEXP_BUILD                                       721
+#define VER_LAMEXP_BUILD                                       722
 
 ///////////////////////////////////////////////////////////////////////////////
 // Tools versions