From: Keith Packard Date: Fri, 6 Feb 2015 11:33:28 +0000 (-0800) Subject: micropeak: Install Windows AltusMetrum driver bits X-Git-Tag: 1.6~26 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=21ff52befb27decc4b23458315620c47d7a07b21 micropeak: Install Windows AltusMetrum driver bits Make AltOS-based µPUSB devices work with MicroPeak Signed-off-by: Keith Packard --- 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