-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install.bat
57 lines (49 loc) · 1.92 KB
/
Install.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
54
55
56
57
@echo off
setlocal EnableDelayedExpansion
:start
set back=N
echo Enter the ANSYS version number XXX for installation (Example: For ANSYS 18.0, enter 180)
set /p ver=XXX:
set name=ANSYS%ver%_DIR
cd %~dp0
if exist "!ANSYS%ver%_DIR!" (
copy "Code\SwiftCompGUI_APDL" "!ANSYS%ver%_DIR!\apdl"
copy "Code\SwiftCompGUI_UIDL" "!ANSYS%ver%_DIR!\gui\en-us\UIDL"
if /i "%ver%" GEQ "180" (
cd Code\ANSYS_menulist_new
echo %%%name%%%\gui\en-us\UIDL\UIMENU.GRN > menulist.ans
echo %%%name%%%\gui\en-us\UIDL\UIFUNC1.GRN >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\UIFUNC2.GRN >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\MECHTOOL.AUI >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompMENU.GRN >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC1.GRN >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC2.GRN >> menulist.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC3.GRN >> menulist.ans
copy "menulist.ans" "!ANSYS%ver%_DIR!\gui\en-us\UIDL"
) else (
cd Code\ANSYS_menulist_new
echo %%%name%%%\gui\en-us\UIDL\UIMENU.GRN > menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\UIFUNC1.GRN >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\UIFUNC2.GRN >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\MECHTOOL.AUI >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompMENU.GRN >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC1.GRN >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC2.GRN >> menulist%ver%.ans
echo %%%name%%%\gui\en-us\UIDL\SwiftCompFUNC3.GRN >> menulist%ver%.ans
copy "menulist%ver%.ans" "!ANSYS%ver%_DIR!\gui\en-us\UIDL"
)
echo ANSYS-SwiftComp GUI installation succeeded!
) else (
echo ANSYS-SwiftComp GUI installation failed!
echo Please check the ANSYS version number.
echo The version number that you have entered is %ver%
set /p back=Try again? [Y/N]
)
if /i "%back%" EQU "Y" (
echo.
goto start
) else (
echo.
)
)
pause