Update Rufus.script to v4.5 and add some improved progress text to Copy2Folder.script

This commit is contained in:
Homes32
2024-06-20 20:56:16 -05:00
parent 1f3e2646f4
commit 605fd31045
2 changed files with 16 additions and 7 deletions

View File

@@ -35,46 +35,55 @@ Author=Homes32
Level=8
Selected=False
Mandatory=False
Version=1.0.0.0
Date=2019-10-20
Version=1.0.1.0
Date=2024-06-20
[Variables]
RaiseErr=Run,%ScriptFile%,RaiseErr
[Process]
Echo,"Starting file copy to [%fb_Dest%]..."
Echo,"Copy to [%fb_Dest%]..."
If,Not,ExistDir,%fb_Dest%,RaiseErr,"You must specify a valid destination directory."
If,%rbtn_CopyISO%,Equal,True,Begin
Echo,"Copying [%ISOFile%] to [%fb_Dest%]..."
If,ExistFile,%ISOFile%,FileCopy,%ISOFile%,%fb_Dest%
Else,RaiseErr,"ISO Image [%ISOFile%] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyBootWim%,Equal,True,Begin
Echo,"Copying [%OutputDir%\sources\Boot.wim] to [%fb_Dest%]..."
If,ExistFile,"%OutputDir%\sources\Boot.wim",FileCopy,"%OutputDir%\sources\Boot.wim",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\sources\Boot.wim] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyPrograms%,Equal,True,Begin
Echo,"Copying [%OutputDir%\Programs] to [%fb_Dest%]..."
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyBootWimSources%,Equal,True,Begin
Echo,"Copying [%OutputDir%\sources] to [%fb_Dest%]..."
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\sources] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyBootWimPrograms%,Equal,True,Begin
Echo,"Copying [%OutputDir%\sources\Boot.wim] to [%fb_Dest%]..."
If,ExistFile,"%OutputDir%\sources\Boot.wim",FileCopy,"%OutputDir%\sources\Boot.wim",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\sources\Boot.wim] does not exist. Please rebuild your project."
Echo,"Copying [%OutputDir%\Programs] to [%fb_Dest%]..."
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyBootWimSourcesPrograms%,Equal,True,Begin
Echo,"Copying [%OutputDir%\sources] to [%fb_Dest%]..."
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\sources] does not exist. Please rebuild your project."
Echo,"Copying [%OutputDir%\Programs] to [%fb_Dest%]..."
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
End
Else,If,%rbtn_CopyOutputDir%,Equal,True,Begin
Echo,"Copying [%OutputDir%] to [%fb_Dest%]..."
If,ExistDir,%OutputDir%,FileCopy,"%OutputDir%\*.*",%fb_Dest%
Else,RaiseErr,"[%OutputDir%] does not exist. Please rebuild your project."
End

View File

@@ -30,18 +30,18 @@
[Main]
Title=Rufus
Description=(v4.3) Create a bootable USB drive with Rufus, the Reliable USB Formatting Utility.
Description=(v4.5) Create a bootable USB drive with Rufus, the Reliable USB Formatting Utility.
Author=Homes32
Level=8
Selected=None
Mandatory=False
Version=1.1.1.0
Date=2024-01-13
Version=1.1.2.0
Date=2024-05-27
[Variables]
%ProgramFolder%="Rufus"
%ProgramExe%="Rufus.exe"
%ProgramVersion%=4.3
%ProgramVersion%=4.5
%DownloadURLx86%=https://github.com/pbatard/rufus/releases/download/v%ProgramVersion%/rufus-%ProgramVersion%_x86.exe
%DownloadURLx64%=https://github.com/pbatard/rufus/releases/download/v%ProgramVersion%/rufus-%ProgramVersion%.exe
%ConfigFile%="%ProjectTemp%\Rufus.ini"