Some more installer tweaks.
This commit is contained in:
parent
f663dcc75f
commit
1062ecf3ce
Binary file not shown.
@ -128,7 +128,6 @@ ReserveFile "${NSISDIR}\Plugins\StartMenu.dll"
|
|||||||
ReserveFile "${NSISDIR}\Plugins\StdUtils.dll"
|
ReserveFile "${NSISDIR}\Plugins\StdUtils.dll"
|
||||||
ReserveFile "${NSISDIR}\Plugins\System.dll"
|
ReserveFile "${NSISDIR}\Plugins\System.dll"
|
||||||
ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
|
ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
|
||||||
ReserveFile "checkproc.exe"
|
|
||||||
|
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
@ -338,6 +337,10 @@ UninstPage Custom un.LockedListShow
|
|||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
InitPluginsDir
|
||||||
|
|
||||||
|
; --------
|
||||||
|
|
||||||
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e'
|
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e'
|
||||||
Pop $0
|
Pop $0
|
||||||
${If} $0 <> 0
|
${If} $0 <> 0
|
||||||
@ -400,13 +403,6 @@ Function .onInit
|
|||||||
SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
|
SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
|
||||||
Quit
|
Quit
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; --------
|
|
||||||
|
|
||||||
InitPluginsDir
|
|
||||||
File "/oname=$PLUGINSDIR\checkproc.exe" "checkproc.exe"
|
|
||||||
nsExec::Exec /TIMEOUT=5000 '"$PLUGINSDIR\checkproc.exe" Softonic Brothersoft Afreecodec'
|
|
||||||
Pop $0
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function un.onInit
|
Function un.onInit
|
||||||
@ -504,6 +500,36 @@ FunctionEnd
|
|||||||
EnableWindow ${TmpVar} 0
|
EnableWindow ${TmpVar} 0
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
|
!macro CleanUpFiles options
|
||||||
|
Delete ${options} "$INSTDIR\Changelog.htm"
|
||||||
|
Delete ${options} "$INSTDIR\Changelog.html"
|
||||||
|
Delete ${options} "$INSTDIR\Contributors.txt"
|
||||||
|
Delete ${options} "$INSTDIR\Copying.txt"
|
||||||
|
Delete ${options} "$INSTDIR\FAQ.html"
|
||||||
|
Delete ${options} "$INSTDIR\Howto.html"
|
||||||
|
Delete ${options} "$INSTDIR\LameEnc.sys"
|
||||||
|
Delete ${options} "$INSTDIR\LameXP.exe"
|
||||||
|
Delete ${options} "$INSTDIR\LameXP.exe.sig"
|
||||||
|
Delete ${options} "$INSTDIR\LameXP-Portable.exe"
|
||||||
|
Delete ${options} "$INSTDIR\License.txt"
|
||||||
|
Delete ${options} "$INSTDIR\Manual.html"
|
||||||
|
Delete ${options} "$INSTDIR\Readme.htm"
|
||||||
|
Delete ${options} "$INSTDIR\ReadMe.txt"
|
||||||
|
Delete ${options} "$INSTDIR\PRE_RELEASE_INFO.txt"
|
||||||
|
Delete ${options} "$INSTDIR\Settings.cfg"
|
||||||
|
Delete ${options} "$INSTDIR\Translate.html"
|
||||||
|
Delete ${options} "$INSTDIR\Uninstall.exe"
|
||||||
|
Delete ${options} "$INSTDIR\Qt*.dll"
|
||||||
|
Delete ${options} "$INSTDIR\msvcr*.dll"
|
||||||
|
Delete ${options} "$INSTDIR\msvcp*.dll"
|
||||||
|
Delete ${options} "$INSTDIR\concrt*.dll"
|
||||||
|
Delete ${options} "$INSTDIR\vcruntime*.dll"
|
||||||
|
Delete ${options} "$INSTDIR\vccorlib*.dll"
|
||||||
|
|
||||||
|
RMDir /r ${options} "$INSTDIR\img"
|
||||||
|
RMDir /r ${options} "$INSTDIR\imageformats"
|
||||||
|
RMDir /r ${options} "$INSTDIR\redist"
|
||||||
|
!macroend
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Install Files
|
;Install Files
|
||||||
@ -516,35 +542,7 @@ SectionEnd
|
|||||||
|
|
||||||
Section "!Clean Up Old Cruft"
|
Section "!Clean Up Old Cruft"
|
||||||
!insertmacro PrintProgress "$(LAMEXP_LANG_STATUS_CLEANUP)"
|
!insertmacro PrintProgress "$(LAMEXP_LANG_STATUS_CLEANUP)"
|
||||||
|
!insertmacro CleanUpFiles ""
|
||||||
Delete "$INSTDIR\Changelog.htm"
|
|
||||||
Delete "$INSTDIR\Changelog.html"
|
|
||||||
Delete "$INSTDIR\Contributors.txt"
|
|
||||||
Delete "$INSTDIR\Copying.txt"
|
|
||||||
Delete "$INSTDIR\FAQ.html"
|
|
||||||
Delete "$INSTDIR\Howto.html"
|
|
||||||
Delete "$INSTDIR\LameEnc.sys"
|
|
||||||
Delete "$INSTDIR\LameXP.exe"
|
|
||||||
Delete "$INSTDIR\LameXP.exe.sig"
|
|
||||||
Delete "$INSTDIR\LameXP-Portable.exe"
|
|
||||||
Delete "$INSTDIR\License.txt"
|
|
||||||
Delete "$INSTDIR\Manual.html"
|
|
||||||
Delete "$INSTDIR\Readme.htm"
|
|
||||||
Delete "$INSTDIR\ReadMe.txt"
|
|
||||||
Delete "$INSTDIR\PRE_RELEASE_INFO.txt"
|
|
||||||
Delete "$INSTDIR\Settings.cfg"
|
|
||||||
Delete "$INSTDIR\Translate.html"
|
|
||||||
Delete "$INSTDIR\Uninstall.exe"
|
|
||||||
Delete "$INSTDIR\Qt*.dll"
|
|
||||||
Delete "$INSTDIR\msvcr*.dll"
|
|
||||||
Delete "$INSTDIR\msvcp*.dll"
|
|
||||||
Delete "$INSTDIR\concrt*.dll"
|
|
||||||
Delete "$INSTDIR\vcruntime*.dll"
|
|
||||||
Delete "$INSTDIR\vccorlib*.dll"
|
|
||||||
|
|
||||||
RMDir /r "$INSTDIR\img"
|
|
||||||
RMDir /r "$INSTDIR\imageformats"
|
|
||||||
RMDir /r "$INSTDIR\redist"
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "!Install Files"
|
Section "!Install Files"
|
||||||
@ -695,29 +693,8 @@ Section "Uninstall"
|
|||||||
ReadRegStr $R0 HKLM "${MyRegPath}" "ExecutableName"
|
ReadRegStr $R0 HKLM "${MyRegPath}" "ExecutableName"
|
||||||
${IfThen} "$R0" == "" ${|} StrCpy $R0 "LameXP.exe" ${|}
|
${IfThen} "$R0" == "" ${|} StrCpy $R0 "LameXP.exe" ${|}
|
||||||
|
|
||||||
Delete /REBOOTOK "$INSTDIR\LameXP.exe"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\$R0"
|
Delete /REBOOTOK "$INSTDIR\$R0"
|
||||||
Delete /REBOOTOK "$INSTDIR\LameXP-Portable.exe"
|
!insertmacro CleanUpFiles /REBOOTOK
|
||||||
Delete /REBOOTOK "$INSTDIR\LameXP.exe.sig"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\LameXP*"
|
|
||||||
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Changelog.htm"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Changelog.html"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Contributors.txt"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Copying.txt"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\FAQ.html"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Howto.html"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\LameEnc.sys"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\License.txt"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Manual.html"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Readme.htm"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\ReadMe.txt"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\PRE_RELEASE_INFO.txt"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Settings.cfg"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Translate.html"
|
|
||||||
Delete /REBOOTOK "$INSTDIR\Uninstall.exe"
|
|
||||||
|
|
||||||
RMDir /r "$INSTDIR\img"
|
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
; --------------
|
; --------------
|
||||||
|
@ -74,7 +74,7 @@ OutFile "${LAMEXP_OUTPUT_FILE}"
|
|||||||
BrandingText "${LAMEXP_DATE} / Build #${LAMEXP_BUILD}"
|
BrandingText "${LAMEXP_DATE} / Build #${LAMEXP_BUILD}"
|
||||||
Icon "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
|
Icon "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
|
||||||
ChangeUI all "${NSISDIR}\Contrib\UIs\sdbarker_tiny.exe"
|
ChangeUI all "${NSISDIR}\Contrib\UIs\sdbarker_tiny.exe"
|
||||||
ShowInstDetails show
|
ShowInstDetails nevershow
|
||||||
AutoCloseWindow true
|
AutoCloseWindow true
|
||||||
InstallDir ""
|
InstallDir ""
|
||||||
|
|
||||||
@ -137,6 +137,12 @@ Section "-LaunchTheInstaller"
|
|||||||
InitPluginsDir
|
InitPluginsDir
|
||||||
SetOutPath "$PLUGINSDIR"
|
SetOutPath "$PLUGINSDIR"
|
||||||
|
|
||||||
|
${StdUtils.TestParameter} $R0 "Update"
|
||||||
|
${If} "$R0" == "true"
|
||||||
|
SetFileAttributes "$EXEPATH" FILE_ATTRIBUTE_NORMAL
|
||||||
|
SelfDel::del /RMDIR
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
File "/oname=${InstallerFileName}" "${LAMEXP_SOURCE_FILE}"
|
File "/oname=${InstallerFileName}" "${LAMEXP_SOURCE_FILE}"
|
||||||
|
|
||||||
@ -204,6 +210,7 @@ Section "-LaunchTheInstaller"
|
|||||||
SetDetailsPrint listonly
|
SetDetailsPrint listonly
|
||||||
|
|
||||||
SetErrorLevel 1
|
SetErrorLevel 1
|
||||||
|
SetOutPath "$TEMP"
|
||||||
Abort "Aborted."
|
Abort "Aborted."
|
||||||
|
|
||||||
; --------
|
; --------
|
||||||
@ -212,4 +219,5 @@ Section "-LaunchTheInstaller"
|
|||||||
|
|
||||||
Delete /REBOOTOK "${InstallerFileName}"
|
Delete /REBOOTOK "${InstallerFileName}"
|
||||||
SetErrorLevel 0
|
SetErrorLevel 0
|
||||||
|
SetOutPath "$TEMP"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_LO 2
|
#define VER_LAMEXP_MINOR_LO 2
|
||||||
#define VER_LAMEXP_TYPE Beta
|
#define VER_LAMEXP_TYPE Beta
|
||||||
#define VER_LAMEXP_PATCH 4
|
#define VER_LAMEXP_PATCH 4
|
||||||
#define VER_LAMEXP_BUILD 1784
|
#define VER_LAMEXP_BUILD 1785
|
||||||
#define VER_LAMEXP_CONFG 1700
|
#define VER_LAMEXP_CONFG 1700
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user