Started the python 3.5.2 exe in session 0 using the task scheduler, 2 instances of python are running in task manager and the process gets hanged, killing the process did not create any logs in %temp% folder.
Are you running python.exe without a script or command? That runs the REPL in session 0, which will block reading from stdin. It's harmless to kill this process. The REPL could detect that it's running in session 0 and exit. However, I'm not in favor of such a change because sometimes I intentionally run in session 0 via psexec.exe.
Sorry I did not understand your comment, what is REPL? I am not using any script just scheduling a task to run python using this command 'python-3.5.2-x86.exe' with /quiet option. Are u telling me to kill the 2nd process that is getting created by the installer and the installation will work fine?
I tested installing 3.10 in session 0 for the current user, as a user with the batch logon right. The installation succeeded. If you're running as SYSTEM, then installing for the current user doesn't see reasonable to me. I won't test that case. I tested installing 3.10 in session 0 as SYSTEM, with the option InstallAllUsers=1. The installation succeeded. There's a caveat (bpo-25166) that the installer registers the uninstall record only for the current user. The SYSTEM account uses the default profile, so the uninstall record is stored under "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Uninstall". In this case, to uninstall you have to run the installer as SYSTEM with the /uninstall option.
History
Date
User
Action
Args
2022-04-11 14:58:37
admin
set
github: 72531
2021-03-13 18:58:35
eryksun
set
status: open -> closedresolution: works for memessages: + stage: resolved
2016-10-03 12:37:11
spooja
set
messages: +
2016-10-03 11:51:03
eryksun
set
messages: + components: + Installationtitle: Python 3.5.2 hangs when running in session 0 -> Python 3.5.2 installer hangs when run in session 0