Topic: NEW - USB Creation Tool  (Read 5823 times)

NEW - USB Creation Tool
« on: June 11, 2018, 05:32:12 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
    USB Creation Tool - WriteMedia Plugin and Standalone*UPDATED 10/28/18
    ila_rendered

    *System Requirements: Windows 8 or Higher

    • This tool is for ALL projects that use the built in CdUsb.Y marker file in their ISO.
    • USB's created with this tool are Legacy+UEFI Bootable (Should also boot from Apple hardware)
    • Grub support is experimental

    WriteMedia Plugin:  Enable the plugin to automatically launch the tool at the end of the build process (Burn will not begin until you select a USB) -or- Browse to an ISO from the interface
    Standalone: Drag and drop a compatible ISO onto the tool -or- use command line (e.g. usbtool.exe "f:\ull iso path\and-name-in\quot.es")

    THIS TOOL WILL FORMAT THE DISK YOU SELECT WHEN PROMPTED ---> PLEASE USE CAUTION <---

    USB Creation Tool (WriteMedia Plugin) v.8 *NEW: * usbtool_v8_plugin.7z (457.92 kB - downloaded 281 times.)
    Place plugin in: %BaseDir%\Projects\MyPlugins_Direct\WriteMedia  <-- Create if it doesn't exist

    USB Creation Tool (Standalone) v.8 *NEW: * usbtool_v8_standalone.7z (445.53 kB - downloaded 666 times.)
    Very simple, Very fast..

    ------------------------------------------------------------------

    10/28/18
    *Added XPE support
    *Fixed a formatting issue that would cause the program to crash when formatting (0 Files copied issue)
    *Fixed flipped location of boot partition
    *Began experimental Grub support

    07/06/18
    *Fixed an issue where files were copied with read only attributes from the ISO
    07/02/18
    *Fixed BCD attributes
    06/19/18
    *Added module for available drive letters
    06/14/18
    *Added module for boot partition size, corrects several bugs
    *Fixed incompatible ISO's from starting the program
    *Fixed 7PESE Project Compatibiity

    **I have not yet found a way to suppress the explorer windows from opening when the partition formats are complete.  They can be closed and ignored (Same as Rufus or any other USB burning software after format)[/list]
    « Last Edit: November 10, 2018, 02:33:03 AM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #1 on: June 13, 2018, 07:41:26 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Updated tool.  Major bug, anyone with an Empty CD\DVD drive present should have been getting an error.  It is fixed in v.2a
    If anyone has any issues please report them and I will be able to fix them faster.. I wonder if it worked at all for anyone testing before.. :confused:
    It is extremely fast compared to other burning tools..
    « Last Edit: June 13, 2018, 08:27:12 PM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #2 on: June 15, 2018, 03:17:57 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Found another bug where the drive size for the boot partition wouldn't calculate correctly and it would crash the entire process. (0 files copied error)  Fixed and updated in OP from v.2a ==> v.2b

    (The program is larger now because a module to get the source directory size was added and SFX constructor was used to keep the tool as a single exe.)
    « Last Edit: June 15, 2018, 03:19:23 AM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #3 on: June 16, 2018, 10:09:10 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261

    it should be noted that this tool can run from command line but needs the full path of the ISO in quotes to function properly.

    Example: usbtool.exe "c:\test build.iso"

    This way it is possible to create a plugin and add it to the end of your build process if desired. Using the variable for the ISO name in the plugin.
    Code: [Select]
    [Process]
    If,Not,ExistFile,%ScriptFile%,Exit,"%ScriptFile% NOT FOUND"
    Call,LinkType,LinkTypeV,%ScriptFile%,%ProjectDir%
    //-
    If,Not,ExistVar,%IsoFolder%,Set,%IsoFolder%,%BaseDir%\ISO
    If,-%IsoFolder%,Equal,-,Set,%IsoFolder%,%BaseDir%\ISO
    If,Not,ExistDir,%IsoFolder%,DirMake,%IsoFolder%
    Retrieve,FILE,%IsoFolder%\*.ISO,%IsoSelect%
    If,ExistFile,%IsoSelect%,Set,%ISOfileVar%,%IsoSelect%
    If,ExistFile,%ISOfileVar%,Run,%ScriptFile%,Launch_Program

    [Launch_Program]
    If,%ProjectName%,Equal,Win10XPE,Run,%ScriptFile%,Launch_XPE
    If,Not,%ProjectName%,Equal,Win10XPE,Run,%ScriptFile%,Launch_All

    [Launch_XPE]
    Echo,"Launching Utility..."
    Run,%ScriptFile%,Extract
    If,Not,ExistVar,%ISOfileVar%,Begin
      Set,%ISOfileVar%,%ISOfile%
      Set,%t%,""
      IniRead,%ProjectDir%\Script.Project,IniVariables,ISOfileVar,%t%
      If,Not,%t%,Equal,"",Set,%ISOfileVar%,%t%
    End
    If,Not,ExistFile,%ISOfileVar%,Message,"There is no ISO file to boot",Error,5
    If,Not,ExistFile,%ISOfileVar%,Exit,"There is no ISO file to boot"
    Start,,%ProgramEXE%,#$q%ISOfileVar%#$q,%BaseDir%\Projects\MyTools\%ProgramFolder%

    [Launch_All]
    Echo,"Launching Utility..."
    Run,%ScriptFile%,Extract
    If,Not,ExistVar,%ISOfileVar%,Begin
      Set,%ISOfileVar%,%ISOfile%
      Set,%t%,""
      IniRead,%ProjectDir%\Script.Project,IniVariables,ISOfileVar,%t%
      If,Not,%t%,Equal,"",Set,%ISOfileVar%,%t%
    End
    If,Not,ExistFile,%ISOfileVar%,Message,"There is no ISO file to boot",Error,5
    If,Not,ExistFile,%ISOfileVar%,Exit,"There is no ISO file to boot"
    Call,Start,,%ProgramEXE%,#$q%ISOfileVar%#$q,%BaseDir%\Projects\Tools\MyPlugins_Direct\%ProgramFolder%

    *Mostly already prepared code sourced from VirtualTest\Virtualbox plugin
    « Last Edit: June 17, 2018, 11:07:53 PM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #4 on: June 17, 2018, 01:35:10 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Plugin created...
    « Last Edit: June 17, 2018, 01:46:34 AM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #5 on: June 19, 2018, 07:55:20 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Updated plugin and standalone to v3. in OP

    Changed the way available driver letters are detected.
    Changed folder structure for temporary files
    Improved source folder size detection

    Should be error free.  LMK  :thumbsup: 

    Coming soon... Support for Grub.  Support for burning from within PE.  Support for Non-CdUsb.Y projects
    « Last Edit: June 19, 2018, 05:02:56 PM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #6 on: July 03, 2018, 12:08:18 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Updated Plugin and Standalone to v.4 in OP

    -Fixed an issue where both CSM BCD and UEFI BCD were read only on USB, and could not be edited

     :thumbsup:

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y
    « Reply #7 on: July 06, 2018, 05:31:57 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Just tested on 2.5" fixed 2tb external usb 3.0

    Burn time = 54.26 seconds for 2.7gb ISO (w/800mb WIM - Full NET - Java - Win10PESE)

    --------------------

    Plugin updated to v.5 in OP - Fixed an issue where files other than boot files would be copied to USB with read only attributes from ISO
    « Last Edit: July 26, 2018, 01:50:54 AM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y - Win10
    « Reply #8 on: October 28, 2018, 05:34:57 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Plugin and Standalone updated to v.6 in OP   :thumbsup:

    *Fixed - Corrected an issue that would cause the program to crash when formatting..
    *Fixed - Flipped the boot partition, the data partition is now the first partition (For easy access on live Win7 systems)
    Added - Experimental Grub support
    « Last Edit: October 28, 2018, 05:43:11 AM by bob.omb »

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y - Win10
    « Reply #9 on: October 28, 2018, 07:05:59 AM »

    Lancelot

    • Gena Baker
    • Grand Chef
    • *****
    • Date Registered: Sep 2010
    • Posts: 10350
    Hi Bob.Omb

    Looks cool  :great:
     Shame on me, I totally miss this topic.    :embarrassed:

    I will test on my next free time.  :thumbup:

    :turtle:

    Re: NEW - USB Creation Tool - For all SE projects that use CdUsb.Y - Win10
    « Reply #10 on: October 28, 2018, 05:21:56 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    I found a bug, if the program was aborted it would leave behind temp files, download links updated in op without version change (exe has version change in file info  0.6 ==> 0.6.5)
    « Last Edit: October 28, 2018, 05:24:01 PM by bob.omb »

    Re: NEW - USB Creation Tool - For SE and XPE projects with CdUsb.Y
    « Reply #11 on: October 28, 2018, 06:23:00 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Plugin and Standalone version updated to v.7 in OP

    Compatibility updates

    :great:

    It may not have a fancy GUI but it is definitely the fastest way to burn..   :cool:

    (This will burn to ANY disk not just USB's)
    « Last Edit: October 29, 2018, 01:13:48 AM by bob.omb »

    Re: NEW - USB Creation Tool
    « Reply #12 on: October 28, 2018, 11:37:27 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    Plugin and Standalone updated to v.8 in OP   

    *XPE Support has been removed (awaiting approval)
    « Last Edit: October 29, 2018, 01:41:30 AM by bob.omb »

    Re: NEW - USB Creation Tool
    « Reply #13 on: October 30, 2018, 01:36:07 AM »

    Prz42

    • Code Baker
    • Sr. Chef
    • ****
    • Date Registered: Jan 2014
    • Posts: 513

    USB Creation Tool (Standalone) v.8 *NEW: (Attachment Link)
    Very simple, Very fast..


    Opened up the file and windows 10 defender scanned it and deleted the file as a virus.

    Re: NEW - USB Creation Tool
    « Reply #14 on: October 30, 2018, 01:50:37 AM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    I made it from scratch... even the two exe's inside they just read text files, one checks the next two available drive letters and the other measures the size of the boot wim... and output new text files that the main exe reads and finishes the burn, its how I switch between autoit/cmd/powershell

    Its compressed into a single exe with SFXConstructor

    Virus free i assure you.. just make sure you select the correct disk  :thumbsup:

    Windows defender is the worst, it erased ImDisk yesterday when I downloaded an updated version..just disable it or add the file as an exception.. I used to use a removal tool to get rid of windows defender but it reinstalled itself in 1809.. (Windows moves so much faster without it -  I am noticing that windows defender slows down the burn process too, it scans all the files as they are being written to USB, the slowdown is very noticable when it is enabled.)

    Thats great news btw   :mellow:  (I have no idea how to fix that but it works great making USB's or burning project ISO's to HDD's lol)
    « Last Edit: October 30, 2018, 02:13:59 AM by bob.omb »

    Re: NEW - USB Creation Tool
    « Reply #15 on: October 30, 2018, 11:48:45 AM »

    Lancelot

    • Gena Baker
    • Grand Chef
    • *****
    • Date Registered: Sep 2010
    • Posts: 10350
    Windows defender is the worst, it erased ImDisk yesterday when I downloaded an updated version..
    Better not updating imdisk on project, I believe imdisk improvements will not effect ramdrive usage on PE.



    I used to use a removal tool to get rid of windows defender but it reinstalled itself in 1809..
    I had used an instruction to disable and put its icon to taskbar to see "red X" and be sure not reinstalled again with an update.

    :turtle:

    Re: NEW - USB Creation Tool
    « Reply #16 on: October 30, 2018, 07:27:56 PM »

    bob.omb

    • Code Baker
    • Grand Chef
    • *****
    • Location: USA
    • Date Registered: Jul 2017
    • Posts: 1261
    I was having issues with B: temp drive, updating IMDisk to the same version the latest XPE uses fixed the issue... (issues happened when programs were writing to the drive, like saving a ISO with powerISO after edits uses temp folder... It would produce an error until I updated IMdisk..)
    « Last Edit: October 30, 2018, 07:28:56 PM by bob.omb »

    Re: NEW - USB Creation Tool
    « Reply #17 on: October 31, 2018, 09:46:36 PM »

    Lancelot

    • Gena Baker
    • Grand Chef
    • *****
    • Date Registered: Sep 2010
    • Posts: 10350
      :thumbsup:

    It is 2.0.9.64  :great:

    Re: NEW - USB Creation Tool
    « Reply #18 on: November 27, 2019, 10:39:30 PM »

    CyberGonzo

    • Jr. Chef
    • **
    • Date Registered: Nov 2019
    • Posts: 16
    Per Lancelot's request I'm reporting an issue here.

    I tried to create a bootable USB stick on W10 following the procedure detailed here: http://theoven.org/index.php?topic=2980

    More in detail regarding the USB creation: http://theoven.org/index.php?topic=2980.msg35533#msg35533

    Quote
    Write Media / USB Creation tool
      I tried it twice and twice after selecting the ISO and it doing some work the application simply shut down without an error or anything.

    I don't have much more information
    I hope this helps maintain the plugin.

     

    Powered by EzPortal