How to create bootable ISO from command line?

Discussion in 'Windows 10' started by exslim, May 3, 2022.

  1. jojo2005

    jojo2005 MDL Novice

    Aug 26, 2009
    20
    1
    0
    @BAU

    The .reg entry wont work for me.
    The Entries are in the Registry, but not in the Context Menu.
     
  2. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,685
    60
    @jojo2005, the question is, Context Menu of what? The entry only gets added to Directories - i.e. the root of the iso files, containing:
    sources\
    support\
    boot\
    efi\
    setup.exe

    ... etc.
    It even works in windows 11 restricted menu, so I don't know why it does not work for you. It could be some other context menu hijacking the same entry (I've reused extract verb).
    Open cmd and enter: reg query HKCR\Directory\shell\extract\command
    And see what's there. It should contain gp 'Registry::HKCR\MakeISO'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jojo2005

    jojo2005 MDL Novice

    Aug 26, 2009
    20
    1
    0
    yes the entries are there, but with no effect.
     
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,316
    7,023
    210
    The registry entries should work (for directories only) but there's a shortcoming: You won't get the opportunity of entering a volume label for the ISO.
     
  5. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,685
    60
    @jojo2005,
    is the target folder writable (because the iso gets saved in the same path) or are you trying it directly on a mounted iso (lol)?
    what is your windows version?
    are you using a limited or administrator account?
    have you checked your antivirus status (maybe it gets blocked somehow)?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. jojo2005

    jojo2005 MDL Novice

    Aug 26, 2009
    20
    1
    0
    windows 10 pro 21H2 1706
    and iam admin
    normal win10 defender nothing else
     
  7. jojo2005

    jojo2005 MDL Novice

    Aug 26, 2009
    20
    1
    0
    I did some tests, and seems language related.
    When i switch my System to English Language, the context entrys are there and when i switch to my nativ language, the entrys are gone.
     
  8. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,685
    60
    I don't think it's needed. I've made images larger than 4.5 GB and can boot them just fine in VM / USB. I'm positive dual-layer dvd would also boot fine, most iso burners already take it into account or simply burn larger files last.
    The script as-is also puts larger files towards the end of the image.
    I might try to explicitly do it when I will refactor it.

    Might want to mention the OS language that it does not show in so that I can investigate it. Otherwise I won't be able to.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    So what tool should I use for turning modified install.wim files into isos.
     
  10. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,313
    1,938
    120
    UltraISO :)
     
  11. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Why not cdimage or oscdimg?
     
  12. jojo2005

    jojo2005 MDL Novice

    Aug 26, 2009
    20
    1
    0
    @Magmarock

    What do want exactly ?
    multiboot iso for CD/DVD (Bios and Uefi booting) --> cdimage, oscdimg
    or only bios booting ? third party tools like UltraISO (they cant both from CD/DVD)
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,027
    93,867
    450
    Because it's very easy to open an existing ISO in a ISO mastering tool, drag the install.wim into the sources folder and hit the save button.
     
  14. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    That makes sense. UI can make things a lot easier.
     
  15. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Actually I know for a fact that UltraISO can do both

    To create a boot iso that will boot in both secure uefi and legacy, select etfsboot.com than press ctrl + alt + i and than select efisys.bin

    Then you'll be able to boot into both.
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,027
    93,867
    450
    When you open an official or not previously modded ISO it will still have the same capabilities.

    Win 8+ ISO/DVD can boot both, USB needs to be specifically created to be bootable.
     
  17. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    I used to use imgburn to save modified iso, while it can boot into some uefi bios not all are compatible. For example: ISO's created with imgburn are not compatible with uefi virtual machines nor are they compatible ventory USB.
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,027
    93,867
    450
    IMGBurn was fine for video ISOs, never a good tool for OS ISO mastering.
     
  19. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Gotta start somewhere :>