Problem Installing Python 3.12.8 and 3.13.1

Hi everyone,
I’ve problem installing Python 3.12.8 and 3.13.1 with Intune and Symantec Client Management. The app won’t install, the installation is interrupted for some reason. The application was not detected after installation completed successfully (0x87D1041C). Previous versions have not had this problem. If I install it manually, there is no problem. The installation is running in the logged in users context without administrative privileges. The installation command is as follows, via a PS script::

# Install Python 3.13.1
Write-Host Python 3 NOT Installed
$Args = '/passive InstallAllUsers=0 TargetDir="C:\Python313-64" PrependPath=1 CompileAll=1 InstallLauncherAllUsers=0 Include_launcher=0'
Unblock-File -Path .\python-3.13.1-amd64.exe
Start-Process .\python-3.13.1-amd64.exe -Args $Args -Wait

In the en of the installation log file, I get the following errors:
8<- - - - - - - - - - - – - - - – - - - - - - - - - – - - - - - - - – - - - - –
D1D0:DFD8][2025-01-21T14:23:16]e000: Error 0x80070005: Failed create bundle working folder.
[D1D0:DFD8][2025-01-21T14:23:16]e000: Error 0x80070005: Failed to cache bundle to clean room.
[D1D0:DFD8][2025-01-21T14:23:16]e000: Error 0x80070005: Failed to cache to clean room.
[D1D0:DFD8][2025-01-21T14:23:16]e000: Error 0x80070005: Failed to run untrusted mode.

Maybe someone else recognizes it, but that doesn’t look like complaints from the Python installer itself, but rather one of your management tools - presumably Intune.

I don’t think so, the log files (%TEMP%\Setup_DATETIME_Failed.txt), see below, is most likely generated by the Python installer. I would like to know what these terms mean? I think it has to do with permissions?

Error 0x80070005: Failed create bundle working folder.
Error 0x80070005: Failed to cache bundle to clean
Error 0x80070005: Failed to cache to clean room.
Error 0x80070005: Failed to run untrusted mode.

[E7C0:CFFC][2025-01-22T06:00:08]i001: Burn v3.14.1.8722, Windows v10.0 (Build 26100: Service Pack 0), path: C:\Users\sdcbjse\AppData\Local\Temp\python-3.13.1-amd64.exe
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'ActionLikeInstalling' to value 'Installing'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'ActionLikeInstallation' to value 'Setup'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'ShortVersion' to value '3.13'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'ShortVersionNoDot' to value '313'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'WinVer' to value '3.13'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'WinVerNoDot' to value '313'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'InstallAllUsers' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'InstallLauncherAllUsers' to value '-1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'TargetDir' to value ''
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'DefaultAllUsersTargetDir' to value '[ProgramFiles64Folder]Python[WinVerNoDot]'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'TargetPlatform' to value 'x64'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'DefaultJustForMeTargetDir' to value '[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'OptionalFeaturesRegistryKey' to value 'Software\Python\PythonCore\[WinVer]\InstalledFeatures'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'TargetDirRegistryKey' to value 'Software\Python\PythonCore\[WinVer]\InstallPath'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'DefaultCustomTargetDir' to value ''
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'InstallAllUsersState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'InstallLauncherAllUsersState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'CustomInstallLauncherAllUsersState' to value '[InstallLauncherAllUsersState]'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'TargetDirState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'CustomBrowseButtonState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_core' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_exe' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_dev' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_lib' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_test' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_doc' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_tools' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_tcltk' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_pip' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_launcher' to value '-1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'Include_launcherState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_symbols' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_debug' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Include_freethreaded' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'Include_freethreadedState' to value 'enabled'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'LauncherOnly' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'BlockedLauncher' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'DetectedLauncher' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'DetectedOldLauncher' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'AssociateFiles' to value '-1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'Shortcuts' to value '1'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'PrependPath' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'AppendPath' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'CompileAll' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing numeric variable 'SimpleInstall' to value '0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Initializing string variable 'SimpleInstallDescription' to value ''
[E7C0:CFFC][2025-01-22T06:00:08]i009: Command Line: '/quiet InstallAllUsers=0 TargetDir=C:\Python313-64 PrependPath=1 CompileAll=1 InstallLauncherAllUsers=0 Include_launcher=0'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\sdcbjse\AppData\Local\Temp\python-3.13.1-amd64.exe'
[E7C0:CFFC][2025-01-22T06:00:08]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\sdcbjse\AppData\Local\Temp\'
[E7C0:CFFC][2025-01-22T06:00:08]e000: Error 0x80070005: Failed create **bundle working folder**.
[E7C0:CFFC][2025-01-22T06:00:08]e000: Error 0x80070005: Failed to cache bundle to **clean room**.
[E7C0:CFFC][2025-01-22T06:00:08]e000: Error 0x80070005: Failed to cache to **clean room**.
[E7C0:CFFC][2025-01-22T06:00:08]e000: Error 0x80070005: Failed to run **untrusted mode**.

Probably only the last four lines are of any interest - the error code 0x80070005 indicates a permission problem encountered by the Windows installer subsystem. Sorry I don’t know that stuff at all so no hints from me.