diff options
author | Keith Packard <keithp@keithp.com> | 2015-02-06 03:33:28 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-02-06 03:33:28 -0800 |
commit | 21ff52befb27decc4b23458315620c47d7a07b21 (patch) | |
tree | e80c568fc4c9a9839f64eb71480062d506dee791 | |
parent | a3f26f6d0c7574b8cdaecbccd7cfe89aaeb736b0 (diff) |
micropeak: Install Windows AltusMetrum driver bits
Make AltOS-based µPUSB devices work with MicroPeak
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | micropeak/micropeak-windows.nsi.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/micropeak/micropeak-windows.nsi.in b/micropeak/micropeak-windows.nsi.in index baa153e9..a3779630 100644 --- a/micropeak/micropeak-windows.nsi.in +++ b/micropeak/micropeak-windows.nsi.in @@ -71,6 +71,29 @@ Section "FTDI USB Driver" ExecWait $2 SectionEnd +Section "Install Driver" InstDriver + + InstDrv::InitDriverSetup /NOUNLOAD {4D36E96D-E325-11CE-BFC1-08002BE10318} AltusMetrumSerial + Pop $0 + DetailPrint "InitDriverSetup: $0" + InstDrv::DeleteOemInfFiles /NOUNLOAD + InstDrv::CreateDevice /NOUNLOAD + + SetOutPath $INSTDIR + File "../altusmetrum.inf" + File "../altusmetrum.cat" + + ${DisableX64FSRedirection} + IfFileExists $WINDIR\System32\PnPutil.exe 0 nopnp + ${DisableX64FSRedirection} + nsExec::ExecToLog '"$WINDIR\System32\PnPutil.exe" -i -a "$INSTDIR\altusmetrum.inf"' + Goto done +nopnp: + InstDrv::InstallDriver /NOUNLOAD "$INSTDIR\altusmetrum.inf" +done: + +SectionEnd + Section "${REG_NAME} Application" Call DetectJRE |