From d830c0f8c93a1e56e7996f71d54cc1eacbb44d81 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 13 Aug 2024 10:54:23 +0500 Subject: [PATCH] Driver Scripts: Show command args or error --- src/driver/scripts/install.bat | 10 +++++----- src/driver/scripts/uninstall.bat | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/driver/scripts/install.bat b/src/driver/scripts/install.bat index f9cb4220..5e0a0b0c 100644 --- a/src/driver/scripts/install.bat +++ b/src/driver/scripts/install.bat @@ -5,7 +5,7 @@ @rem Copy driver to system storage @if exist "%DSTPATH%" ( - @echo Error: Driver already installed. Uninstall it first + @echo Error: Driver already installed. Uninstall it first ("%DSTPATH%") @set RCODE=1 @goto EXIT ) @@ -15,7 +15,7 @@ robocopy "%SRCDIR%" "%DSTDIR%" "%FILENAME%" /R:0 >NUL @if ERRORLEVEL 2 ( - @echo Error: Cannot copy driver to system + @echo Error: Cannot copy driver to system ("%SRCDIR%" "%DSTDIR%" "%FILENAME%") @set RCODE=%ERRORLEVEL% @goto EXIT ) @@ -26,7 +26,7 @@ robocopy "%SRCDIR%" "%DSTDIR%" "%FILENAME%" /R:0 >NUL copy "%SRCPATH%" "%DSTPATH%" @if ERRORLEVEL 1 ( - @echo Error: Cannot copy driver to system + @echo Error: Cannot copy driver to system ("%SRCPATH%" "%DSTPATH%") @set RCODE=%ERRORLEVEL% @goto EXIT ) @@ -38,7 +38,7 @@ copy "%SRCPATH%" "%DSTPATH%" sc create %DRIVERSVC% binPath= "%DSTPATH%" type= kernel start= auto ^ group= "NetworkProvider" depend= BFE DisplayName= "%DISPNAME%" @if ERRORLEVEL 1 ( - @echo Error: Cannot create a service + @echo Error: Cannot create a service (%DRIVERSVC% "%DSTPATH%") @set RCODE=%ERRORLEVEL% @goto EXIT ) @@ -46,7 +46,7 @@ sc create %DRIVERSVC% binPath= "%DSTPATH%" type= kernel start= auto ^ @rem Start the driver service sc start %DRIVERSVC% @if ERRORLEVEL 1 ( - @echo Error: Cannot start the service + @echo Error: Cannot start a service (%DRIVERSVC%) @set RCODE=%ERRORLEVEL% @goto EXIT ) diff --git a/src/driver/scripts/uninstall.bat b/src/driver/scripts/uninstall.bat index 74c5961e..73f5c862 100644 --- a/src/driver/scripts/uninstall.bat +++ b/src/driver/scripts/uninstall.bat @@ -14,7 +14,7 @@ sc stop %DRIVERSVC% @rem Remove the driver service sc delete %DRIVERSVC% @if ERRORLEVEL 1 ( - @echo Error: Cannot delete the service + @echo Error: Cannot delete a service (%DRIVERSVC%) @set RCODE=%ERRORLEVEL% @rem @goto EXIT )