diff --git a/Tools/msi/uploadrelease.bat b/Tools/msi/uploadrelease.bat
index 2064a67a4a6..c91d229475e 100644
--- a/Tools/msi/uploadrelease.bat
+++ b/Tools/msi/uploadrelease.bat
@@ -30,9 +30,10 @@ if not defined PSCP echo Cannot locate pscp.exe & exit /B 1
echo Found pscp.exe at %PSCP%
call "%PCBUILD%env.bat" > nul 2> nul
+pushd "%D%"
msbuild /v:m /nologo uploadrelease.proj /t:Upload /p:Platform=x86
msbuild /v:m /nologo uploadrelease.proj /t:Upload /p:Platform=x64 /p:IncludeDoc=false
-
+popd
exit /B 0
:Help
diff --git a/Tools/msi/uploadrelease.proj b/Tools/msi/uploadrelease.proj
index a3ebe573b2c..56aff4ace5a 100644
--- a/Tools/msi/uploadrelease.proj
+++ b/Tools/msi/uploadrelease.proj
@@ -41,14 +41,14 @@