New code splits the self-extracting executable from the pythonlauncher , so that the launcher/cleanup code is always run from a temp folder, the pythonlauncher code simply invokes python.exe with appropriate arguments and then runs cleanup code to remove the temporary folder and itself. Rev might also address #347529 and #341607 (haven't tested those aspects yet).
New code splits the self-extracting executable from the pythonlauncher , so that the launcher/cleanup code is always run from a temp folder, the pythonlauncher code simply invokes python.exe with appropriate arguments and then runs cleanup code to remove the temporary folder and itself. Rev might also address #347529 and #341607 (haven't tested those aspects yet).