From b0fa51692e42df6f756ebb00a45112060c1e5acc Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 3 Sep 2015 10:16:13 -0700 Subject: [PATCH] Add Install Arduino Drivers section to installer --- installer.nsi | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/installer.nsi b/installer.nsi index 037d7b3233..0a2a4874a7 100644 --- a/installer.nsi +++ b/installer.nsi @@ -111,19 +111,19 @@ Section "Install Visual Studio 2010 Redistributable" SectionEnd -;Section "Install Arduino Drivers" -; ; Set output path to the driver directory. -; SetOutPath "$INSTDIR\drivers\" -; File /r "drivers\" -; -; ${If} ${RunningX64} -; IfSilent +2 -; ExecWait '"$INSTDIR\drivers\dpinst64.exe" /lm' -; ${Else} -; IfSilent +2 -; ExecWait '"$INSTDIR\drivers\dpinst32.exe" /lm' -; ${EndIf} -;SectionEnd +Section "Install Arduino Drivers" + ; Set output path to the driver directory. + SetOutPath "$INSTDIR\drivers\" + File /r "drivers\" + + ${If} ${RunningX64} + IfSilent +2 + ExecWait '"$INSTDIR\drivers\dpinst64.exe" /lm' + ${Else} + IfSilent +2 + ExecWait '"$INSTDIR\drivers\dpinst32.exe" /lm' + ${EndIf} +SectionEnd Section "Open STL files with Cura" WriteRegStr HKCR .stl "" "Cura STL model file"