NSIS-created installers currently does not seem to elevate properly when Administrator Protection is enabled from the latest Windows 11 Insider Beta/Canary builds. When attempting to elevate, the installer would return "Unable to elevate , error 5". The latest installer tested was with qBitTorrent's NSIS installer, which is using the latest NSIS stable build 3.11; other tested installer includes FL Studio.
Stock NSIS just sets the request in the manifest, it does not pop up a dialog. This is probably the 3rd-party UAC plug-in and that has been deprecated.
Error 5 is probably "access denied". Process Monitor might tell you which file/directory or registry key the problem is with. I'm not sure if how Administrator Protection actually works is documented.
Last edit: Anders 2025-08-06