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.
|
||||
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#]
|
||||
// ===============================================================================================================================
|
||||
|
Reference in New Issue
Block a user