This is how I do it Code: [Select][Variables]%AddPath%=c:\this\new\Directory[Process]RegHiveLoad,Tmp_System,%RegSystem%RegRead,HKLM,"Tmp_System\ControlSet001\Control\Session Manager\Environment",Path,%CurrentPath%RegWrite,HKLM,0x2,"Tmp_System\ControlSet001\Control\Session Manager\Environment",Path,"%CurrentPath%;%AddPath%"RegHiveUnLoad,Tmp_System
https://www.python.org/ftp/python/3.7.4/https://www.python.org/ftp/python/3.8.0/
You are welcome,The way you handle that string in your code...
Addition Python Windows Dir Files x64Code: [Select]X:\Windows\py.exeX:\Windows\pyshellext.amd64.dllX:\Windows\pyw.exeCode: [Select]RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.File\Shell\editwithidle,MUIVerb,"&Edit with IDLE"RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.File\Shell\editwithidle,Subcommands,RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.File\Shell\editwithidle\shell\edit37,MUIVerb,"Edit with IDLE 3.7 (64-bit)"RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.File\Shell\editwithidle\shell\edit37\command,,"#$q%PE_Programs%\%ProgramFolder%\pythonw.exe#$q -m idlelib #$q#$pL#$q #$p*"RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.NoConFile\Shell\editwithidle,MUIVerb,"&Edit with IDLE"RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.NoConFile\Shell\editwithidle,Subcommands,RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.NoConFile\Shell\editwithidle\shell\edit37,MUIVerb,"Edit with IDLE 3.7 (64-bit)"RegWrite,HKLM,0x1,Tmp_Default\Software\Classes\Python.NoConFile\Shell\editwithidle\shell\edit37\command,,"#$q%PE_Programs%\%ProgramFolder%\pythonw.exe#$q -m idlelib #$q#$pL#$q #$p*"
Code: [Select]RegWrite,HKLM,0x4,Tmp_Default\Software\Python\PythonCore\3.7\IdleShortcuts,,1RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,dev,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,Shortcuts,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,exe,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,lib,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,test,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,doc_shortcut,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,doc,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,tools,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,tcltk,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,pip,3.7.4150.0RegWrite,HKLM,0x1,Tmp_Default\Software\Python\PythonCore\3.7\InstalledFeatures,path,3.7.4150.0