The nsi script, as far as I know, doesn't have a way to detect arm64 at compile time. Arm64 support still isn't complete yet. Maybe we could add a predefine to makensis / .nsi script that says what architecture it's targeting?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The better way to do it is like this:
The nsi script, as far as I know, doesn't have a way to detect arm64 at compile time. Arm64 support still isn't complete yet. Maybe we could add a predefine to makensis / .nsi script that says what architecture it's targeting?
Yes, you can check it at runtime but not at compile time currently.