root/branches/mcstas-1.x/setup.bat

Revision 2123, 3.1 KB (checked in by pkwi, 4 years ago)

Implementing perl 5.10 (In principle, changes to the setup.bat are unneeded as we now provide the nulsoft installer).

  • Property svn:executable set to *
Line 
1@rem
2@rem   This file is part of the McStas neutron ray-trace simulation package
3@rem   Copyright (C) 1997-2004, All rights reserved
4@rem   Risoe National Laborartory, Roskilde, Denmark
5@rem   Institut Laue Langevin, Grenoble, France
6@rem
7@rem   This program is free software; you can redistribute it and/or modify
8@rem   it under the terms of the GNU General Public License as published by
9@rem   the Free Software Foundation; version 2 of the License.
10@rem
11@rem   This program is distributed in the hope that it will be useful,
12@rem   but WITHOUT ANY WARRANTY; without even the implied warranty of
13@rem   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14@rem   GNU General Public License for more details.
15@rem
16@rem   You should have received a copy of the GNU General Public License
17@rem   along with this program; if not, write to the Free Software
18@rem   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20:menu
21@echo off
22@echo Installation/setup of McStas support software on Win32 systems.
23@echo Please select an option:
24@echo .
25@echo 1) Install Dev-CPP 4.990 (including gcc) (*)
26@echo 2) Install perl 5.10 (*)
27@echo 3) Install Scilab 4.0 (*)
28@echo 4) Run McStas build script (Unneeded if you dowloaded 'binary' version)
29@echo 5) Run McStas install script
30@echo .
31@echo s) Set up proxy for internet access
32@echo q) Quit
33@echo .
34@echo Warning: You need internet to complete tasks marked by (*)
35@echo .
36@if "%MYCHOICE%"=="" set MYCHOICE=1
37@SET /P MYCHOICE=Proceed to which task? (default is %MYCHOICE%):
38@if "%MYCHOICE%"=="1" goto dev-cpp
39@if "%MYCHOICE%"=="2" goto perl
40@if "%MYCHOICE%"=="3" goto scilab
41@if "%MYCHOICE%"=="4" goto mcbuild
42@if "%MYCHOICE%"=="5" goto mcinstall
43@if "%MYCHOICE%"=="s" goto proxies
44@if "%MYCHOICE%"=="q" goto exit
45@if "%MYCHOICE%"=="Q" goto exit
46@set MYCHOICE=1
47@goto menu
48
49:dev-cpp
50@echo .
51@echo Proceeding to Dev-CPP install...
52@.\support\Win32\wget http://www.mcstas.org/download/Win32/devcpp4990setup.exe
53@start devcpp4990setup.exe
54@set MYCHOICE=2
55@goto menu
56
57:perl
58@echo .
59@echo Proceeding to perl install...
60@.\support\Win32\wget http://www.mcstas.org/download/Win32/ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi
61@start ActivePerl-5.10.0.1002-MSWin32-x86-283697.msi
62@set MYCHOICE=3
63@goto menu
64
65:scilab
66@echo .
67@echo Proceeding to Scilab install...
68@.\support\Win32\wget http://www.mcstas.org/download/Win32/scilab-4.0.exe
69@start scilab-4.0.exe
70@set MYCHOICE=5
71@goto menu
72
73:mcbuild
74@echo .
75@echo Proceeding to McStas build script...
76@start build.bat
77@set MYCHOICE=5
78@goto menu
79
80:mcinstall
81@echo .
82@echo Proceeding to McStas install script...
83@start install.bat
84@set MYCHOICE=q
85@goto menu
86@pause
87
88:proxies
89@echo .
90@if "%HTTP_PROXY%"=="" set HTTP_PROXY=none
91@echo Define proxy server for http access, e.g. http://proxy.ill.fr:8080
92@SET /P HTTP_PROXY=Define proxy server: (default is: %HTTP_PROXY%)
93@if "%HTTP_PROXY%"=="nono" set HTTP_PROXY=""
94@set MYCHOICE=1
95@goto menu
96
97:exit
98@echo .
99@echo Thanks for using McStas. End of the installation.
100@pause
Note: See TracBrowser for help on using the browser.