mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-17 10:38:04 +02:00
Update Rufus.script to v4.5 and add some improved progress text to Copy2Folder.script
This commit is contained in:
@@ -35,46 +35,55 @@ Author=Homes32
|
|||||||
Level=8
|
Level=8
|
||||||
Selected=False
|
Selected=False
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
Version=1.0.0.0
|
Version=1.0.1.0
|
||||||
Date=2019-10-20
|
Date=2024-06-20
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
RaiseErr=Run,%ScriptFile%,RaiseErr
|
RaiseErr=Run,%ScriptFile%,RaiseErr
|
||||||
|
|
||||||
[Process]
|
[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,Not,ExistDir,%fb_Dest%,RaiseErr,"You must specify a valid destination directory."
|
||||||
|
|
||||||
If,%rbtn_CopyISO%,Equal,True,Begin
|
If,%rbtn_CopyISO%,Equal,True,Begin
|
||||||
|
Echo,"Copying [%ISOFile%] to [%fb_Dest%]..."
|
||||||
If,ExistFile,%ISOFile%,FileCopy,%ISOFile%,%fb_Dest%
|
If,ExistFile,%ISOFile%,FileCopy,%ISOFile%,%fb_Dest%
|
||||||
Else,RaiseErr,"ISO Image [%ISOFile%] does not exist. Please rebuild your project."
|
Else,RaiseErr,"ISO Image [%ISOFile%] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyBootWim%,Equal,True,Begin
|
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%
|
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."
|
Else,RaiseErr,"[%OutputDir%\sources\Boot.wim] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyPrograms%,Equal,True,Begin
|
Else,If,%rbtn_CopyPrograms%,Equal,True,Begin
|
||||||
|
Echo,"Copying [%OutputDir%\Programs] to [%fb_Dest%]..."
|
||||||
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
|
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyBootWimSources%,Equal,True,Begin
|
Else,If,%rbtn_CopyBootWimSources%,Equal,True,Begin
|
||||||
|
Echo,"Copying [%OutputDir%\sources] to [%fb_Dest%]..."
|
||||||
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
|
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%\sources] does not exist. Please rebuild your project."
|
Else,RaiseErr,"[%OutputDir%\sources] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyBootWimPrograms%,Equal,True,Begin
|
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%
|
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."
|
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%
|
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyBootWimSourcesPrograms%,Equal,True,Begin
|
Else,If,%rbtn_CopyBootWimSourcesPrograms%,Equal,True,Begin
|
||||||
|
Echo,"Copying [%OutputDir%\sources] to [%fb_Dest%]..."
|
||||||
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
|
If,ExistDir,"%OutputDir%\sources",DirCopy,"%OutputDir%\sources",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%\sources] does not exist. Please rebuild your project."
|
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%
|
If,ExistDir,"%OutputDir%\Programs",DirCopy,"%OutputDir%\Programs",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
Else,RaiseErr,"[%OutputDir%\Programs] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
Else,If,%rbtn_CopyOutputDir%,Equal,True,Begin
|
Else,If,%rbtn_CopyOutputDir%,Equal,True,Begin
|
||||||
|
Echo,"Copying [%OutputDir%] to [%fb_Dest%]..."
|
||||||
If,ExistDir,%OutputDir%,FileCopy,"%OutputDir%\*.*",%fb_Dest%
|
If,ExistDir,%OutputDir%,FileCopy,"%OutputDir%\*.*",%fb_Dest%
|
||||||
Else,RaiseErr,"[%OutputDir%] does not exist. Please rebuild your project."
|
Else,RaiseErr,"[%OutputDir%] does not exist. Please rebuild your project."
|
||||||
End
|
End
|
||||||
|
@@ -30,18 +30,18 @@
|
|||||||
|
|
||||||
[Main]
|
[Main]
|
||||||
Title=Rufus
|
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
|
Author=Homes32
|
||||||
Level=8
|
Level=8
|
||||||
Selected=None
|
Selected=None
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
Version=1.1.1.0
|
Version=1.1.2.0
|
||||||
Date=2024-01-13
|
Date=2024-05-27
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
%ProgramFolder%="Rufus"
|
%ProgramFolder%="Rufus"
|
||||||
%ProgramExe%="Rufus.exe"
|
%ProgramExe%="Rufus.exe"
|
||||||
%ProgramVersion%=4.3
|
%ProgramVersion%=4.5
|
||||||
%DownloadURLx86%=https://github.com/pbatard/rufus/releases/download/v%ProgramVersion%/rufus-%ProgramVersion%_x86.exe
|
%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
|
%DownloadURLx64%=https://github.com/pbatard/rufus/releases/download/v%ProgramVersion%/rufus-%ProgramVersion%.exe
|
||||||
%ConfigFile%="%ProjectTemp%\Rufus.ini"
|
%ConfigFile%="%ProjectTemp%\Rufus.ini"
|
||||||
|
Reference in New Issue
Block a user