Inno Setup 6.2.2 version had similar issue on Windows 11. Instead, install its 6.3.3 version. I hope it helps you.