diff --git a/windows/make-windows-installer.bat b/windows/make-windows-installer.bat
index 3f3696f12..4b17b449f 100644
--- a/windows/make-windows-installer.bat
+++ b/windows/make-windows-installer.bat
@@ -13,10 +13,10 @@ strip .\.cabal-sandbox\bin\pandoc.exe
strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
if %errorlevel% neq 0 exit /b %errorlevel%
-.\cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
+.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
if %errorlevel% neq 0 exit /b %errorlevel%
copy COPYRIGHT COPYRIGHT.txt
-for /f "tokens=1-2 delims= " %%a in ('.\cabal-sandbox\bin\pandoc --version') do (
+for /f "tokens=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
@set VERSION=%%b
goto :next
)
diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs
index 7a20effe5..75c316772 100644
--- a/windows/pandoc.wxs
+++ b/windows/pandoc.wxs
@@ -44,7 +44,7 @@
Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
+ Source="..\.cabal-sandbox\bin\pandoc.exe" />
+ Source="..\.cabal-sandbox\bin\pandoc-citeproc.exe" />