how to msi install Python to non-default target dir?
Albert-Jan Roskam
fomcl at yahoo.com
Wed Jul 16 09:29:22 EDT 2014
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?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Python-list
mailing list