-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.bat
More file actions
executable file
·47 lines (30 loc) · 805 Bytes
/
setup.bat
File metadata and controls
executable file
·47 lines (30 loc) · 805 Bytes
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
@ECHO OFF
ECHO preDict setup and upgrade script
ECHO ================================
ECHO.
ECHO This script will setup or upgrade preDict on your machine.
PAUSE
ECHO.
ECHO Gathering information...
REM enviornmental variables
SET data_path=%APPDATA%\Microsoft\Word\STARTUP\
IF EXIST preDict.dotm GOTO :insCopy
ECHO preDict file seems to be missing- unzipping on a local drive (i.e. C:\)
GOTO insFail
:insCopy
ECHO Installing latest version...
MKDIR "%data_path%" >NUL 2>NUL
COPY "preDict.dotm" "%data_path%" >NUL 2>NUL
REM report errors
IF ERRORLEVEL = 1 GOTO insFail
:insPass
ECHO.
ECHO Setup completed successfully.
PAUSE
GOTO insEnd
:insFail
ECHO.
ECHO Setup failed, try again or attempt manually.
PAUSE
GOTO insEnd
:insEnd