Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74555

Re: how to msi install Python to non-default target dir?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; '64-bit': 0.07; 'indicating': 0.07; 'installed.': 0.07; '32-bit': 0.09; '[1]:': 0.09; 'assuming': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'missed': 0.12; 'windows': 0.15; '64-bit,': 0.16; ':-(': 0.16; 'command,': 0.16; 'files"': 0.16; 'non-default': 0.16; 'subject:default': 0.16; 'subject:install': 0.16; 'subject:non': 0.16; 'followed': 0.16; 'prevent': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'not,': 0.20; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'skip:% 10': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'idea': 0.28; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; 'went': 0.31; 'getting': 0.31; 'fighting': 0.31; 'quotes': 0.31; 'file': 0.32; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'hi,': 0.36; 'files': 0.38; 'issue': 0.38; 'does': 0.39; 'structure': 0.39; 'sure': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'commands': 0.60; "you're": 0.61; 'name': 0.63; 'hour': 0.70; 'jul': 0.74; 'to:addr:yahoo.com': 0.81; 'silently': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=ro78If6jZ51+WFo+R59v2VbY63UJ32IuY4dg6u1r8nE=; b=XDUa7KaHRqqT8bsbNdTHoVqhoaiAWy/wmfBFFdFkgMtk7lAHUtA5J8W8uHvDhSPOc9 pbQWdYOGl8MvL8cZBO5p1EL8kLc+SA8G8d96TBXEX4lCefRhKaK+lWvQeSiZIEG+a8bS 5vlG+Cr+twA35gQ9QcYjLNOpRr1Kqnybv5kCylV+ZbmrWfVmgFware6cWs+UX/Du9B5G GEe253wvQEGojmGQEMyVg7abLzQoGLqFQ8OVtI7R26A4aMLK+4Y3cKO3RNVTkB1UL0fD n2iEiY0s0H3PWKWmoK0rGyKnXrJYVLAvKqs26v+IISZp1XRDlcF1qLGa1itzfE+L84qI vLOg==
X-Received by 10.182.27.225 with SMTP id w1mr26760493obg.64.1405518471702; Wed, 16 Jul 2014 06:47:51 -0700 (PDT)
MIME-Version 1.0
Sender zachary.ware@gmail.com
In-Reply-To <1405517362.434.YahooMailNeo@web163802.mail.gq1.yahoo.com>
References <1405517362.434.YahooMailNeo@web163802.mail.gq1.yahoo.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date Wed, 16 Jul 2014 08:47:31 -0500
X-Google-Sender-Auth ZvW0C7v6zYLVnh2u1grVLS7X018
Subject Re: how to msi install Python to non-default target dir?
To Albert-Jan Roskam <fomcl@yahoo.com>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11878.1405518479.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405518479 news.xs4all.nl 2969 [2001:888:2000:d::a6]:58985
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74555

Show key headers only | View raw


On Wed, Jul 16, 2014 at 8:29 AM, Albert-Jan Roskam
<fomcl@yahoo.com.dmarc.invalid> wrote:
> hi,
>
> I am trying to create a .bat file where (among other things) Python will have to be silently installed.
> It needs to be installed to the non-default location "c:\program files\python27". Any idea how this can be done?
> I keep getting the 'Help' menu, indicating that something went wrong. I've been fighting with this for like an hour now! :-(
>
> I followed this structure [1]: msiexec /i (yourFile).msi TARGETDIR=C:\YourBin\YourApp
>
> The following does NOT work (I added the cd/md commands later, idem for the /qb)
>
> y:\>set PYTHONDIR="c:\program files\python27"
> y:\>cd /d "c:\program files"
> y:\>md python27
> y:\>cd /d %temp%
> y:\>msiexec /i python-2.7.3 TARGETDIR="%PYTHONDIR%" /qb

I'm assuming this is retyped and you missed the '.msi' in retyping?
If not, that may be your issue.  Also, 'set' doesn't require quotes
around a value with spaces, and you're also quoting %PYTHONDIR% when
you use it in the msiexec command, so you're actually double-quoting
the dir name (which could also be the issue).  And, not necessarily an
issue that would prevent installing, but you may want to make sure
you're in the correctly-bitted Program Files directory if you're on
64-bit Windows (%PROGRAMFILES% for 64-bit, %PROGRAMFILES(x86)% for
32-bit; %PROGRAMFILES(x86)% will not be defined on 32-bit Windows or
in a 32-bit process on 64-bit Windows).

-- 
Zach

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: how to msi install Python to non-default target dir? Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-16 08:47 -0500

csiph-web