[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  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] Refresh page


Posted by Tspivey   Canada  (54 posts)  [Biography] 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.
[Go to top] top

Posted by Coderunner   USA  (27 posts)  [Biography] 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.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Fri 17 Sep 2010 09:59 PM (UTC)
Message
The installer needs work for Windows 7.

Meanwhile see the helpful tips here:

http://www.gammon.com.au/forum/?id=9842

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] 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
[Go to top] top

Posted by Tspivey   Canada  (54 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by Tspivey   Canada  (54 posts)  [Biography] 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.
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] 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?
[Go to top] 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.


32,544 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]