From 306bc9ce59fd9d73325db33ecfec4312be08a689 Mon Sep 17 00:00:00 2001 From: Homes32 Date: Sat, 24 Dec 2022 18:39:36 -0600 Subject: [PATCH] BugFixs: - Fixed an issue with AcronisTrueImage that could occur if drivers already existed in the target. - Fixed an issue with AcronisCyberProtect that could occur if drivers already existed in the target. - Fixed an issue with the DiskCyptor script where drivers were not correctly renamed after extraction. --- .../AcronisCyberProtectHomeOffice.script | 6 ++++-- .../Backup & Imaging/AcronisTrueImage.script | 6 ++++-- .../Applications/Encryption/DiskCryptor.script | 10 +++++----- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisCyberProtectHomeOffice.script b/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisCyberProtectHomeOffice.script index d9177c9..cc0a9e8 100644 --- a/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisCyberProtectHomeOffice.script +++ b/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisCyberProtectHomeOffice.script @@ -35,8 +35,8 @@ Author=Homes32 Level=5 Selected=False Mandatory=False -Version=1.0.0.0 -Date=2022-09-18 +Version=1.0.1.0 +Date=2022-12-24 Interface=Interface [Variables] @@ -293,6 +293,7 @@ If,%SourceArch%,Equal,x64,Begin If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\Drivers\snapapint64.bin -o#$q%TargetSystem32%\#$q" If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." + If,ExistFile,"%TargetSystem32%\snapapint64.dll",FileDeleteEx,"%TargetSystem32%\snapapint64.dll" FileRename,"%TargetSystem32%\snapapint64.bin","%TargetSystem32%\snapapint64.dll" End Else,Begin @@ -311,6 +312,7 @@ Else,Begin If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\Drivers\snapapint.bin -o#$q%TargetSystem32%\#$q" If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." + If,ExistFile,"%TargetSystem32%\snapapint.dll",FileDeleteEx,"%TargetSystem32%\snapapint.dll" FileRename,"%TargetSystem32%\snapapint.bin","%TargetSystem32%\snapapint.dll" End diff --git a/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisTrueImage.script b/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisTrueImage.script index 69ffaf8..073b570 100644 --- a/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisTrueImage.script +++ b/Projects/PhoenixPE/Applications/Backup & Imaging/AcronisTrueImage.script @@ -38,8 +38,8 @@ Author=Homes32 Level=5 Selected=False Mandatory=False -Version=1.0.1.0 -Date=2022-07-31 +Version=1.0.2.0 +Date=2022-12-24 Interface=Interface [Variables] @@ -296,6 +296,7 @@ If,%SourceArch%,Equal,x64,Begin If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\Drivers\snapapint64.bin -o#$q%TargetSystem32%\#$q" If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." + If,ExistFile,"%TargetSystem32%\snapapint64.dll",FileDeleteEx,"%TargetSystem32%\snapapint64.dll" FileRename,"%TargetSystem32%\snapapint64.bin","%TargetSystem32%\snapapint64.dll" End Else,Begin @@ -314,6 +315,7 @@ Else,Begin If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\Drivers\snapapint.bin -o#$q%TargetSystem32%\#$q" If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." + If,ExistFile,"%TargetSystem32%\snapapint.dll",FileDeleteEx,"%TargetSystem32%\snapapint.dll" FileRename,"%TargetSystem32%\snapapint.bin","%TargetSystem32%\snapapint.dll" End diff --git a/Projects/PhoenixPE/Applications/Encryption/DiskCryptor.script b/Projects/PhoenixPE/Applications/Encryption/DiskCryptor.script index 30e778e..c5a7c7b 100644 --- a/Projects/PhoenixPE/Applications/Encryption/DiskCryptor.script +++ b/Projects/PhoenixPE/Applications/Encryption/DiskCryptor.script @@ -35,8 +35,8 @@ Author=Homes32 Level=5 Selected=False Mandatory=False -Version=1.0.0.0 -Date=2022-03-06 +Version=1.0.1.0 +Date=2022-12-24 [Variables] %ProgramFolder%="DiskCryptor" @@ -58,9 +58,9 @@ Run,%ScriptFile%,ExtractProgram,"%ProjectTemp%\%ProgramFolder%" /////////////////////////////////////////////////////////////////////////////////// // Copy Files -If,%SourceArch%,Equal,x64,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe",2 -Else,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe",1 -InnoCleanup,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe" +If,%SourceArch%,Equal,x64,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys",2 +Else,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys",1 +InnoCleanup,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys" FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*","%TargetPrograms%\%ProgramFolder%" FileCopy,"%TargetPrograms%\%ProgramFolder%\dcrypt.sys","%TargetSystem32%\Drivers"