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"