You are here

Need Help With Making App Portable

8 posts / 0 new
Last post
jpolzner
Offline
Last seen: 2 weeks 4 days ago
Joined: 2007-04-30 13:19
Need Help With Making App Portable

I'm in the process of making a launcher for Final Burn Alpha. I using a simple NSIS script as shown below.

------------------------------------------
!define NAME "Final Burn Alpha"

OutFile "${NAME}.exe"

WindowIcon Off
SilentInstall Silent
AutoCloseWindow True

Icon "fba.ico"

Section "Main"
Exec 'App\fba.exe'
SectionEnd
-------------------------------------------

The problem I'm running into is when PAM is running, FBA cannot write to the application directory (\PortableApps\FinalBurnAlpha\App\). Instead it's creating new directories & .ini file in the root directory of the USB drive like it the first time running. If I shut down PAM and run FBA, it's able to write to the directory just fine.

Any ideas? I made launchers for several apps using the same layout and I've never run into this problem before?

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Well.

Are you using a beta version of the menu, because there is currently a working directory bug fixed in beta two, but broken again in beta 3.

_____________________________
I felt so different without a signature.

jpolzner
Offline
Last seen: 2 weeks 4 days ago
Joined: 2007-04-30 13:19
I'm on Beta 3. I'll try

I'm on Beta 3. I'll try rolling back to Beta 2 and see if it fixes the problem.

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2006-12-14 17:24
try this at the

try this at the end:

Section "Main"
Exec '$exedir\App\fba.exe'
SectionEnd

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
Nope

You need more quotes.

Section "Main"
Exec '"$EXEDIR\App\fba.exe"'
SectionEnd

----
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."

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Well...

I understand sometimes when the extra quotes are needed for, but what are they needed for in this case?

_____________________________
I felt so different without a signature.

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 8 months ago
Developer
Joined: 2006-01-24 13:26
If the directory has a space

If the directory has a space then part of the filename will be mistaken for command line args.

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
Exactly

For example Exec '$EXEDIR\hi.exe' in My Documents would be sent as C:\Documents and Settings\Dummy User\My Documents\hi.exe which could launch C:\Documents.exe, C:\Documents and Settings\Dummy.exe, C:\Documents and Settings\Dummy User\My.exe or C:\Documents and Settings\Dummy User\My Documents\hi.exe
Whereas, Exec '"$EXEDIR\hi.exe"' would be sent as "C:\Documents and Settings\Dummy User\My Documents\hi.exe" which would only match "C:\Documents and Settings\Dummy User\My Documents\hi.exe"
----
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."

Log in or register to post comments