1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/arduino-0018-windows/hardware/tools/avr/bin/install_giveio.bat
2010-03-30 21:53:44 +02:00

34 lines
755 B
Batchfile

@set DIRVERNAME=giveio
@set DIRVERFILE=%DIRVERNAME%.sys
@echo Copying the driver to the windows directory
@echo target file: %WINDIR%\%DIRVERFILE%
@copy %DIRVERFILE% %WINDIR%\%DIRVERFILE%
@echo Remove a running service if needed...
@loaddrv stop %DIRVERNAME% >NUL
@if errorlevel 2 goto install
@loaddrv remove %DIRVERNAME% >NUL
@if errorlevel 1 goto install
:install
@echo Installing Windows NT/2k/XP driver: %DIRVERNAME%
@loaddrv install %DIRVERNAME% %WINDIR%\%DIRVERFILE%
@if errorlevel 3 goto error
@loaddrv start %DIRVERNAME%
@if errorlevel 1 goto error
@loaddrv starttype %DIRVERNAME% auto
@if errorlevel 1 goto error
@echo Success
@goto exit
:error
@echo ERROR: Installation of %DIRVERNAME% failed
:exit