You are here

portable apps Launcher generator - wrong directory

2 posts / 0 new
Last post
DatLicht
Offline
Last seen: 1 year 9 months ago
Joined: 2015-04-21 07:39
portable apps Launcher generator - wrong directory

Hi folks,

I tried to make my first app portable. After creating proper help.html, appinfo.ini and icons, I tried adding a launcher with the Portableapps.com Launcher Generator.

Well, the launcher is generated and starts the correct .exe file, but in the wrong directory.

I mean this: Imagine these three files:
C:\out\launcher.exe
C:\out\MyCoolAppname\real.exe
C:\out\MyCoolAppname\some.ini

If I double-click real.exe, everything works fine. Opening the generated launcher.exe, real.exe will be opened, but in the directory of launcher.exe. This results in a "file not found error" of real.exe, because the program will look THERE for some.ini which - of course - not exists.

How can I setup the launcher generator this way that the target executable will be called where the real.exe is?

richo
richo's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2007-01-31 22:03
launcher.ini

You need to set the WorkingDirectory setting in the Launch section of the launcher.ini in App\AppInfo\Launcher ie:

[Launch]
WorkingDirectory=%PAL:AppDir%\MyCoolAppname

Of course, this needs to match the actual folder layout used.

Log in or register to post comments