- 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.
This commit is contained in:
Homes32
2022-12-24 18:39:36 -06:00
parent a0a7207eba
commit 306bc9ce59
3 changed files with 13 additions and 9 deletions

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5 Level=5
Selected=False Selected=False
Mandatory=False Mandatory=False
Version=1.0.0.0 Version=1.0.1.0
Date=2022-09-18 Date=2022-12-24
Interface=Interface Interface=Interface
[Variables] [Variables]
@@ -293,6 +293,7 @@ If,%SourceArch%,Equal,x64,Begin
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 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" 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,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" FileRename,"%TargetSystem32%\snapapint64.bin","%TargetSystem32%\snapapint64.dll"
End End
Else,Begin Else,Begin
@@ -311,6 +312,7 @@ Else,Begin
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 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" 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,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" FileRename,"%TargetSystem32%\snapapint.bin","%TargetSystem32%\snapapint.dll"
End End

View File

@@ -38,8 +38,8 @@ Author=Homes32
Level=5 Level=5
Selected=False Selected=False
Mandatory=False Mandatory=False
Version=1.0.1.0 Version=1.0.2.0
Date=2022-07-31 Date=2022-12-24
Interface=Interface Interface=Interface
[Variables] [Variables]
@@ -296,6 +296,7 @@ If,%SourceArch%,Equal,x64,Begin
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 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" 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,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" FileRename,"%TargetSystem32%\snapapint64.bin","%TargetSystem32%\snapapint64.dll"
End End
Else,Begin Else,Begin
@@ -314,6 +315,7 @@ Else,Begin
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]." 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" 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,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" FileRename,"%TargetSystem32%\snapapint.bin","%TargetSystem32%\snapapint.dll"
End End

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5 Level=5
Selected=False Selected=False
Mandatory=False Mandatory=False
Version=1.0.0.0 Version=1.0.1.0
Date=2022-03-06 Date=2022-12-24
[Variables] [Variables]
%ProgramFolder%="DiskCryptor" %ProgramFolder%="DiskCryptor"
@@ -58,9 +58,9 @@ Run,%ScriptFile%,ExtractProgram,"%ProjectTemp%\%ProgramFolder%"
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// Copy Files // Copy Files
If,%SourceArch%,Equal,x64,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe",2 If,%SourceArch%,Equal,x64,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys",2
Else,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe",1 Else,InnoRename,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys",1
InnoCleanup,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe" InnoCleanup,"%ProjectTemp%\%ProgramFolder%\{app}","*.dll,*.exe,*.sys"
FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*","%TargetPrograms%\%ProgramFolder%" FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*","%TargetPrograms%\%ProgramFolder%"
FileCopy,"%TargetPrograms%\%ProgramFolder%\dcrypt.sys","%TargetSystem32%\Drivers" FileCopy,"%TargetPrograms%\%ProgramFolder%\dcrypt.sys","%TargetSystem32%\Drivers"