From 141a2cd77afef6bef66385557ea15ada17279d9b Mon Sep 17 00:00:00 2001 From: Peter Siering Date: Sun, 4 Dec 2022 15:34:47 +0100 Subject: [PATCH] Change URL, download type (setup instead of exe) and handling of those --- .../Applications/Malware Removal/AVZ.script | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Projects/PhoenixPE/Applications/Malware Removal/AVZ.script b/Projects/PhoenixPE/Applications/Malware Removal/AVZ.script index ee2e63d..56f9a90 100644 --- a/Projects/PhoenixPE/Applications/Malware Removal/AVZ.script +++ b/Projects/PhoenixPE/Applications/Malware Removal/AVZ.script @@ -33,26 +33,22 @@ Title=AVZ Description=AVZ is a free tool for scanning your computer and running a script that quarantines or deletes files that are considered suspicious. Author=Homes32 Level=5 -Selected=False +Selected=True Mandatory=False -Version=1.0.0.0 -Date=2020-04-07 +Version=1.0.1.0 +Date=2022-12-04 [Variables] %ProgramFolder%="AVZ" -%ProgramExe%="avz5.exe" -%DownloadURL%=http://media.kaspersky.com/utilities/ConsumerUtilities/avz5.exe +%ProgramExe%="avz5rn.exe" +%SetupFile%=avz5.zip +%DownloadURL%=https://media.kaspersky.com/utilities/ConsumerUtilities/%SetupFile% [Process] Echo,"Processing %ScriptTitle%..." If,%cb_RunFromRam%,Equal,True,RunFromRam - -/////////////////////////////////////////////////////////////////////////////////// -// Extract -If,%cb_AlwaysDownload%,Equal,True,DirDeleteEx,"%ProgramsCache%\%ProgramFolder%" -If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,DownloadProgram -FileCopy,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%","%TargetPrograms%\%ProgramFolder%\%ProgramExe%" +Run,%ScriptFile%,ExtractProgram /////////////////////////////////////////////////////////////////////////////////// // Shortcuts @@ -62,6 +58,11 @@ If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%" If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%" +[ExtractProgram] +If,%cb_AlwaysDownload%,Equal,True,DirDeleteEx,"%ProgramsCache%\%ProgramFolder%" +If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",Run,%ScriptFile%,DownloadProgram +7z,"x -r #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q -y -o#$q%TargetPrograms%\%ProgramFolder%#$q" + [#DownloadProgram#] // =============================================================================================================================== // Name...........: DownloadProgram @@ -75,7 +76,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog // =============================================================================================================================== [DownloadProgram] Echo,"Downloading %ScriptTitle%..." -WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",NOERR +WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR If,Not,#r,Equal,200,Halt,"Download [%ProgramExe%] failed: The code returned was [#r]." [#LaunchProgram#] @@ -91,9 +92,8 @@ If,Not,#r,Equal,200,Halt,"Download [%ProgramExe%] failed: The code returned was // =============================================================================================================================== [LaunchProgram] Echo,"Launching %ScriptTitle%..." -If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,DownloadProgram -FileCopy,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%","%ProjectTemp%\%ProgramFolder%\%ProgramExe%" -ShellExecuteEx,Open,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%" +If,Not,ExistFile,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,ExtractProgram +ShellExecuteEx,Open,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%" [#ClearDownloadCache#] // ===============================================================================================================================