You are here

Working directory bug

6 posts / 0 new
Last post
ormus7577
Offline
Last seen: 15 years 7 months ago
Joined: 2007-03-06 03:15
Working directory bug

Hi.

I've written a launcher (for a game called Adom). Sadly the app is hit by the working directory bug Sad I know it's fixed in beta2 pr2. But is there any other way around it? I would like the launcher to be more universal and not limited to one prerelease version. Beside, where is that version available for download? Can't find a thread/download at sourceforge.

Cheers.

John Bentley
John Bentley's picture
Offline
Last seen: 15 years 3 months ago
Developer
Joined: 2006-01-24 13:26
In NSIS you could use

In NSIS you could use $EXEDIR to get the directory the executable is in.
In AutoIt you use @ScriptDir.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

ormus7577
Offline
Last seen: 15 years 7 months ago
Joined: 2007-03-06 03:15
I misphrased that

Not the launcher is affected by the working directory bug (it uses the $EXEDIR), but the game itself.

I've found a way around it though. I'm using a shortcut (.lnk) and can change the working folder property of that with NSIS. The launcher is working fine so far, I'll try to finish the installer tonight. It's a little tricky, as I can't distribute the launcher with the game included due to licence restrictions. I will try to have it downloaded or browsed to during the installer process. I just hope it will be ok to post the launcher here...

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Try this.

SetOutDir "$EXEDIR" or something like that.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

ormus7577
Offline
Last seen: 15 years 7 months ago
Joined: 2007-03-06 03:15
Excellent hint

The command is SetOutPath and it's working perfectly, saves me the shortcut workaround. Thanks Ryan!

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
I love that one.

I'm trying to add it as a changeable parameter to a PortableApps i'm making, cause it works as the default save directory.
_____________________________
Wow, that signature totally got old.

Log in or register to post comments