Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Bug reports
➜ wrong location for start in folder for shortcuts?
wrong location for start in folder for shortcuts?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tspivey
Canada (54 posts) Bio
|
Date
| Fri 17 Sep 2010 09:38 PM (UTC) |
Message
| The start-in folder of the shortcut the instaler creates is set to the start menu
directory where the mushclient icons are installed. As a result of this, the prefs.sqlite
and mushclient.ini get created in the start menu, and things like saving plugin states doesn't work
since the state directory isn't in .\worlds\plugins\state where the client expects to find it. I've
verified this by removing mushclient, deleting the start menu folder and the program files folder, and reinstalling.
I'm using Windows XP if that matters.
| Top |
|
Posted by
| Coderunner
USA (27 posts) Bio
|
Date
| Reply #1 on Fri 17 Sep 2010 09:44 PM (UTC) |
Message
| Hello Tyler,
I've also seen this behavior. I'm running Win 7 under VMware Fusion. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #2 on Fri 17 Sep 2010 09:46 PM (UTC) Amended on Fri 17 Sep 2010 09:47 PM (UTC) by Twisol
|
Message
| I've seen this too, actually. I believe it happened to me on Vista. It was a few months ago, and I think I just changed the shortcut target to point to the right location, or something. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Fri 17 Sep 2010 09:59 PM (UTC) |
Message
| |
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #4 on Fri 17 Sep 2010 10:09 PM (UTC) |
Message
| Well, Tspivey said he was using XP, which is interesting because nobody's reported this rather hard-to-miss issue before, and XP has been around for quite a while. It's hard for me to believe that this is just a W7 issue. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #5 on Fri 17 Sep 2010 11:30 PM (UTC) |
Message
| The techniques described in that thread would also apply to earlier versions - you can put MUSHclient manually somewhere and avoid all the installer issues. Well picked up, though, that I skimmed the original problem. I think I picked up on Coderunner's comment about Windows 7. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #6 on Fri 17 Sep 2010 11:33 PM (UTC) |
Message
| I wonder... Nick, would it be possible to create a separate installer designed for the later versions of Windows, so we can dodge these inconsistencies altogether? |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Tspivey
Canada (54 posts) Bio
|
Date
| Reply #7 on Sat 18 Sep 2010 12:52 AM (UTC) |
Message
| I think I found the problem. In the NSIS docs
for CreateShortCut, it says:
$OUTDIR is used for the working directory.
You can change it by using SetOutPath before creating the Shortcut.
Currently, you have:
; SetOutPath $INSTDIR
SetOutPath "$SMPROGRAMS\MUSHclient"
CreateShortCut...
I think it will work if you use:
SetOutPath "$SMPROGRAMS\MUSHclient"
SetOutPath $INSTDIR
CreateShortCut...
The first SetOutPath will create the MUSHclient directory in the start menu, and the second will reset it to $INSTDIR so that
the start in field will be set correctly.
I tried testing this by copying the relevant binaries to the correct locations so the installer could find them to rebuild,
and on my system, it seems to work - all the shortcuts
have the start in field set to the directory containing mushclient.exe. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sat 18 Sep 2010 03:23 AM (UTC) |
Message
| Look strange, but I'll try it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #9 on Sat 18 Sep 2010 03:37 AM (UTC) |
Message
|
Tspivey said:
I think I found the problem. In the NSIS docs
for CreateShortCut, it says:
$OUTDIR is used for the working directory.
You can change it by using SetOutPath before creating the Shortcut.
Currently, you have:
; SetOutPath $INSTDIR
SetOutPath "$SMPROGRAMS\MUSHclient"
CreateShortCut...
...
The semicolon should be a comment character. You shouldn't need to SetOutPath twice. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #10 on Sat 18 Sep 2010 03:48 AM (UTC) |
Message
| Yes, but I think he's saying it will create the directory, and then move back. Don't know if this is right. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tspivey
Canada (54 posts) Bio
|
Date
| Reply #11 on Sat 18 Sep 2010 05:46 AM (UTC) Amended on Sat 18 Sep 2010 06:16 AM (UTC) by Tspivey
|
Message
|
Nick Gammon said:
Yes, but I think he's saying it will create the directory, and then move back. Don't know if this is right.
That's what it does, gathering from the documentation.
You might be able to use CreateDirectory "$SMPROGRAMS\MUSHclient"
to make it more clear, but what you have now in latest git should work.
| Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #12 on Sat 18 Sep 2010 05:56 AM (UTC) |
Message
| On line 114 of the nsi script, you're doing:
CreateDirectory "$INSTDIR\worlds"
Does
CreateDirectory "$SMPROGRAMS\MushClient"
not work? | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
37,227 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top