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


Groups > comp.lang.python > #74554 > unrolled thread

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

Started byAlbert-Jan Roskam <fomcl@yahoo.com>
First post2014-07-16 06:29 -0700
Last post2014-07-16 06:29 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  how to msi install Python to non-default target dir? Albert-Jan Roskam <fomcl@yahoo.com> - 2014-07-16 06:29 -0700

#74554 — how to msi install Python to non-default target dir?

FromAlbert-Jan Roskam <fomcl@yahoo.com>
Date2014-07-16 06:29 -0700
Subjecthow to msi install Python to non-default target dir?
Message-ID<mailman.11877.1405517520.18130.python-list@python.org>
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

Thank you!

Regards,

Albert-Jan

[1] http://stackoverflow.com/questions/3259737/command-line-option-to-tell-msi-installation-to-a-specific-location 
[2] Platform: Windows 7 Enterprise, it that matters.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a 

fresh water system, and public health, what have the Romans ever done for us?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web