diff options
author | Gopal Adhikari <gopala@email.arizona.edu> | 2017-05-14 22:40:05 +0300 |
---|---|---|
committer | Brad Erickson <eosrei@gmail.com> | 2017-05-14 22:49:29 +0300 |
commit | 400ba6a38142dbf6ff385e066d7ab6aca544b09c (patch) | |
tree | eae8065171e79668726bd14ad68f6d17b0bd7375 | |
parent | 4c785772d3e1ed183d92e106b01e3a7a36c29652 (diff) |
windows: Don't forget current working directory (#65)
When you right click and run the `install.cmd` script as an administrator, the
script forgets the working directory and instead uses `%systemroot%/system32`
as the working directory, this throws an error later on during installation
because we are looking for the file `EmojiOneColor-SVGinOT` in
`%systemroot%/system32`.
The two line additions fix this problem. Now you can right click on the script
and install the fonts from anywhere.
You can reproduce this bug by running the script as an administrator from the
extracted path (right click -> Run as administrator).
-rw-r--r-- | windows/install.cmd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/install.cmd b/windows/install.cmd index bb3be7e..20fc423 100644 --- a/windows/install.cmd +++ b/windows/install.cmd @@ -1,6 +1,9 @@ @ECHO OFF SETLOCAL +@setlocal enableextensions +@cd /d "%~dp0" + SET MS_EMOJI_FONT_PATH="%SystemRoot%\Fonts\seguiemj.ttf" SET MS_FONT_PATH="%SystemRoot%\Fonts\seguisym.ttf" SET EMOJI_FONT_PATH="%CD%\EmojiOneColor-SVGinOT.ttf" |