From f6ba87f340045ee2fa59fd633496464e886f9769 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 24 Mar 2017 20:50:42 -0700 Subject: Windows: shortcuts should start in user profile dir. Noticed that the shortcuts created by NSIS are configured to start in the TXR standard library installation directory. Why is that? Because the locatio specified by the most recent SetOutPath is used for this! * inst.nsi: Before creating shortcuts, switch SetOutPath to $PROFILE, which is NSIS's variable denoting the user's profie directory, same as the Windows USERPROFILE environment variable. --- inst.nsi | 1 + 1 file changed, 1 insertion(+) diff --git a/inst.nsi b/inst.nsi index bf735b3d..9e526e1c 100644 --- a/inst.nsi +++ b/inst.nsi @@ -62,6 +62,7 @@ section "TXR" RmDir /r /REBOOTOK $INSTDIR\txr\share\man WriteUninstaller $INSTDIR\txr\uninstall.exe CreateDirectory "$SMPROGRAMS\txr" + SetOutPath $PROFILE CreateShortCut "$SMPROGRAMS\txr\txr.lnk" "$INSTDIR\txr\bin\txr.exe" CreateShortCut "$SMPROGRAMS\txr\uninstall.lnk" "$INSTDIR\txr\uninstall.exe" CreateShortCut "$SMPROGRAMS\txr\install-root.lnk" "$INSTDIR\txr" -- cgit v1.2.3