From 1d3defec28e1fe67c8aec4d61eaaf6b41ab4d6c4 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Mon, 8 Jun 2020 21:46:45 +0200 Subject: [PATCH] Fix #1557 by adding a "safe mode" to the installer --- contrib/pulseview_cross.nsi.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/pulseview_cross.nsi.in b/contrib/pulseview_cross.nsi.in index 88945f44..d8b9442f 100644 --- a/contrib/pulseview_cross.nsi.in +++ b/contrib/pulseview_cross.nsi.in @@ -184,6 +184,12 @@ Section "PulseView (required)" Section1 0 SW_SHOWNORMAL \ "" "Open-source, portable sigrok GUI" + # Create a shortcut for the PulseView application in "safe mode". + CreateShortCut "$SMPROGRAMS\sigrok\PulseView\PulseView (Safe Mode).lnk" \ + "$INSTDIR\pulseview.exe" "-c -D" "$INSTDIR\pulseview.exe" \ + 0 SW_SHOWNORMAL \ + "" "Open-source, portable sigrok GUI (Safe Mode)" + # Create a shortcut for the PulseView application running in debug mode. CreateShortCut "$SMPROGRAMS\sigrok\PulseView\PulseView (Debug).lnk" \ "$INSTDIR\pulseview.exe" "-l 5" "$INSTDIR\pulseview.exe" \ @@ -296,6 +302,7 @@ Section "Uninstall" # Delete the links from the start menu. Delete "$SMPROGRAMS\sigrok\PulseView\PulseView.lnk" + Delete "$SMPROGRAMS\sigrok\PulseView\PulseView (Safe Mode).lnk" Delete "$SMPROGRAMS\sigrok\PulseView\PulseView (Debug).lnk" Delete "$SMPROGRAMS\sigrok\PulseView\Uninstall PulseView.lnk" Delete "$SMPROGRAMS\sigrok\PulseView\Zadig (PulseView).lnk" -- 2.30.2