The (now deprecated) 'py' launcher can be installed via an option in the (also deprecated) Python Installer. It then appears as its own entry in Windows Settings > Apps > Installed Apps.

I accidentally uninstalled the 'py' launcher in Settings. The obvious solution was to modify an existing python installation and add it. I clicked the three dots > Modify, which opened a 'Modify Setup' dialog.



However, in the 'Modify Setup' dialog, the option to install 'py' launcher 'for all users' is greyed out.
So: how does one reinstall the 'py' launcher on Windows after it has been uninstalled?
What I've tried:
1. Manually launching the dialog with admin privileges:
I located the popup dialog at C:\Users\, then launched it via powershell -c start-process -verb runas python-3.10.11-amd64.exe.
The option remains greyed out, claiming it 'requires admin privileges'.
2. Uninstalling my existing Python 3.10, then reinstalling it, this time ticking the box to install 'py' launcher. This works, but it seems unnecessary.
In my opinion, it seems strange that the 'py' launcher is tied to a specific python installation, as it's just an exe (C:\Windows\py.exe).
Any advice is appreciated. I am unsure whether to raise this as a github issue.