summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-03-24 20:50:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-03-24 20:50:42 -0700
commitf6ba87f340045ee2fa59fd633496464e886f9769 (patch)
tree134fa5b244a9731b31544bcd050cfc91157a3d6b
parentcedeb2eeb9a68434d889f8791dffa951408411da (diff)
downloadtxr-f6ba87f340045ee2fa59fd633496464e886f9769.tar.gz
txr-f6ba87f340045ee2fa59fd633496464e886f9769.tar.bz2
txr-f6ba87f340045ee2fa59fd633496464e886f9769.zip
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.
-rw-r--r--inst.nsi1
1 files changed, 1 insertions, 0 deletions
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"