batch files (Python-3.6.1)

These are to add Registry keys for Python-3.6.1.

C:\>TYPE hklm.bat
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.py^
 /t REG_SZ /d Python.File
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.py^
 /v "Content Type" /t REG_SZ /d text/plain

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyc^
 /t REG_SZ /d Python.CompiledFile

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyd^
 /t REG_SZ /d Python.Extension

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyo^
 /t REG_SZ /d Python.CompiledFile

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyw^
 /t REG_SZ /d Python.NoConFile
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyw^
 /v "Content Type" /t REG_SZ /d text/plain

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyz^
 /t REG_SZ /d Python.ArchiveFile
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyz^
 /v "Content Type" /t REG_SZ /d application/x-zip-compressed

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyzw^
 /t REG_SZ /d Python.NoConArchiveFile
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyzw^
 /v "Content Type" /t REG_SZ /d application/x-zip-compressed

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.ArchiveFile^
 /t REG_SZ /d "Python Zip Application File"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.ArchiveFile\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",5
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.ArchiveFile\shell\open\command^
 /t REG_SZ /d "\"C:\WINDOWS\py.exe\" \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.ArchiveFile\shellex\DropHandler^
 /t REG_SZ /d {BEA218D2-6950-497B-9434-61683EC065FE}

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile^
 /t REG_SZ /d "Compiled Python File"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",2
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command^
 /t REG_SZ /d "\"C:\WINDOWS\py.exe\" \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shellex\DropHandler^
 /t REG_SZ /d {BEA218D2-6950-497B-9434-61683EC065FE}

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.Extension^
 /t REG_SZ /d "Python Extension Module"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.Extension\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",3

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File^
 /t REG_SZ /d "Python File"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",1
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit36\command^
 /t REG_SZ /d "\"C:\Python36\pythonw.exe\" -m idlelib \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit36^
 /v MUIVerb /t REG_SZ /d "Edit with IDLE 3.6 (64-bit)"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\Shell\editwithidle^
 /v MUIVerb /t REG_SZ /d "&Edit with IDLE"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\Shell\editwithidle^
 /v Subcommands /t REG_SZ
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\Shell\open\command^
 /t REG_SZ /d "\"C:\WINDOWS\py.exe\" \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shellex\DropHandler^
 /t REG_SZ /d {BEA218D2-6950-497B-9434-61683EC065FE}

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConArchiveFile^
 /t REG_SZ /d "Python Zip Application File (no console)"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConArchiveFile\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",5
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConArchiveFile\shell\open\command^
 /t REG_SZ /d "\"C:\WINDOWS\pyw.exe\" \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConArchiveFile\shellex\DropHandler^
 /t REG_SZ /d {BEA218D2-6950-497B-9434-61683EC065FE}

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile^
 /t REG_SZ /d "Python File (no console)"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\DefaultIcon^
 /t REG_SZ /d \"C:\WINDOWS\py.exe\",1
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\Shell\editwithidle\shell\edit36\command^
 /t REG_SZ /d "\"C:\Python36\pythonw.exe\" -m idlelib \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\Shell\editwithidle\shell\edit36^
 /v MUIVerb /t REG_SZ /d "Edit with IDLE 3.6 (64-bit)"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\Shell\editwithidle^
 /v MUIVerb /t REG_SZ /d "&Edit with IDLE"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\Shell\editwithidle^
 /v Subcommands /t REG_SZ
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\Shell\open\command^
 /t REG_SZ /d "\"C:\WINDOWS\pyw.exe\" \"%%L\" %%*"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shellex\DropHandler^
 /t REG_SZ /d {BEA218D2-6950-497B-9434-61683EC065FE}

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore^
 /v DisplayName /t REG_SZ /d "Python Software Foundation"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore^
 /v SupportUrl /t REG_SZ /d http://www.python.org/
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6^
 /v DisplayName /t REG_SZ /d "Python 3.6 (64-bit)"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6^
 /v SupportUrl /t REG_SZ /d http://www.python.org/
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6^
 /v SysArchitecture /t REG_SZ /d 64bit
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6^
 /v SysVersion /t REG_SZ /d 3.6
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6^
 /v Version /t REG_SZ /d 3.6.1
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\Idle^
 /t REG_SZ /d C:\python\Lib\idlelib\idle.pyw
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v dev /t REG_SZ /d 3.6.1150.0
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v exe /t REG_SZ /d 3.6.1150.0
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v lib /t REG_SZ /d 3.6.1150.0
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v tcltk /t REG_SZ /d 3.6.1150.0
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v tools /t REG_SZ /d 3.6.1150.0
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstallPath^
 /t REG_SZ /d C:\python\
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstallPath^
 /v ExecutablePath /t REG_SZ /d C:\python\python.exe
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstallPath^
 /v WindowedExecutablePath /t REG_SZ /d C:\python\pythonw.exe
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\PythonPath^
 /t REG_SZ /d C:\python\Lib\;C:\python\DLLs\

reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Python\PyLauncher^
 /t REG_SZ /d C:\WINDOWS\py.exe
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Python\PyLauncher^
 /v AssociateFiles /t REG_DWORD /d 0x1
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Python\PyLauncher^
 /v InstallDir /t REG_SZ /d C:\WINDOWS\
C:\>

C:\>TYPE help.bat
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\Help\Main Python Documentation"^
 /t REG_SZ /d C:\python\Doc\python361.chm
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6\InstalledFeatures^
 /v doc /t REG_SZ /d 3.6.1150.0
C:\>

No comments:

Post a Comment