Make nhsetup switch to the right directory always, and improve detection of double-click

This commit is contained in:
Dion Nicolaas
2015-04-26 19:17:04 +02:00
parent 497247ace0
commit 701fa5afea
+4 -4
View File
@@ -5,8 +5,7 @@
@REM Win32 setup batch file, see Install.nt for details @REM Win32 setup batch file, see Install.nt for details
@REM @REM
@echo off @echo off
pushd %~dp0
set _pause=
set WIN32PATH=..\..\win\win32 set WIN32PATH=..\..\win\win32
set BUILDPATH=..\..\build set BUILDPATH=..\..\build
set BINPATH=..\..\binary set BINPATH=..\..\binary
@@ -183,7 +182,8 @@ echo.
:fini :fini
:end :end
set _pause=Y set _pause=N
if /i "%0"=="nhsetup" set _pause=N for %%x in (%cmdcmdline%) do if /i "%%~x"=="/c" set _pause=Y
if "%_pause%"=="Y" pause if "%_pause%"=="Y" pause
set _pause= set _pause=
popd