Migrate from buggy #1,#a,#c,#r section parameters to PEBakery variable based parameters (%^RET%, %^SIPARAM_n%, %^SIPARAM_COUNT%, etc.).

This commit is contained in:
Homes32
2026-05-29 00:34:33 -05:00
parent 1979995389
commit 424a99f451
183 changed files with 913 additions and 910 deletions
@@ -125,7 +125,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -135,7 +135,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
Echo,"Extracting files..."
7z,"x -r -y #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q * -o#$q%ProjectTemp%\%ProgramFolder%#$q"
FileDeleteEx,"%ProjectTemp%\%ProgramFolder%\$PLUGINSDIR\app\uninstall.exe"
FileCopy,"%ProjectTemp%\%ProgramFolder%\$PLUGINSDIR\app\*.*",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\$PLUGINSDIR\app\*.*",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -151,7 +151,7 @@ FileCopy,"%ProjectTemp%\%ProgramFolder%\$PLUGINSDIR\app\*.*",#1
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -142,11 +142,11 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
Echo,"Extracting Program Files..."
If,%SourceArch%,Equal,x64,Begin
Innounp,"-x -b -a -d#$q%TargetPrograms%\%ProgramFolder%#$q -c#$q{app}\Winpe64\#$q #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q {app}\Winpe64\*.*"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
End
Else,Begin
Innounp,"-x -b -a -d#$q%TargetPrograms%\%ProgramFolder%#$q -c#$q{app}\#$q #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
DirDeleteEx,"%TargetPrograms%\%ProgramFolder%\drivers"
DirDeleteEx,"%TargetPrograms%\%ProgramFolder%\Winpe64"
End
@@ -158,7 +158,7 @@ End
Else,Begin
Innounp,"-x -b -a -d#$q%TargetSystem32%\drivers#$q -c#$q{app}\driver\i386\#$q #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q {app}\driver\i386\*.sys"
End
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
[#DownloadProgram#]
// ===============================================================================================================================
@@ -174,7 +174,7 @@ If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
[#ToggleRegKey#]
// ===============================================================================================================================
@@ -153,36 +153,36 @@ Echo,"Adding iSCSI Support..."
If,%SourceArch%,Equal,x64,Begin
// System32
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsicli.exe Files64\iSCSI\iscsicpl.cpl Files64\iSCSI\iscsidip.dll Files64\iSCSI\iscsidsc.dll Files64\iSCSI\iscsiexe.exe Files64\iSCSI\iscsilog.dll Files64\iSCSI\iscsipp.dll Files64\iSCSI\iscsium.dll Files64\iSCSI\iscsiwip.dll Files64\iSCSI\iscsiwmi.dll Files64\iSCSI\iscsixip.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsiprt.sys Files64\iSCSI\msiscsi.sys -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// INF
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsi.inf -o#$q%TargetWindows%\INF\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Windows\iSCSI
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsi.cat Files64\iSCSI\iscsi.inf Files64\iSCSI\iscsidsc.mof Files64\iSCSI\iscsievt.mof Files64\iSCSI\iscsihba.mof Files64\iSCSI\iscsilog.dll Files64\iSCSI\iscsiprf.mof Files64\iSCSI\iscsiprt.sys Files64\iSCSI\iscsirem.mof Files64\iSCSI\mpdev.inf Files64\iSCSI\mpdev.sys Files64\iSCSI\mpio.cat Files64\iSCSI\mpio.inf Files64\iSCSI\mpio.sys Files64\iSCSI\mpspfltr.sys Files64\iSCSI\msiscdsm.inf Files64\iSCSI\msiscdsm.sys Files64\iSCSI\msiscsi.sys -o#$q%TargetWindows%\iSCSI\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
End
Else,Begin
// System32
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsicli.exe Files32\iSCSI\iscsicpl.cpl Files32\iSCSI\iscsidip.dll Files32\iSCSI\iscsidsc.dll Files32\iSCSI\iscsiexe.exe Files32\iSCSI\iscsilog.dll Files32\iSCSI\iscsipp.dll Files32\iSCSI\iscsium.dll Files32\iSCSI\iscsiwip.dll Files32\iSCSI\iscsiwmi.dll Files32\iSCSI\iscsixip.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsiprt.sys Files32\iSCSI\msiscsi.sys -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// INF
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsi.inf -o#$q%TargetWindows%\INF\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Windows\iSCSI
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsi.cat Files32\iSCSI\iscsi.inf Files32\iSCSI\iscsidsc.mof Files32\iSCSI\iscsievt.mof Files32\iSCSI\iscsihba.mof Files32\iSCSI\iscsilog.dll Files32\iSCSI\iscsiprf.mof Files32\iSCSI\iscsiprt.sys Files32\iSCSI\iscsirem.mof Files32\iSCSI\mpdev.inf Files32\iSCSI\mpdev.sys Files32\iSCSI\mpio.cat Files32\iSCSI\mpio.inf Files32\iSCSI\mpio.sys Files32\iSCSI\mpspfltr.sys Files32\iSCSI\msiscdsm.inf Files32\iSCSI\msiscdsm.sys Files32\iSCSI\msiscsi.sys -o#$q%TargetWindows%\iSCSI\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
End
// iScsiPrt Service
@@ -253,47 +253,47 @@ Echo,"Extracting Program Files..."
If,%SourceArch%,Equal,x64,Begin
// x64 Program Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\auto_reactivate64.bin Files\bootwiz64.efi -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\* -x!Files64\Drivers\ -x!Files64\IScsi\ -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// VC Runtime
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\Microsoft.VC120.CRT\* -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\snapapi.dll Files64\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\* -x!Files64\Drivers\Microsoft.VC120.CRT\ -x!Files64\Drivers\snapapi.dll -x!Files64\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,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,Not,%^RET%,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
// x86 Program Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\* -x!Files32\Drivers\ -x!Files32\IScsi\ -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// VC Runtime
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\Microsoft.VC120.CRT\* -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\snapapi.dll Files32\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\* -x!Files32\Drivers\Microsoft.VC120.CRT\ -x!Files32\Drivers\snapapi.dll -x!Files32\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,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,Not,%^RET%,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
// x86/x64 Common Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\auto_reactivate.bin Files\bootmenu.bin Files\bootwiz.bin Files\bootwiz32.efi -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
FileCopy,"%TargetPrograms%\%ProgramFolder%\bootmenu.bin","%TargetPrograms%\%ProgramFolder%\gen_bootmenu.bin"
[#DownloadProgram#]
@@ -311,14 +311,14 @@ FileCopy,"%TargetPrograms%\%ProgramFolder%\bootmenu.bin","%TargetPrograms%\%Prog
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProjectTemp%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
Set,%MsiFile%,"AcronisTrueImage.msi"
// Extract the .msi installer
Echo,"Extracting installer..."
7z,"e -y #$q%ProjectTemp%\%ProgramFolder%\%SetupFile%#$q %MsiFile% -o#$q%ProjectTemp%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Failed to extract .msi from [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to extract .msi from [%SetupFile%]: The code returned was [%^RET%]."
// Extract compressed WinPE.zip from .msi installer
Echo,"Extracting WinPE.zip from installer..."
@@ -327,12 +327,12 @@ MSIExtract,"%ProjectTemp%\%ProgramFolder%\%MsiFile%","%ProjectTemp%\%ProgramFold
// Find the full path to WinPE_resources.dll
Echo,"Decompressing WinPE Resources..."
FileSearch,"%ProjectTemp%\%ProgramFolder%","WinPE_resources.dll"
If,#r,Equal,"",Halt,"Failed to find [WinPE_resources.dll]: The code returned was [#r]."
Else,List,Get,#r,1,%WinPEResPath%
If,%^RET%,Equal,"",Halt,"Failed to find [WinPE_resources.dll]: The code returned was [%^RET%]."
Else,List,Get,%^RET%,1,%WinPEResPath%
// Unpack compressed WinPE.zip from WinPE_resources.dll
7z,"e -y #$q%WinPEResPath%#$q WinPE.zip -o#$q%ProgramsCache%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Failed to extract WinPE.zip from [%WinPEResPath%]: The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to extract WinPE.zip from [%WinPEResPath%]: The code returned was [%^RET%]."
// Cleanup
Set,%WinPEResPath%,Nil
@@ -188,36 +188,36 @@ Echo,"Adding iSCSI Support..."
If,%SourceArch%,Equal,x64,Begin
// System32
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsicli.exe Files64\iSCSI\iscsicpl.cpl Files64\iSCSI\iscsidip.dll Files64\iSCSI\iscsidsc.dll Files64\iSCSI\iscsiexe.exe Files64\iSCSI\iscsilog.dll Files64\iSCSI\iscsipp.dll Files64\iSCSI\iscsium.dll Files64\iSCSI\iscsiwip.dll Files64\iSCSI\iscsiwmi.dll Files64\iSCSI\iscsixip.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsiprt.sys Files64\iSCSI\msiscsi.sys -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// INF
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsi.inf -o#$q%TargetWindows%\INF\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Windows\iSCSI
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\iSCSI\iscsi.cat Files64\iSCSI\iscsi.inf Files64\iSCSI\iscsidsc.mof Files64\iSCSI\iscsievt.mof Files64\iSCSI\iscsihba.mof Files64\iSCSI\iscsilog.dll Files64\iSCSI\iscsiprf.mof Files64\iSCSI\iscsiprt.sys Files64\iSCSI\iscsirem.mof Files64\iSCSI\mpdev.inf Files64\iSCSI\mpdev.sys Files64\iSCSI\mpio.cat Files64\iSCSI\mpio.inf Files64\iSCSI\mpio.sys Files64\iSCSI\mpspfltr.sys Files64\iSCSI\msiscdsm.inf Files64\iSCSI\msiscdsm.sys Files64\iSCSI\msiscsi.sys -o#$q%TargetWindows%\iSCSI\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
End
Else,Begin
// System32
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsicli.exe Files32\iSCSI\iscsicpl.cpl Files32\iSCSI\iscsidip.dll Files32\iSCSI\iscsidsc.dll Files32\iSCSI\iscsiexe.exe Files32\iSCSI\iscsilog.dll Files32\iSCSI\iscsipp.dll Files32\iSCSI\iscsium.dll Files32\iSCSI\iscsiwip.dll Files32\iSCSI\iscsiwmi.dll Files32\iSCSI\iscsixip.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsiprt.sys Files32\iSCSI\msiscsi.sys -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// INF
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsi.inf -o#$q%TargetWindows%\INF\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Windows\iSCSI
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\iSCSI\iscsi.cat Files32\iSCSI\iscsi.inf Files32\iSCSI\iscsidsc.mof Files32\iSCSI\iscsievt.mof Files32\iSCSI\iscsihba.mof Files32\iSCSI\iscsilog.dll Files32\iSCSI\iscsiprf.mof Files32\iSCSI\iscsiprt.sys Files32\iSCSI\iscsirem.mof Files32\iSCSI\mpdev.inf Files32\iSCSI\mpdev.sys Files32\iSCSI\mpio.cat Files32\iSCSI\mpio.inf Files32\iSCSI\mpio.sys Files32\iSCSI\mpspfltr.sys Files32\iSCSI\msiscdsm.inf Files32\iSCSI\msiscdsm.sys Files32\iSCSI\msiscsi.sys -o#$q%TargetWindows%\iSCSI\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
End
// iScsiPrt Service
@@ -288,47 +288,47 @@ Echo,"Extracting Program Files..."
If,%SourceArch%,Equal,x64,Begin
// x64 Program Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\auto_reactivate64.bin Files\bootwiz64.efi -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\* -x!Files64\Drivers\ -x!Files64\IScsi\ -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// VC Runtime
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\Microsoft.VC120.CRT\* -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\snapapi.dll Files64\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files64\Drivers\* -x!Files64\Drivers\Microsoft.VC120.CRT\ -x!Files64\Drivers\snapapi.dll -x!Files64\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,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,Not,%^RET%,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
// x86 Program Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\* -x!Files32\Drivers\ -x!Files32\IScsi\ -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// VC Runtime
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\Microsoft.VC120.CRT\* -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
// Drivers
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\snapapi.dll Files32\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files32\Drivers\* -x!Files32\Drivers\Microsoft.VC120.CRT\ -x!Files32\Drivers\snapapi.dll -x!Files32\Drivers\volume_tracker_driver_api.dll -o#$q%TargetSystem32%\Drivers\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,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,Not,%^RET%,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
// x86/x64 Common Files
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\WinPE.zip#$q Files\auto_reactivate.bin Files\bootmenu.bin Files\bootwiz.bin Files\bootwiz32.efi -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WinPE.zip]."
FileCopy,"%TargetPrograms%\%ProgramFolder%\bootmenu.bin","%TargetPrograms%\%ProgramFolder%\gen_bootmenu.bin"
[#DownloadProgram#]
@@ -345,12 +345,12 @@ FileCopy,"%TargetPrograms%\%ProgramFolder%\bootmenu.bin","%TargetPrograms%\%Prog
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProjectTemp%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
// Extract the .msi installer
Echo,"Extracting installer..."
7z,"e -y #$q%ProjectTemp%\%ProgramFolder%\%SetupFile%#$q AcronisTrueImage.msi -o#$q%ProjectTemp%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Failed to extract .msi from [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to extract .msi from [%SetupFile%]: The code returned was [%^RET%]."
// Extract compressed WinPE.zip from .msi installer
Echo,"Extracting WinPE.zip from installer..."
@@ -359,12 +359,12 @@ MSIExtract,"%ProjectTemp%\%ProgramFolder%\AcronisTrueImage.msi","%ProjectTemp%\%
// Find the full path to WinPE_resources.dll
Echo,"Decompressing WinPE Resources..."
FileSearch,"%ProjectTemp%\%ProgramFolder%","WinPE_resources.dll"
If,#r,Equal,"",Halt,"Failed to find [WinPE_resources.dll]: The code returned was [#r]."
Else,List,Get,#r,1,%WinPEResPath%
If,%^RET%,Equal,"",Halt,"Failed to find [WinPE_resources.dll]: The code returned was [%^RET%]."
Else,List,Get,%^RET%,1,%WinPEResPath%
// Unpack compressed WinPE.zip from WinPE_resources.dll
7z,"e -y #$q%WinPEResPath%#$q WinPE.zip -o#$q%ProgramsCache%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Failed to extract WinPE.zip from [%WinPEResPath%]: The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to extract WinPE.zip from [%WinPEResPath%]: The code returned was [%^RET%]."
// Cleanup
Set,%WinPEResPath%,Nil
@@ -166,7 +166,7 @@ InnoExtract,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","%ProjectTemp%\%Progra
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
[#ToggleProductReg#]
// ===============================================================================================================================
@@ -92,7 +92,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -107,12 +107,12 @@ StrFormat,Pos,".7z|.rar|.zip",%Ext%,%IsArchive%
If,%IsArchive%,Bigger,0,Begin
// Unpack user supplied archive
Decompress,%SetupFile%,#1
Decompress,%SetupFile%,%^SIPARAM_1%
End
Else,If,%Ext%,Equal,".exe",Begin
// Unpack InnoSetup
InnoExtract,%SetupFile%,"%ProjectTemp%\%ProgramFolder%"
FileCopy,"%ProjectTemp%\%ProgramFolder%\{App}\*.*",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\{App}\*.*",%^SIPARAM_1%
End
Else,Begin
StrFormat,FileName,%SetupFile%,%FileName%
@@ -103,8 +103,8 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram
// Parameters.....: #1 - Destination Directory
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: DestDir - Destination Directory
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -112,7 +112,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting Program Files..."
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -128,7 +128,7 @@ Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -92,11 +92,11 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
Echo,"Downloading %ScriptTitle% Help files..."
WebGet,%DownloadURLCHM%,"%ProgramsCache%\%ProgramFolder%\Disk2VHD.chm",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -137,7 +137,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%ProgramExe%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -61,7 +61,7 @@ If,%cb_SupplyProgramFiles%,Equal,True,Begin
If,Not,%fb_HDDCloneFiles%,Equal,"",If,ExistFile,%fb_HDDCloneFiles%,Begin
Echo,"Extracting program files from [%fb_HDDCloneFiles%]..."
7z,"x -r -y #$q%fb_HDDCloneFiles%#$q -xr!$* -xr!uninst.exe -o#$q%TargetPrograms%\%ProgramFolder%#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]. The error code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]. The error code returned was [%^RET%]."
End
Else,Halt,"ERROR: The specified program files do not exist! [%fb_IncludeSettingsDir%]"
End
@@ -94,8 +94,8 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram
// Parameters.....: #1 - Destination Directory
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -103,8 +103,8 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting Program Files..."
7z,"x -r -y #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q -xr!$* -xr!uninst.exe -o#$q#1#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]. The error code returned was [#r]."
7z,"x -r -y #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q -xr!$* -xr!uninst.exe -o#$q%^SIPARAM_1%#$q"
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]. The error code returned was [%^RET%]."
[#DownloadProgram#]
// ===============================================================================================================================
@@ -122,7 +122,7 @@ Echo,"Downloading %ScriptTitle%..."
StrFormat,Split,%cmb_Language%,"[",2,%Lang%
StrFormat,RTrim,%Lang%,1,%Lang%
WebGet,"%DownloadURL%","%ProgramsCache%\%ProgramFolder%\%SetupFile%",NoErr
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -74,7 +74,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -82,7 +82,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting files..."
FileCopy,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
FileCopy,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -99,7 +99,7 @@ FileCopy,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Echo,"Downloading %ScriptTitle%..."
ExtractFile,%ScriptFile%,x86,%SetupFile%,"%ProgramsCache%\%ProgramFolder%"
//WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
//If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
//If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -35,8 +35,8 @@ Author=Homes32
Level=5
Selected=False
Mandatory=False
Version=1.0.0.0
Date=2024-12-23
Version=1.0.1.0
Date=2026-05-28
[Variables]
%ProgramFolder%="Hasleo Backup Suite"
@@ -130,7 +130,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -138,12 +138,15 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting files..."
InnoExtract,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","%TargetPrograms%\%ProgramFolder%\","CDIR={app}\bin\WINPE\Program Files\Hasleo Backup Suite"
GetParam,1,%DestDir%
StrFormat,EndTrim,%DestDir%,"\",%DestDir%
If,%SourceArch%,Equal,x64,InnoRename,"%TargetPrograms%\%ProgramFolder%\","*.*",2
Else,InnoRename,"%TargetPrograms%\%ProgramFolder%\","*.*",1
InnoExtract,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","%DestDir%\","CDIR={app}\bin\WINPE\Program Files\Hasleo Backup Suite"
InnoCleanup,"%TargetPrograms%\%ProgramFolder%\","*.*"
If,%SourceArch%,Equal,x64,InnoRename,"%DestDir%\","*.*",2
Else,InnoRename,"%DestDir%\","*.*",1
InnoCleanup,"%DestDir%\","*.*"
[#DownloadProgram#]
// ===============================================================================================================================
@@ -159,7 +162,7 @@ InnoCleanup,"%TargetPrograms%\%ProgramFolder%\","*.*"
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -105,7 +105,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -116,19 +116,19 @@ Echo,"Extracting files..."
// Extract .cab files from setup
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q Reflect.cab LibFiles.cab WaikFiles.cab -o#$q%ProjectTemp%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
// Extract .cab files
Set,%IncludeFiles%,"AESDLL.dll LE5.dll *.rtf PrimoBurner64.dll psmounterex.sys PSVolAcc.sys ReflectTheme.dll"
7z,"e -y -r- #$q%ProjectTemp%\%ProgramFolder%\LibFiles.cab#$q %IncludeFiles% -o#$q%ProjectTemp%\%ProgramFolder%\files#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [LibFiles.cab]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [LibFiles.cab]."
Set,%IncludeFiles%,"ReflectBin.exe oledlg.dll"
7z,"e -y -r- #$q%ProjectTemp%\%ProgramFolder%\Reflect.cab#$q %IncludeFiles% -o#$q%ProjectTemp%\%ProgramFolder%\files#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [Reflect.cab]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [Reflect.cab]."
7z,"e -y -r- #$q%ProjectTemp%\%ProgramFolder%\WaikFiles.cab#$q WaikFiles.exe -o#$q%ProjectTemp%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WaikFiles.cab]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WaikFiles.cab]."
; Extract Redeploy
If,%SourceArch%,Equal,x64,Begin,
@@ -142,7 +142,7 @@ End
If,ExistFile,"%ProjectTemp%\%ProgramFolder%\files\Reflect.exe",FileDeleteEx,"%ProjectTemp%\%ProgramFolder%\files\Reflect.exe"
FileRename,"%ProjectTemp%\%ProgramFolder%\files\ReflectBin.exe","%ProjectTemp%\%ProgramFolder%\files\Reflect.exe"
FileCopy,"%ProjectTemp%\%ProgramFolder%\files\*.*",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\files\*.*",%^SIPARAM_1%
[#ToggleRegKey#]
// ===============================================================================================================================
@@ -177,7 +177,7 @@ If,%SourceArch%,Equal,x64,Set,%DownloadURL%,%DownloadURLx64%
Else,Set,%DownloadURL%,%DownloadURLx86%
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]. The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]. The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -166,7 +166,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........: PeAgent.exe does a bunch of annoying crap we don't need, such as running wpeinit, trying to start network adapters
@@ -182,15 +182,15 @@ StrFormat,EndTrim,%ExtractDir%,"\",%ExtractDir%
// Extract .cab files from setup
7z,"e -y -r- #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q Reflect.cab WaikFiles.cab -o#$q%ProjectTemp%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
// Extract .cab files - Reflect from WaikFiles is only x86 at the time this script was written so we use Reflect.cab.
7z,"e -y -r- #$q%ProjectTemp%\%ProgramFolder%\Reflect.cab#$q ReflectBin.exe -o#$q%ProjectTemp%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [Reflect.cab]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [Reflect.cab]."
FileCopy,"%ProjectTemp%\%ProgramFolder%\ReflectBin.exe","%ExtractDir%\Reflect.exe"
7z,"e -y -r- #$q%ProjectTemp%\%ProgramFolder%\WaikFiles.cab#$q WaikFiles.exe -o#$q%ProjectTemp%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Halt,"Error: Failed to extract [WaikFiles.cab]."
If,Not,%^RET%,Equal,0,Halt,"Error: Failed to extract [WaikFiles.cab]."
If,%SourceArch%,Equal,x64,Begin
GetBinaryResource,"%ProjectTemp%\%ProgramFolder%\WAIKFiles.exe","DAT","##151","%ExtractDir%\PeAgent.exe"
@@ -261,7 +261,7 @@ If,%SourceArch%,Equal,x64,Set,%DownloadURL%,%DownloadURLx64%
Else,Set,%DownloadURL%,%DownloadURLx86%
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]. The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]. The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -77,7 +77,7 @@ Else,Begin
List,Get,%aLangMap%,%ZipPos%,%LangZip%
WebGet,"https://www.nirsoft.net/utils/trans/produkey_%LangZip%.zip","%ProgramsCache%\%ProgramFolder%\ProduKey-Lang.zip",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
End
Decompress,"%ProgramsCache%\%ProgramFolder%\ProduKey-Lang.zip","%TargetPrograms%\%ProgramFolder%"
@@ -100,7 +100,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -108,7 +108,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting files..."
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -125,7 +125,7 @@ Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -180,7 +180,7 @@ RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\binimage\shellex\ContextMenuHandlers\
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram
// Parameters.....: #1 - Destination Directory
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -202,8 +202,8 @@ Else,Begin
FileRename,"%ProjectTemp%\%ProgramFolder%\{App}\isoshl64,1.dll","%ProjectTemp%\%ProgramFolder%\{App}\isoshl64.dll"
End
FileCopy,"%ProjectTemp%\%ProgramFolder%\{App}\*.*",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\{cf32}\EZB Systems\lame_enc.dll",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\{App}\*.*",%^SIPARAM_1%
FileCopy,"%ProjectTemp%\%ProgramFolder%\{cf32}\EZB Systems\lame_enc.dll",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -219,7 +219,7 @@ FileCopy,"%ProjectTemp%\%ProgramFolder%\{cf32}\EZB Systems\lame_enc.dll",#1
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGet,"%DownloadURL%","%ProgramsCache%\%ProgramFolder%\%SetupFile%",Referer=https://www.ezbsystems.com/ultraiso/download.htm,NOERR
If,Not,#r,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Failed to download [%SetupFile%]: The code returned was [%^RET%]."
[#ToggleLicenseReg#]
// ===============================================================================================================================
@@ -84,7 +84,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -113,7 +113,7 @@ Else,FileDeleteEx,"%DestDir%\%ProgramExex64%"
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -81,7 +81,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -90,7 +90,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
[ExtractProgram]
Echo,"Extracting files..."
InnoExtract,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","%ProjectTemp%\%ProgramFolder%"
FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*",#1
FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -106,7 +106,7 @@ FileCopy,"%ProjectTemp%\%ProgramFolder%\{app}\*.*",#1
[DownloadProgram]
Echo,"Downloading %ScriptTitle%..."
WebGetEx,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","Referer=https://geeks3d.com/furmark/downloads/",NOERR
If,Not,#r,Equal,0,Halt,"Failed to download [%SetupFile%]. The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to download [%SetupFile%]. The code returned was [%^RET%]."
[#LaunchProgram#]
// ===============================================================================================================================
@@ -85,7 +85,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -96,11 +96,11 @@ System,SetLocal
Echo,"Extracting files..."
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","%ProjectTemp%\%ProgramFolder%"
FileSearch,"%ProjectTemp%\%ProgramFolder%",%ProgramExe%
If,#r,Equal,"",Halt,"Failed to find [%ProgramExe%]: The code returned was [#r]."
Else,List,Get,#r,1,%ProgramPath%
If,%^RET%,Equal,"",Halt,"Failed to find [%ProgramExe%]: The code returned was [%^RET%]."
Else,List,Get,%^RET%,1,%ProgramPath%
StrFormat,DirPath,%ProgramPath%,%ProgramPathFolder%
StrFormat,EndTrim,%ProgramPathFolder%,"\",%ProgramPathFolder%
FileCopy,"%ProgramPathFolder%\*.*",#1
FileCopy,"%ProgramPathFolder%\*.*",%^SIPARAM_1%
System,EndLocal
[#DownloadProgram#]
@@ -118,7 +118,7 @@ System,EndLocal
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGetEx,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%","Referer=https://geeks3d.com/furmark/downloads/",NOERR
If,Not,#r,Equal,0,Halt,"Failed to download [%SetupFile%]. The code returned was [#r]."
If,Not,%^RET%,Equal,0,Halt,"Failed to download [%SetupFile%]. The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================
@@ -96,7 +96,7 @@ If,%cb_PinToStartMenu_TreeSizeFree%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPr
// Name...........: ExtractProgram
// Description....: Extract program files from script/setup files.
// Syntax.........: Run,%ScriptFile%,ExtractProgram,<DestDir>
// Parameters.....: #1 DestDir - The directory where the files will be extracted.
// Parameters.....: DestDir - The directory where the files will be extracted.
// Return values..:
// Author.........: Homes32
// Remarks........:
@@ -104,7 +104,7 @@ If,%cb_PinToStartMenu_TreeSizeFree%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPr
// ===============================================================================================================================
[ExtractProgram]
Echo,"Extracting files..."
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",%^SIPARAM_1%
[#DownloadProgram#]
// ===============================================================================================================================
@@ -121,7 +121,7 @@ Decompress,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",#1
Echo,"Downloading %ScriptTitle%..."
Run,%ScriptFile%,SetProgramArch
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
If,Not,%^RET%,Equal,200,Halt,"Download failed: The code returned was [%^RET%]."
[#SetProgramArch#]
// ===============================================================================================================================

Some files were not shown because too many files have changed in this diff Show More