From c91b7f647de9cc110290e72bc63f87867d29cba0 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 28 Jan 2021 21:03:26 -0500 Subject: [PATCH] [host] installer: create start menu shortcut to log directory This commit makes the installer create a shortcut to the log directory introduced by the previous commit. --- host/platform/Windows/installer.nsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/host/platform/Windows/installer.nsi b/host/platform/Windows/installer.nsi index 07c91bdb..cc849a1e 100644 --- a/host/platform/Windows/installer.nsi +++ b/host/platform/Windows/installer.nsi @@ -172,7 +172,7 @@ Section /o "Desktop Shortcut" Section3 StrCpy $option_desktop 1 SectionEnd -Section /o "Start Menu Shortcut" Section4 +Section "Start Menu Shortcut" Section4 StrCpy $option_startMenu 1 SectionEnd @@ -180,7 +180,10 @@ Section "-Hidden Start Menu" Section5 SetShellVarContext all ${If} $option_startMenu == 1 - CreateShortCut "$SMPROGRAMS\Looking Glass (host).lnk" $INSTDIR\looking-glass-host.exe + CreateDirectory "$APPDATA\Looking Glass (host)" + CreateDirectory "$SMPROGRAMS\Looking Glass (host)" + CreateShortCut "$SMPROGRAMS\Looking Glass (host)\Looking Glass (host).lnk" $INSTDIR\looking-glass-host.exe + CreateShortCut "$SMPROGRAMS\Looking Glass (host)\Looking Glass Logs.lnk" "$APPDATA\Looking Glass (host)" ${EndIf} ${If} $option_desktop == 1