When running the script on some Windows 11 machines, the Metasploit installer fails with this error:
[Error]: Failed to launch the installer: Command '['msiexec', '/i', 'C:\Users\user-name\metasploit\metasploit.msi']' returned non-zero exit status 1603.
💡 Possible Causes
- Script not run with Administrator privileges
- Metasploit already installed or partially installed
- Target directory is locked or in use
- Corrupted MSI download
- Another installation process already running
I am still working on a solution for the bug, so stay tuned !

When running the script on some Windows 11 machines, the Metasploit installer fails with this error:
[Error]: Failed to launch the installer: Command '['msiexec', '/i', 'C:\Users\user-name\metasploit\metasploit.msi']' returned non-zero exit status 1603.
💡 Possible Causes
I am still working on a solution for the bug, so stay tuned !