MSI Difficulties

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • brolewis

    #1

    MSI Difficulties

    I am trying to deploy Python onto a number of laptops and have been
    trying to take advantage of Python 2.4's MSI installer. I have tried
    using the following commands to install, but to no avail:

    msiexec /i python-2.4.msi /qb ALLUSERS=1
    -- and --
    msiexec /i python-2.4.msi /qb ALLUSERS=1 ADDLOCAL=ALL

    However both of these commands fail to update the Windows path to
    include C:\Python24 and as such creates problems for me when trying to
    actually use Python. How can I rectify this situation? Is there a
    command I am missing? Do I need to manually update the Path, and if so,
    is there a programatic way I can do this? Thanks in advance

  • rbt

    #2
    Re: MSI Difficulties

    brolewis wrote:[color=blue]
    > I am trying to deploy Python onto a number of laptops and have been
    > trying to take advantage of Python 2.4's MSI installer. I have tried
    > using the following commands to install, but to no avail:
    >
    > msiexec /i python-2.4.msi /qb ALLUSERS=1
    > -- and --
    > msiexec /i python-2.4.msi /qb ALLUSERS=1 ADDLOCAL=ALL
    >
    > However both of these commands fail to update the Windows path to
    > include C:\Python24 and as such creates problems for me when trying to
    > actually use Python. How can I rectify this situation? Is there a
    > command I am missing? Do I need to manually update the Path, and if so,
    > is there a programatic way I can do this? Thanks in advance
    >[/color]

    I've always manually updated the path... but I suppose there may be a
    way to do this automatically during install or programatically (bat file
    or py script afterwards). Perhaps someone more knowledgeable can answer
    these questions?

    Best of luck!

    Comment

    • Martin v. Löwis

      #3
      Re: MSI Difficulties

      brolewis wrote:[color=blue]
      > However both of these commands fail to update the Windows path to
      > include C:\Python24 and as such creates problems for me when trying to
      > actually use Python.[/color]

      Not surprisingly so. The Python installation makes no attempt to update
      the PATH, and never did so, in any recent release.
      [color=blue]
      > How can I rectify this situation?[/color]

      There shouldn't be any need to. Just invoke .py files at the command
      line, and Windows will find python.exe itself. If you want to invoke
      it interactively, either use the Start menu, or invoke
      c:\python24\pyt hon.exe manually (use the Tab key to not spell out the
      entire path letter-by-letter).

      Regards,
      Martin

      Comment

      Working...