Win32: python-network-installation?

Holger Jannsen holger at phoenix-edv.netzservice.de
Wed Jul 7 09:50:40 EDT 1999


To stop some people burning their brains I've made some
of the job already:

I summarized all registry-entries from my installation
and changed paths inside to server-UNC-Paths (file appended!). 
I've made a test-server installation on my server 'as1' 
where the directory 'python' is opened for everybody inside
intranet.
To reach Python-dlls I copied the dlls '\WinNT\System32\PythonCOM15.dll'
and '\WINNT\System32\Python15.dll' to a directory '\\as1\python\dll'
onto the server.

Just tested that construction:
1)starting python-scripts via double-click works fine
2)starting python.exe or pythonw.exe with 
 '\\as1\python\pythonw.exe' works fine ,too 
3)only '\\as1\python\pythonwin\pythonwin.exe' occurs a
 'Microsoft Visual C++ Runtime Library'-RuntimeError:
 Program: \\as1\python\pythonwin\pythonwin.exe
 abnormal program termination

What do you think, does I forget any dll? Why does that error (3)
occur? (Perhaps I need that pythonwin.exe to check some
scripts when sitting at a client...?!)

What's about that registry-file? Do I really need all that entries?
What entries could I dismiss? 

Are there other (better) ways to get a network installation for Win32-Clients?

by,
Holger



--------------------ClientReg.reg------------
REGEDIT4

[HKEY_CLASSES_ROOT\.py]
@="Python.File"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\.pyc]
@="Python.CompiledFile"

[HKEY_CLASSES_ROOT\.pyc]
@="Python.CompiledFile"

[HKEY_CLASSES_ROOT\.pyo]
@="Python.CompiledFile"

[HKEY_CLASSES_ROOT\.pyw]
@="Python.NoConFile"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\Python.CompiledFile]
@="Compiled Python File"

[HKEY_CLASSES_ROOT\Python.CompiledFile\DefaultIcon]
@="\\\\as1\\Python\\pyc.ico"

[HKEY_CLASSES_ROOT\Python.CompiledFile\shell]

[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open]

[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]
@="\\\\as1\\Python\\python.exe \"%1\" %*"

[HKEY_CLASSES_ROOT\Python.File]
@="Python File"

[HKEY_CLASSES_ROOT\Python.File\AutoRegister]
@="\\\\as1\\Python\\DLL\\PythonCOM15.dll"

[HKEY_CLASSES_ROOT\Python.File\DefaultIcon]
@="\\\\as1\\Python\\Py.ico"

[HKEY_CLASSES_ROOT\Python.File\shell]

[HKEY_CLASSES_ROOT\Python.File\shell\Edit]

[HKEY_CLASSES_ROOT\Python.File\shell\Edit\command]
@="\\\\as1\\Python\\Pythonwin\\pythonwin.exe /edit \"%1\""

[HKEY_CLASSES_ROOT\Python.File\shell\open]

[HKEY_CLASSES_ROOT\Python.File\shell\open\command]
@="\\\\as1\\Python\\python.exe \"%1\" %*"

[HKEY_CLASSES_ROOT\Python.NoConFile]
@="Python File (no console)"

[HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon]
@="\\\\as1\\Python\\Py.ico"

[HKEY_CLASSES_ROOT\Python.NoConFile\shell]

[HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit]

[HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit\command]
@="\\\\as1\\Python\\Pythonwin\\pythonwin.exe /edit \"%1\""

[HKEY_CLASSES_ROOT\Python.NoConFile\shell\open]

[HKEY_CLASSES_ROOT\Python.NoConFile\shell\open\command]
@="\\\\as1\\Python\\pythonw.exe \"%1\" %*"


[HKEY_CURRENT_USER\Software\Python]

