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.
41 lines
1.2 KiB
41 lines
1.2 KiB
9 years ago
|
@echo off
|
||
|
setx /M test test > nul 2>&1
|
||
|
if NOT ["%errorlevel%"]==["0"] (
|
||
|
echo FAILED. Rerun with administrator privileges.
|
||
|
pause
|
||
|
exit
|
||
|
)
|
||
|
|
||
9 years ago
|
echo ------------------------------------------
|
||
|
echo Installing wget and unzip
|
||
|
echo ------------------------------------------
|
||
9 years ago
|
mingw-get install msys-wget-bin msys-unzip-bin
|
||
9 years ago
|
cd \MinGW\bin
|
||
|
|
||
|
mkdir temp
|
||
9 years ago
|
cd temp
|
||
|
echo ------------------------------------------
|
||
|
echo Installing dfu-programmer.
|
||
|
echo ------------------------------------------
|
||
9 years ago
|
wget http://iweb.dl.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip
|
||
|
unzip dfu-programmer-win-0.7.2.zip
|
||
|
copy dfu-programmer.exe ..
|
||
|
|
||
9 years ago
|
echo ------------------------------------------
|
||
|
echo Downloading driver
|
||
|
echo ------------------------------------------
|
||
9 years ago
|
wget http://iweb.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip
|
||
|
unzip libusb-win32-bin-1.2.6.0.zip
|
||
|
cp libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll
|
||
|
|
||
9 years ago
|
echo ------------------------------------------
|
||
|
echo Installing driver. Accept prompt.
|
||
|
echo ------------------------------------------
|
||
9 years ago
|
pnputil -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf
|
||
|
|
||
|
cd ..
|
||
9 years ago
|
rm -rf temp
|
||
|
|
||
|
echo ------------------------------------------
|
||
|
echo Finished!
|
||
|
pause
|