Skip to content

Commit 1b63405

Browse files
committed
Add drivers for Windows7
1 parent 0b1f225 commit 1b63405

File tree

5 files changed

+127
-0
lines changed

5 files changed

+127
-0
lines changed

drivers/dpinst-amd64.exe

1020 KB
Binary file not shown.

drivers/dpinst-x86.exe

901 KB
Binary file not shown.

drivers/prewin10/arduino_mbed.cat

22.2 KB
Binary file not shown.

drivers/prewin10/arduino_mbed.inf

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
;************************************************************
2+
; Windows USB CDC ACM Setup File
3+
; Copyright (c) 2000 Microsoft Corporation
4+
5+
6+
[Version]
7+
Signature="$Windows NT$"
8+
Class=Ports
9+
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
10+
Provider=%MFGNAME%
11+
LayoutFile=layout.inf
12+
CatalogFile=%MFGFILENAME%.cat
13+
DriverVer=07/29/2018,10.0.0.0
14+
15+
[Manufacturer]
16+
%MFGNAME%=DeviceList, NTamd64
17+
18+
[DestinationDirs]
19+
DefaultDestDir=12
20+
21+
22+
;------------------------------------------------------------------------------
23+
; Windows 2000/XP/Vista-32bit Sections
24+
;------------------------------------------------------------------------------
25+
26+
[DriverInstall.nt]
27+
include=mdmcpq.inf
28+
CopyFiles=DriverCopyFiles.nt
29+
AddReg=DriverInstall.nt.AddReg
30+
31+
[DriverCopyFiles.nt]
32+
usbser.sys,,,0x20
33+
34+
[DriverInstall.nt.AddReg]
35+
HKR,,DevLoader,,*ntkern
36+
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
37+
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
38+
39+
[DriverInstall.nt.Services]
40+
AddService=usbser, 0x00000002, DriverService.nt
41+
42+
[DriverService.nt]
43+
DisplayName=%SERVICE%
44+
ServiceType=1
45+
StartType=3
46+
ErrorControl=1
47+
ServiceBinary=%12%\%DRIVERFILENAME%.sys
48+
49+
;------------------------------------------------------------------------------
50+
; Vista-64bit Sections
51+
;------------------------------------------------------------------------------
52+
53+
[DriverInstall.NTamd64]
54+
include=mdmcpq.inf
55+
CopyFiles=DriverCopyFiles.NTamd64
56+
AddReg=DriverInstall.NTamd64.AddReg
57+
58+
[DriverCopyFiles.NTamd64]
59+
%DRIVERFILENAME%.sys,,,0x20
60+
61+
[DriverInstall.NTamd64.AddReg]
62+
HKR,,DevLoader,,*ntkern
63+
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
64+
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
65+
66+
[DriverInstall.NTamd64.Services]
67+
AddService=usbser, 0x00000002, DriverService.NTamd64
68+
69+
[DriverService.NTamd64]
70+
DisplayName=%SERVICE%
71+
ServiceType=1
72+
StartType=3
73+
ErrorControl=1
74+
ServiceBinary=%12%\%DRIVERFILENAME%.sys
75+
76+
77+
;------------------------------------------------------------------------------
78+
; Vendor and Product ID Definitions
79+
;------------------------------------------------------------------------------
80+
; When developing your USB device, the VID and PID used in the PC side
81+
; application program and the firmware on the microcontroller must match.
82+
; Modify the below line to use your VID and PID. Use the format as shown below.
83+
; Note: One INF file can be used for multiple devices with different VID and PIDs.
84+
; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line.
85+
;------------------------------------------------------------------------------
86+
[SourceDisksFiles]
87+
[SourceDisksNames]
88+
[DeviceList]
89+
"Arduino Nano 33 BLE Bootloader"=DriverInstall, USB\VID_2341&PID_005A&MI_00
90+
"Arduino Nano 33 BLE"=DriverInstall, USB\VID_2341&PID_805A&MI_00
91+
92+
[DeviceList.NTamd64]
93+
"Arduino Nano 33 BLE Bootloader"=DriverInstall, USB\VID_2341&PID_005A&MI_00
94+
"Arduino Nano 33 BLE"=DriverInstall, USB\VID_2341&PID_805A&MI_00
95+
96+
;------------------------------------------------------------------------------
97+
; String Definitions
98+
;------------------------------------------------------------------------------
99+
;Modify these strings to customize your device
100+
;------------------------------------------------------------------------------
101+
[Strings]
102+
MFGFILENAME="Arduino_mbed"
103+
DRIVERFILENAME ="usbser"
104+
MFGNAME="Arduino SA"
105+
INSTDISK="Arduino Mbed boards Driver Installer"
106+
SERVICE="USB RS-232 Emulation Driver"

post_install.bat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
set ARGS=/SE /SW /SA
3+
4+
@echo off
5+
setlocal
6+
for /f "tokens=4-5 delims=[.] " %%i in ('ver') do @(if %%i==Version (set VERSION=%%j) else (set VERSION=%%i))
7+
if %VERSION% GEQ 10 (
8+
exit /b 0
9+
)
10+
endlocal
11+
12+
REM dpinst /PATH has problems with relative paths, so use absolute path.
13+
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
14+
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
15+
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
16+
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
17+
) ELSE (
18+
drivers\dpinst-x86.exe /PATH %cd%\drivers\prewin10 %ARGS%
19+
)
20+
21+
exit /b 0

0 commit comments

Comments
 (0)