You are here

How and When is Launcher.ini called?

4 posts / 0 new
Last post
selimb
Offline
Last seen: 9 years 2 days ago
Joined: 2015-04-15 02:11
How and When is Launcher.ini called?

I've been trying to leverage the Launcher.ini operations of PortableApps for easy file renaming and moving. However, I can't for the life of me figure out why my current, minimal, setup is not working as intended. I'm not interested in the app itself, more so the executing of the Launcher.ini.

You can find the entire directory structure for my portable app: UserConfigPortable on https://github.com/Kreger51/UserConfigPortable. What am I doing wrong? I based myself off of the Audacity structure and commands. As described in the repo's README, I would expect that when I open UserConfigPortable via the PortableApps menu, the value in Data/settings.cfg is set to success. Unfortunately, this is not the case.

First, am I correct in assuming that Launcher.ini is executed when the application is launched? Or is it when PortableApps is launched via Start.exe. In any case, the aforementioned value does not get correctly renamed.

Of course, if there's an easier, less messy way to easily do file parsing and replacing operations, that would be acceptable as well. I had been using Autohotkey to perform the job, but find it terribly slow on my Windows 8 machine (it runs super fast in Windows 7).

If this matters, my goal, for now, is to correctly set the drive letter for:

  1. ConEmu background picture settings
  2. SumatraPDF inverse search

Thanks in advance.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 4 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
AppNamePortable.exe

Rather than hand-coding a bat file, in order to use launcher.ini, you need to generate AppNamePortable.exe using the PortableApps.com Launcher.

This will be used any time the app is launched, not just from the platform..

Note that in appinfo.ini, you'll need to make the Start line value equal to UserConfigPortable.exe

ConEmu.Maximus5
ConEmu.Maximus5's picture
Offline
Last seen: 9 years 6 days ago
Joined: 2012-06-28 17:44
Own variable

As for ConEmu you may use its own variable for background location: %ConEmuDrive%

selimb
Offline
Last seen: 9 years 2 days ago
Joined: 2015-04-15 02:11
Thanks for the replies!

Thanks for the replies!

@Gord Caswell, Thanks for the information. So it is in fact the application that launches the launcher.ini when launched? I guess that makes sense. I thought it was the platform that knew to launch the launcher when launching an app (how many times can I use launch in one sentence XD).

@Maximus, Thanks! I had thought of doing that and tried with %ConEmuDir%. Is there a reason why %ConEmuDrive% is "accepted", but not %ConEmuDir%? I am using the PortableApps version of the app.

Edit: Using Gord Caswell's advice I got it to work.

For anyone who's been asking him/herself the same question: all you need in terms of executables is a dummy batch or exe. This dummy must be specified in the launcher file, i.e. a value for ProgramExecutable must be specified, otherwise the aforementioned "Launcher creator" will return an error.

For more complete information, visit the PortableApps Format documentation for or the github repo linked in original post for a minimal working portableapp.

Log in or register to post comments