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

View File

@@ -5,8 +5,7 @@
@REM Win32 setup batch file, see Install.nt for details
@REM
@echo off
set _pause=
pushd %~dp0
set WIN32PATH=..\..\win\win32
set BUILDPATH=..\..\build
set BINPATH=..\..\binary
@@ -183,7 +182,8 @@ echo.
:fini
:end
set _pause=Y
if /i "%0"=="nhsetup" set _pause=N
set _pause=N
for %%x in (%cmdcmdline%) do if /i "%%~x"=="/c" set _pause=Y
if "%_pause%"=="Y" pause
set _pause=
popd