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
commit7d510a9226d1fa8ed5ae07126c836a8e31266423 (patch)
tree134fa5b244a9731b31544bcd050cfc91157a3d6b
parentd04bfea9599f9535f25b8008b5ea7017f3ee706c (diff)
downloadtxr-7d510a9226d1fa8ed5ae07126c836a8e31266423.tar.gz
txr-7d510a9226d1fa8ed5ae07126c836a8e31266423.tar.bz2
txr-7d510a9226d1fa8ed5ae07126c836a8e31266423.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"