Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
602 B

  1. @rem echo off
  2. set SRC=
  3. for /d /r %tmp% %%i in (*.*) do if exist %%~fi\newsall.inf set SRC=%%~fi
  4. if "%SRC%" == "" goto TryTemp
  5. goto noargs
  6. :TryTemp
  7. for /d /r %temp% %%i in (*.*) do if exist %%~fi\newsall.inf set SRC=%%~fi
  8. if "%SRC%" == "" goto TryCwd
  9. goto noargs
  10. :TryCwd
  11. set SRC=%1%
  12. if NOT exist %SRC%\newsall.inf goto Error
  13. goto noargs
  14. :Error
  15. echo .
  16. echo Webhits setup error:
  17. echo You must specify the directory where installing from
  18. echo .
  19. echo EXAMPLE:
  20. echo %0 %SRC% (default)
  21. echo .
  22. pause
  23. goto end
  24. :noargs
  25. %SystemRoot%\system32\setup.exe /f /i %SRC%\newsall.inf /s %SRC%
  26. :end
  27. set SRC=