createWindowsInstaller method

  1. @override
Future<void> createWindowsInstaller(
  1. String diskId, {
  2. required String isoPath,
  3. String? wimlibPath,
  4. bool verify = true,
  5. MediaProgressCallback? onProgress,
})
override

Erases a whole disk and copies a Windows ISO into a FAT32 UEFI layout. Oversized install.wim needs a caller-installed wimlib-imagex executable; wimlibPath overrides the usual Homebrew locations. No legacy BIOS setup. verify compares copied files and checks split WIM integrity.

Implementation

@override
Future<void> createWindowsInstaller(
  String diskId, {
  required String isoPath,
  String? wimlibPath,
  bool verify = true,
  MediaProgressCallback? onProgress,
}) =>
    _mediaOperation(
        'createWindowsInstaller',
        diskId,
        {
          'isoPath': isoPath,
          if (wimlibPath != null) 'wimlibPath': wimlibPath,
          'verify': verify,
        },
        onProgress);