Difference between revisions of "Python"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Add upgrade/remove commands, and update to version 2.5.1)
Line 1: Line 1:
This is a silent installer for Python.
+
[http://www.python.org Python] 2.4 and higher are available as MSI packages, which are documented at http://www.python.org/download/releases/2.5/msi/
  
This installer can be used for the [http://www.python.org distutils Python distribution] (www.python.org). AFAIK it will not work for Python < 2.4.
+
<pre>
 +
<?xml version="1.0" encoding="UTF-8"?>
  
This configuration installs to %PROGRAMFILES%\Python and not to the default location C:\Python24 in order to show how to configure an arbitrary path:
+
<packages>
 
+
  <package
<package
+
 
     id="python"
 
     id="python"
 
     name="Python"
 
     name="Python"
     revision="0"
+
     revision="2511"
     reboot="false"
+
     priority="0"
     priority="0">
+
     reboot="false">
    <check type="file" condition="exists" path="C:\Programme\Python\python.exe" />
+
 
    <install cmd="msiexec /q /i %SOFTWARE%\python\python-2.4.1.msi TARGETDIR=&quot;%PROGRAMFILES%\Python&quot; ALLUSERS=1 REBOOT=ReallySuppress" />
+
  <check type="uninstall" condition="exists" path="Python 2.5.1"/>
</package>
+
 
 +
  <install cmd='msiexec /qn /i "%SOFTWARE%\python\python-2.5.1.msi" ALLUSERS=1'/>
 +
 
 +
  <upgrade cmd='msiexec /qn /i "%SOFTWARE%\python\python-2.5.1.msi" ALLUSERS=1'/>
 +
 
 +
  <remove cmd='msiexec /qn /x{31800004-6386-4999-a519-518f2d78d8f0}'/>
 +
 
 +
  </package>
 +
</packages>
 +
</pre>
  
See also http://www.python.org/download/releases/2.5/msi/
 
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 23:16, 15 January 2008

Python 2.4 and higher are available as MSI packages, which are documented at http://www.python.org/download/releases/2.5/msi/

<?xml version="1.0" encoding="UTF-8"?>

<packages>
  <package
    id="python"
    name="Python"
    revision="2511"
    priority="0"
    reboot="false">

  <check type="uninstall" condition="exists" path="Python 2.5.1"/>

  <install cmd='msiexec /qn /i "%SOFTWARE%\python\python-2.5.1.msi" ALLUSERS=1'/>

  <upgrade cmd='msiexec /qn /i "%SOFTWARE%\python\python-2.5.1.msi" ALLUSERS=1'/>

  <remove cmd='msiexec /qn /x{31800004-6386-4999-a519-518f2d78d8f0}'/>

  </package>
</packages>