Skip to content

Commit

Permalink
improve arg check and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Nov 11, 2019
1 parent f59715e commit 58e6d98
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions installer/windows/install.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@echo off
if "%1"=="" (
echo "missing required msi path argument"

rem count # of args
set argC=0
for %%x in (%*) do Set /A argC+=1

if not "%argC%"=="1" (
echo usage: %~nx0 ^<msi path^>
exit /B 1
)

Expand Down

0 comments on commit 58e6d98

Please sign in to comment.