abbodi1406 / BatUtil

Collection of batch scripts utilities for Windows
993 stars 241 forks source link

fix crash when executed on arm64 #5

Closed LinuxDoku closed 4 years ago

LinuxDoku commented 4 years ago

When this script is executed on a machine running "windows on arm" it crashes, cause it tries to execute the x64 binary "wimlib-imagex.exe". At the moment windows 10 is only capable of emulating x86 binaries on arm.

By detecting the cpu architecture and switching to the x86 binaries the script works fine.

abbodi1406 commented 4 years ago

I don't really support ARM64 as Host OS, as i never used it but thanks for the fix