[HKEY_CURRENT_USER\Software\Python\Python for Win32]

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Editor]
"Tab Size"=dword:00000008
"Indent Size"=dword:00000008
"Use Tabs"=dword:00000001
"Auto Reload"=dword:00000001
"Backup Type"=dword:00000003
"Smart Tabs"=dword:00000000
"Default Font"="(-134217665, 0, 200, 0, 0, 0, 49, 'Courier')"

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Format]
"Syntax"="{7: (-1073741821, 0, 200, 0, 0), 6: (-1073741821, 0, 200, 0, 0), 5:
(-1073741821, 1, 200, 0, 8388608), 4: (-1073741821, 0, 200, 0, 8421376), 3: (-1073741821,
0, 200, 0, 128), 2: (-1073741821, 2, 200, 0, 32768), 1: (-1073741821, 1, 200, 0, 255)}"

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Interactive Window]
"left"=dword:0000001a
"top"=dword:00000043
"right"=dword:00000376
"bottom"=dword:00000176
"FormatTitle"="(-536870897, 0, 220, 0, 16711680, 184, 34, 'Arial')"
"FormatInput"="(-134217665, 0, 200, 0, 0, 0, 49, 'Courier')"
"FormatOutput"="(-134217665, 0, 200, 0, 8421376, 0, 49, 'Courier')"
"FormatOutputError"="(-134217665, 0, 200, 0, 255, 0, 49, 'Courier')"
"Show at startup"=dword:00000001

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Main Window]
"left"=dword:0000007b
"top"=dword:000000bf
"right"=dword:0000037b
"bottom"=dword:000002d8

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Python]

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Python Trace Collector]
"left"=dword:00000016
"top"=dword:00000016
"right"=dword:0000034c
"bottom"=dword:000001da

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Recent File List]

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Settings]
"Recent File List Size"=dword:0000000a

[HKEY_CURRENT_USER\Software\Python\Python for Win32\ToolbarDefault-Bar0]
"BarID"=dword:0000e801

[HKEY_CURRENT_USER\Software\Python\Python for Win32\ToolbarDefault-Bar1]
"BarID"=dword:0000e800
"XPos"=dword:00000071
"YPos"=dword:fffffffe
"MRUWidth"=dword:00000153
"Docking"=dword:00000001
"MRUDockID"=dword:0000e81b
"MRUDockLeftPos"=dword:00000071
"MRUDockTopPos"=dword:fffffffe
"MRUDockRightPos"=dword:000001d4
"MRUDockBottomPos"=dword:0000001e
"MRUFloatStyle"=dword:00002004
"MRUFloatXPos"=dword:80000000
"MRUFloatYPos"=dword:00000000

[HKEY_CURRENT_USER\Software\Python\Python for Win32\ToolbarDefault-Bar2]
"BarID"=dword:0000e81b
"Bars"=dword:00000003
"Bar#0"=dword:00000000
"Bar#1"=dword:0000e800
"Bar#2"=dword:00000000

[HKEY_CURRENT_USER\Software\Python\Python for Win32\ToolbarDefault-Summary]
"Bars"=dword:00000003
"ScreenCX"=dword:00000400
"ScreenCY"=dword:00000300

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Tools Menu]

[HKEY_CURRENT_USER\Software\Python\Python for Win32\Tools Menu\1]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.py]
@="Python.File"
"Content Type"="text/plain"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyc]
@="Python.CompiledFile"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyo]
@="Python.CompiledFile"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pyw]
@="Python.NoConFile"
"Content Type"="text/plain"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile]
@="Compiled Python File"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\DefaultIcon]
@="\\\\as1\\Python\\pyc.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]
@="\\\\as1\\Python\\python.exe \"%1\" %*"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File]
@="Python File"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\AutoRegister]
@="\\\\as1\\python\\DLL\\PythonCOM15.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\DefaultIcon]
@="\\\\as1\\Python\\Py.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\Edit]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\Edit\command]
@="\\\\as1\\Python\\Pythonwin\\pythonwin.exe /edit \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]
@="\\\\as1\\Python\\python.exe \"%1\" %*"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile]
@="Python File (no console)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\DefaultIcon]
@="\\\\as1\\Python\\Py.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shell\Edit]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shell\Edit\command]
@="\\\\as1\\Python\\Pythonwin\\pythonwin.exe /edit \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.NoConFile\shell\open\command]
@="\\\\as1\\Python\\pythonw.exe \"%1\" %*"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Python.exe]
@="\\\\as1\\Python\\Python.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Pythonwin.exe]
@="\\\\as1\\Python\\Pythonwin\\Pythonwin.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Dll]
@="\\\\as1\\python\\DLL\\Python15.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Help]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Help\Main Python Documentation]
@="\\\\as1\\Python\\Doc\\index.html"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Help\Python COM Reference]
@="\\\\as1\\Python\\win32com\\win32com.hlp"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Help\Pythonwin Reference]
@="\\\\as1\\Python\\Pythonwin\\Help\\Pythonwin.hlp"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\Help\Win32 Extensions]
@="\\\\as1\\Python\\win32\\Help\\Python Win32 Extensions.hlp"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\InstallPath]
@="\\\\as1\\Python"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\InstallPath\InstallGroup]
@="Python 1.5"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\Pythonwin]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\Pythonwin\Build]
@="123"
---------------End of ClientReg.reg------------




More information about the Python-list mailing list