Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 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; 'wednesday,': 0.07; '32-bit': 0.09; '[1]:': 0.09; 'assuming': 0.09; 'msi': 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; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'not,': 0.20; 'cc:addr:python.org': 0.22; 'install': 0.23; 'skip:% 10': 0.24; 'environment': 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; "i'm": 0.30; '(which': 0.31; 'went': 0.31; 'getting': 0.31; 'fighting': 0.31; 'quotes': 0.31; 'file': 0.32; '-----': 0.33; 'could': 0.34; 'something': 0.35; 'point.': 0.35; 'but': 0.35; 'thanks': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'thank': 0.38; 'easiest': 0.38; 'files': 0.38; 'issue': 0.38; 'does': 0.39; 'subject:': 0.39; 'structure': 0.39; 'sure': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'commands': 0.60; 'received:98.137': 0.60; "you're": 0.61; 'name': 0.63; 're:': 0.63; 'july': 0.63; 'to:addr:gmail.com': 0.65; 'header:Reply- To:1': 0.67; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'received:98.136': 0.69; 'hour': 0.70; 'jul': 0.74; 'received:bullet.mail.gq1.yahoo.com': 0.84; 'silently': 0.84; 'sorry.': 0.91; 'ware': 0.91 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 501582.36449.bm@omp1090.mail.gq1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1405521180; bh=5pjnq9fd6/YiAmi/v+lWTNJAcr589Trsbn6JRg+8PLY=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=CreiUad+5HOQD7Q4MMK2HUegfb5fmmt9XeuKgaG0OFxX8qUiPGv0POpXnBSa66OZ8u+u2n2epfyHCz1aoPEBIewKFiFuRoqOo7IUHlywG67JVEkBa6WLg5N+7rVT0Nz/cQjerQpHxHRkwaIi7Q6zwdELg3MUO/DFIrnc3pag8PE= X-YMail-OSG: XtZ4Y6IVM1nVvlfLoYSRs1s8hLtFEgGnEKn4L3t70Wsq9cW XPI7F3Omu9lSDRwbjjH7vwzZH7Zxtbygywm0GaHsBOn.5ARsOmfOK95kUOBt w8fkY.DcyikQ5bhdv42Ik.C1lTzPhUKSprX83lFyrjdEFN.qX4RcWHU7inkO F_kSEY37eIHxabc.MP2g2g7so2b1tTWhbMVpktSngsohXapg6e7e4JrgS2Pz Z4haga5AvF0kIrimEtyTIQ0mB3q5tkSVzJFLpDrSblf5_VCMh8a4fF0O.si2 SqhXYdtMtaH7Zx12Rd5E4j8WjGwtpOxTh5070b18KVMPuvkCu_SslfadvdkS HDAn31puQrnaodrc6m7DrArjkJaewIpAMfwLOUFZ9R3gPPbKzCTH.f2rp6Fh OjURzrTzafh6TQq_0yEb9y6DA3ODOPYZDKevo0j7r7tk.p4WobRL9O2wM7vl W32nzBAYk2TrZx.Hi5P51QDOgN6rUDggMUB6WbWaf22zOInG.2HX9SE5YixT xpAf4EbBedyTvT9e0vLtrd8khreUNrJxJ.o_XX8QAqNu8dhzMxA-- X-Rocket-MIMEInfo: 002.001, wqAKLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQo.IEZyb206IFphY2hhcnkgV2FyZSA8emFjaGFyeS53YXJlK3B5bGlzdEBnbWFpbC5jb20.Cj4gVG86IEFsYmVydC1KYW4gUm9za2FtIDxmb21jbEB5YWhvby5jb20.Cj4gQ2M6IFB5dGhvbiA8cHl0aG9uLWxpc3RAcHl0aG9uLm9yZz4KPiBTZW50OiBXZWRuZXNkYXksIEp1bHkgMTYsIDIwMTQgMzo0NyBQTQo.IFN1YmplY3Q6IFJlOiBob3cgdG8gbXNpIGluc3RhbGwgUHl0aG9uIHRvIG5vbi1kZWZhdWx0IHRhcmdldCBkaXI_Cj4gCj4gT24gV2VkLCBKdWwBMAEBAQE- X-Mailer: YahooMailWebService/0.8.194.680 References: <1405517362.434.YahooMailNeo@web163802.mail.gq1.yahoo.com> Date: Wed, 16 Jul 2014 07:33:00 -0700 From: Albert-Jan Roskam Subject: Re: how to msi install Python to non-default target dir? To: Zachary Ware In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Albert-Jan Roskam List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405521392 news.xs4all.nl 2938 [2001:888:2000:d::a6]:49785 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74559 =A0=0A----- Original Message -----=0A> From: Zachary Ware =0A> To: Albert-Jan Roskam =0A> Cc: Python <= python-list@python.org>=0A> Sent: Wednesday, July 16, 2014 3:47 PM=0A> Subj= ect: Re: how to msi install Python to non-default target dir?=0A> =0A> On W= ed, Jul 16, 2014 at 8:29 AM, Albert-Jan Roskam=0A> =0A> wrote:=0A>> hi,=0A>> =0A>> I am trying to create a .bat file= where (among other things) Python will =0A> have to be silently installed.= =0A>> It needs to be installed to the non-default location "c:\program =0A= > files\python27". Any idea how this can be done?=0A>> I keep getting the = 'Help' menu, indicating that something went =0A> wrong. I've been fighting = with this for like an hour now! :-(=0A>> =0A>> I followed this structure [= 1]: msiexec /i (yourFile).msi =0A> TARGETDIR=3DC:\YourBin\YourApp=0A>> =0A>= > The following does NOT work (I added the cd/md commands later, idem for = the =0A> /qb)=0A>> =0A>> y:\>set PYTHONDIR=3D"c:\program files\python27"= =0A>> y:\>cd /d "c:\program files"=0A>> y:\>md python27=0A>> y:\>cd /d %= temp%=0A>> y:\>msiexec /i python-2.7.3 TARGETDIR=3D"%PYTHONDIR%" /qb=0A> = =0A> I'm assuming this is retyped and you missed the '.msi' in retyping?=0A= =0AYes, typo, sorry. I was working in an environment without email access.= =0A=0A> If not, that may be your issue.=A0 Also, 'set' doesn't require quot= es=0A> around a value with spaces, and you're also quoting %PYTHONDIR% when= =0A> you use it in the msiexec command, so you're actually double-quoting= =0A> the dir name (which could also be the issue).=A0 =0A=0AThat was it, th= ank you!!=0A=0A>And, not necessarily an=0A> issue that would prevent instal= ling, but you may want to make sure=0A> you're in the correctly-bitted Prog= ram Files directory if you're on=0A> 64-bit Windows (%PROGRAMFILES% for 64-= bit, %PROGRAMFILES(x86)% for=0A> 32-bit; %PROGRAMFILES(x86)% will not be de= fined on 32-bit Windows or=0A> in a 32-bit process on 64-bit Windows).=0A= =0AGood point. The easiest solution would be to write=A0one .bat for 32bit = and one for 64bit.=0A=0AThanks again!!=A0