From 6ad7779aa3af34ae764eea3e06360d49bf82c87a Mon Sep 17 00:00:00 2001 From: heebijeebi Date: Sat, 24 Dec 2016 14:53:20 +0100 Subject: [PATCH] Enhanced: Cleanup of old Patcher files --- LatestVersion.ini | 2 +- project/JobsPatcher.au3 | 3 ++- project/Patcher.au3 | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/LatestVersion.ini b/LatestVersion.ini index 57f47a6..27c42e6 100644 --- a/LatestVersion.ini +++ b/LatestVersion.ini @@ -1,4 +1,4 @@ [Updater] MainApp=16.12.24 -URL=http://www73.zippyshare.com/d/swSe3xxr/2685622/WinTango-Patcher-16.12.24-offline.exe +URL=http://www49.zippyshare.com/d/HRggBDjI/2515459/WinTango-Patcher-16.12.24-offline.exe URL2=https://github.com/heebijeebi/WinTango-Patcher/releases/download/v16.12.24/WinTango-Patcher-16.12.24-offline.exe diff --git a/project/JobsPatcher.au3 b/project/JobsPatcher.au3 index 7fb1b7a..c09e690 100644 --- a/project/JobsPatcher.au3 +++ b/project/JobsPatcher.au3 @@ -25,7 +25,7 @@ Func ExtractResources() ;use the above ElseIf $SelectedTheme = "cheser" or $SelectedTheme = "gnome-brave" or $SelectedTheme = "elementary" Then - $sResFileLocal2 = @ScriptDir & '\Themes\res-' & $SelectedTheme & '.7z' + $sResFileLocal4 = @ScriptDir & '\Themes\res-' & $SelectedTheme & '.7z' Else ;2nd base images @@ -945,6 +945,7 @@ EndFunc Func PostInstall() + ;Cleanup FileDelete($ToolsDir & "\ResHacker.ini") DirRemove(@DesktopDir & "\Override", 1) diff --git a/project/Patcher.au3 b/project/Patcher.au3 index 8efb6f3..04bcc6f 100644 --- a/project/Patcher.au3 +++ b/project/Patcher.au3 @@ -377,12 +377,21 @@ Func _PreInstall() EndFunc Func _CleanupOld() + ;since v16.01.07 FileDelete(@ScriptDir & "\images.dll") FileDelete(@ScriptDir & "\Readme.pdf") FileDelete($ToolsDir & "\OpaqueTaskbar*.*") FileDelete($ToolsDir & "\UXThemePatchers.txt") FileDelete($ToolsDir & "\UltraUXThemePatcher_*.exe") FileDelete($ToolsDir & "\UXTheme_Multi-Patcher_*.exe") + ;since v16.12.24 + FileDelete(@ScriptDir & "\Themes\files-desktops-*.7z") + FileDelete(@ScriptDir & "\Themes\files-notepad2-*.7z") + FileDelete(@ScriptDir & "\Themes\images-*.7z") + FileDelete(@ScriptDir & "\Themes\theme-*.7z") + FileDelete(@ScriptDir & "\Themes\icons-*.7z") + FileDelete(@ScriptDir & "\Themes\bitmaps-*.7z") + EndFunc Func Patch()