Skip to content

Commit

Permalink
make uninstall of driver silent
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed Nov 8, 2021
1 parent 8d05324 commit e242fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions windows/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,17 @@ Section "Uninstall"
DetailPrint $(STR_Drv_Uninstall)
${If} ${RunningX64}
DetailPrint $(STR_Drv_64bits)
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /u "$INSTDIR\drivers\mchpcdc.inf" /d'
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /u /s "$INSTDIR\drivers\mchpcdc.inf" /d'
${If} ${FileExists} "$INSTDIR\drivers\mchpcdcw.inf"
; Driver was installed
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /u "$INSTDIR\drivers\mchpcdcw.inf" /d'
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /u /s "$INSTDIR\drivers\mchpcdcw.inf" /d'
${EndIf}
${Else}
DetailPrint $(STR_Drv_32bits)cer
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /u "$INSTDIR\drivers\mchpcdc.inf" /d'
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /u /s "$INSTDIR\drivers\mchpcdc.inf" /d'
${If} ${FileExists} "$INSTDIR\drivers\mchpcdcw.inf"
; Driver was installed
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /u "$INSTDIR\drivers\mchpcdcw.inf" /d'
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /u /s "$INSTDIR\drivers\mchpcdcw.inf" /d'
${EndIf}
${EndIf}

Expand Down

0 comments on commit e242fdd

Please sign in to comment.