mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
Change URL, download type (setup instead of exe) and handling of those
This commit is contained in:
@@ -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.
|
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
|
Author=Homes32
|
||||||
Level=5
|
Level=5
|
||||||
Selected=False
|
Selected=True
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
Version=1.0.0.0
|
Version=1.0.1.0
|
||||||
Date=2020-04-07
|
Date=2022-12-04
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
%ProgramFolder%="AVZ"
|
%ProgramFolder%="AVZ"
|
||||||
%ProgramExe%="avz5.exe"
|
%ProgramExe%="avz5rn.exe"
|
||||||
%DownloadURL%=http://media.kaspersky.com/utilities/ConsumerUtilities/avz5.exe
|
%SetupFile%=avz5.zip
|
||||||
|
%DownloadURL%=https://media.kaspersky.com/utilities/ConsumerUtilities/%SetupFile%
|
||||||
|
|
||||||
[Process]
|
[Process]
|
||||||
Echo,"Processing %ScriptTitle%..."
|
Echo,"Processing %ScriptTitle%..."
|
||||||
|
|
||||||
If,%cb_RunFromRam%,Equal,True,RunFromRam
|
If,%cb_RunFromRam%,Equal,True,RunFromRam
|
||||||
|
Run,%ScriptFile%,ExtractProgram
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// 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%"
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
// Shortcuts
|
// 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_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,"%PEPrograms%\%ProgramFolder%\%ProgramExe%"
|
||||||
If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,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#]
|
[#DownloadProgram#]
|
||||||
// ===============================================================================================================================
|
// ===============================================================================================================================
|
||||||
// Name...........: DownloadProgram
|
// Name...........: DownloadProgram
|
||||||
@@ -75,7 +76,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
|
|||||||
// ===============================================================================================================================
|
// ===============================================================================================================================
|
||||||
[DownloadProgram]
|
[DownloadProgram]
|
||||||
Echo,"Downloading %ScriptTitle%..."
|
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]."
|
If,Not,#r,Equal,200,Halt,"Download [%ProgramExe%] failed: The code returned was [#r]."
|
||||||
|
|
||||||
[#LaunchProgram#]
|
[#LaunchProgram#]
|
||||||
@@ -91,9 +92,8 @@ If,Not,#r,Equal,200,Halt,"Download [%ProgramExe%] failed: The code returned was
|
|||||||
// ===============================================================================================================================
|
// ===============================================================================================================================
|
||||||
[LaunchProgram]
|
[LaunchProgram]
|
||||||
Echo,"Launching %ScriptTitle%..."
|
Echo,"Launching %ScriptTitle%..."
|
||||||
If,Not,ExistFile,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,DownloadProgram
|
If,Not,ExistFile,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%",Run,%ScriptFile%,ExtractProgram
|
||||||
FileCopy,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%","%ProjectTemp%\%ProgramFolder%\%ProgramExe%"
|
ShellExecuteEx,Open,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%"
|
||||||
ShellExecuteEx,Open,"%ProjectTemp%\%ProgramFolder%\%ProgramExe%"
|
|
||||||
|
|
||||||
[#ClearDownloadCache#]
|
[#ClearDownloadCache#]
|
||||||
// ===============================================================================================================================
|
// ===============================================================================================================================
|
||||||
|
Reference in New Issue
Block a user