Is there a way to just install the Py launcher from a Python distribution, and nothing more?
I’m building a Python version management tool (a wrapper around running installer with GUI and registry reading), but installing the launcher requires me requesting administrator privilege, which I would like to avoid. What I want to do is to ship the Py launcher with the tool, so I only need to elevate one time during setup, and avoid it later altogether with just-for-me installations.
One approach I tried is to ship a Python installer with my installer, and run
installer.exe /quiet LauncherOnly=1
during setup. This installs the launcher correctly, but still registers the Python version as installed. I know I can remove it with
installer.exe /uninstall
but that means user interaction would be required, which is less than ideal.
I dug into the Python source and found the launcher installer is built separately, but couldn’t find it being distributed separately, only as a part of the main installer. Not being familiar with Visual Studio, I couldn’t figure out how to build it independently either.
Any suggestion how I can proceed? Either pointers on how to resolve the installation problem, or how I can build/find a standalone Py launcher installer? (I know there are some binaries on the original project page, but they are more than two years old, and are not likely to receive any updates in the future.)