Creating a Bootable Windows Setup Disc with Linux

It’s quite annoying having to create Windows installation discs.

One thing I find is that every single time I do it – I keep having to check the internet, so here’s a note of the important bits.

  1. Extract the service pack
    <code>servicepack.exe /extract:C:\SP\</code>
  2. Integrate the service pack with the copied installation disc
    <code>update.exe /integrate:C:\OS_source\</code>
  3. Extract the boot image from the CD and copy it into the new O/S directory
  4. Create an iso with mkisofs
    <code>mkisofs -b bootimage.bin -hide bootimage.bin -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 -iso-level 2 -J -l -D -N -joliet-long -relaxed-filenames -V "NRMSVOL_EN" -o newCD.iso C:\OS_source\</code>

Creating the ISO works in both Windows (with a 32-bit version of mkisofs) and Linux.