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?
You need to set the WorkingDirectory setting in the Launch section of the launcher.ini in App\AppInfo\Launcher ie:
Of course, this needs to match the actual folder layout used.