forked from PySimulator/PySimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install PySimulator.bat
53 lines (49 loc) · 2.55 KB
/
Install PySimulator.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
cls
echo ###############################################################################
echo ####################[ PySimulator Installation Script ]########################
echo ###############################################################################
echo .
echo PySimulator requires certain additional applications to run. This installer
echo will attempt to automatically download and install the required files. Already
echo installed software compontents don't need to be installed again and can be
echo skipped.
echo .
echo .
echo Due to a bug in the current Python XY Version, the MSVC Redistributable has to
echo be installed manually.
echo If unsure select "y"
set /p installmsvc=Download and start installer for Microsoft Visual C++ 2008 Redistributable Package (x86)?(Y/N):
if /I not "%installmsvc%"=="y" goto skipmsvc
bitsadmin /TRANSFER "PySimulaterInstallation" /PRIORITY FOREGROUND http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140/vcredist_x86.exe %TEMP%/vcredist_x86.exe
call %TEMP%/vcredist_x86.exe
:skipmsvc
cls
echo PySimulator is based on Python and requires a valid Python installation along
echo side a variaty of additional software libraries. Python XY offers all of this
echo software in one package.
echo During the installation please make sure to select the option "Full".
echo If unsure select "y"
set /p installpxy=Download and start installer for Python XY 2.7.6.1?(Y/N):
if /I not "%installpxy%"=="y" goto skippxy
bitsadmin /TRANSFER "PySimulaterInstallation" /PRIORITY FOREGROUND http://ftp.ntua.gr/pub/devel/pythonxy/Python(x,y)-2.7.6.1.exe %TEMP%/pxy.exe
call %TEMP%/pxy.exe
:skippxy
cls
echo The Python XY installation by default does not include the Enthought Tool
echo Suite, required by PySimulator. If you already installed ETS during the
echo previous step or you selected the "Full" option, this is not required but
echo is also unlikely to cause any problems.
echo If unsure select "y"
set /p installets=Download and start installer for Enthought Tool Suite 4.4.2-11?(Y/N):
if /I not "%installets%"=="y" goto skipets
bitsadmin /TRANSFER "PySimulaterInstallation" /PRIORITY FOREGROUND https://ayera.dl.sourceforge.net/project/python-xy/plugins/EnthoughtToolSuite-4.4.2-11_py27.exe %TEMP%/EnthoughtToolSuite-4.4.2-11_py27.exe
call %TEMP%/EnthoughtToolSuite-4.4.2-11_py27.exe
:skipets
C:\Python27\python.exe setup.py install
C:\Python27\python.exe post_setup.py
echo ###############################################################################
echo .
echo .
echo PySimulator installation Script finished
pause