From 400ba6a38142dbf6ff385e066d7ab6aca544b09c Mon Sep 17 00:00:00 2001 From: Gopal Adhikari Date: Sun, 14 May 2017 15:40:05 -0400 Subject: 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). --- windows/install.cmd | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3