Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nsis driver packages #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added nsis/.chipKIT Drivers-x86-1.1.0.0.exe
Binary file not shown.
1 change: 1 addition & 0 deletions nsis/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
License Placeholder
Binary file added nsis/amd64/WdfCoInstaller01011.dll
Binary file not shown.
Binary file added nsis/amd64/devcon.exe
Binary file not shown.
Binary file added nsis/amd64/dpinst.exe
Binary file not shown.
Binary file added nsis/amd64/winusbcoinstaller2.dll
Binary file not shown.
Binary file added nsis/chipKIT Drivers-amd64-1.1.0.0.exe
Binary file not shown.
Binary file added nsis/chipKIT Drivers-x86-1.1.0.0.exe
Binary file not shown.
Binary file added nsis/chipkit.ico
Binary file not shown.
45 changes: 45 additions & 0 deletions nsis/dpinst.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<dpInst>
<!-- Configuration file for the XboxBigButton driver installation performed through the DPINST utility
NOTE: the DPINST utility leaves a log file in %SystemRoot%\DPINST.LOG which helps to debug
installation problems.
-->

<!-- the following tag tells DPINST to enable also the languages not represented
by a <language> tag; if this tag is not present, then DPINST will abort
the driver installation (with failure) on those localized Window versions
for which we didn't provide a translation! -->
<enableNotListedLanguages/>

<!-- by default, DPINST installs only signed driver packages; with this tag we can
tell DPINST to not abort if the CAT files of the drive rsignature are missing: -->
<legacyMode/>

<!-- configure DPINST to suppress the addition of entries to "Programs and Features"
in Control Panel: the NSIS installer already adds one entry for "XboxBigButton": -->
<suppressAddRemovePrograms/>

<!-- do not require user interaction for the installation of the drivers; this also
gives us the advantage that we don't need to translate the messages which otherwise
would be shown by DPINST: -->
<suppressWizard/>

<!-- IMPORTANT: we do not want to use the <quietInstall/> tag because as MSDN says:
"If DPInst is running in quiet-install mode and Windows requires a user interaction to complete
an installation, the installation will fail."
Also, MSDN adds that "two typical situations that require user interaction are if Windows prompts
a user before installing an unsigned driver package or if Windows prompts a user for the location
of missing files."
I.e. in our case, since we're delivering an unsigned driver package we need to allow Windows to
prompt the user about the fact that he's installing an unsigned driver, otherwise dpinst will fail
leaving in the log file a message like:
INFO: RETURN: DriverPackagePreinstallW (0xE000022F)
which means "The third-party INF does not contain digital signature information."
-->

<icon>chipkit.ico</icon>

<!-- we want DPINST utility to install the drivers for the custom driver: -->
<package path="stk500v2.inf" />
<installAllOrNone />
</dpInst>
Binary file added nsis/inf/.stk500v2.inf.swp
Binary file not shown.
Binary file added nsis/inf/stk500v2.cat
Binary file not shown.
106 changes: 106 additions & 0 deletions nsis/inf/stk500v2.inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
;---------------------------------------------------------------------------------
;Note: When the driver package is signed, any modifications to this .inf file will
;break the signature, and the driver package will need to be re-signed.
;---------------------------------------------------------------------------------
; Modified Windows USB CDC Abstract Control Model Serial Driver Setup File
; Modified from examples provided by Microchip

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
CatalogFile=%MFGFILENAME%.cat
DriverVer=03/31/2013,1.1.0.0

[Manufacturer]
%MFGNAME%=DeviceList,NTamd64


;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; The VID and PID can be changed in the USB device descriptor and on the below
; lines in this file. If you modify this .inf file to customize it for your
; device, please remove all existing Microchip (VID 0x04D8) entries from
; the device lists.
;------------------------------------------------------------------------------
[DeviceList]
%DESCRIPTION%=DriverInstall,USB\VID_0403&PID_A662

[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall,USB\VID_0403&PID_A662


;------------------------------------------------------------------------------
; Windows 32bit OSes Section
;------------------------------------------------------------------------------
[DriverInstall.nt]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.nt.AddReg

[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NT.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000002, LowerFilter_Service_Inst


;------------------------------------------------------------------------------
; Windows 64bit OSes Section
;------------------------------------------------------------------------------
[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.NTamd64.AddReg

[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NTamd64.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000002, LowerFilter_Service_Inst


;------------------------------------------------------------------------------
; Common Sections
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir=12

[SourceDisksNames]

[SourceDisksFiles]

[FakeModemCopyFileSection]

[LowerFilter_Service_Inst]
DisplayName= %SERVICE%
ServiceType= 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\usbser.sys


;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
; These strings can be modified to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="Stk500v2"
DRIVERFILENAME ="usbser"
MFGNAME="chipKIT/MPIDE"
DESCRIPTION="chipKIT USB Serial (Stk500v2 compatible)"
SERVICE="chipKIT USB Serial Driver"



Loading