You are here

'Other' portable app only launches from .bat file

5 posts / 0 new
Last post
phay
Offline
Last seen: 5 years 7 months ago
Joined: 2012-06-05 03:11
'Other' portable app only launches from .bat file

I recently downloaded Jitsi Portable from sourceforge ( http://sourceforge.net/projects/jitsiportable/ ), unzipped it, and placed it into the PortableApps directory so I can (hopefully) launch it with the PortableApps.com Menu.

The main program directory contains the following 2 files involved in launching Jitsi Portable:

jitsi-non-portable.exe
jitsi-portable.bat

The batch file contains the following 2 lines:
start jitsi-non-portable.exe --config=./data
exit

The batch file is what is used to launch Jitsi Portable, but the PortableApps Menu (by design) looks to launch the .exe file.

Is there any way (or a workaround) for getting this program launched from within the PortableApps Menu.

Thanks.

bill_gagliardi
bill_gagliardi's picture
Offline
Last seen: 2 weeks 1 day ago
Joined: 2008-11-05 22:44
one way

My suggestion would be to convert the batch file to an executable. The program bat2exe should do what you need. This should enable you to run it from the menu (though it will be using a local install of java, not the portable one).

Bill G.
Frozen St. Paul, MN
land of the frozen mosquito

phay
Offline
Last seen: 5 years 7 months ago
Joined: 2012-06-05 03:11
re: one way

Thanks for your suggestion, and the interesting utility.

Bennieboj
Bennieboj's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2010-09-16 07:28
Launcher

You can also make the "portable app" portable.

[Launch]
ProgramExecutable=Jitsi\jitsi-non-portable.exe
WorkingDirectory=%PAL:AppDir%\Jitsi
CommandLineArguments='--config=./data'. ;you should point this to %PAL:DataDir%\settings\jitsi or something
;following things are just copied from an app of mine, you should read the launcher documentation if you want to use them!
LaunchAppAfterSplash=true
SingleAppInstance=true
SinglePortableAppInstance=true
DirectoryMoveOK=yes

This program won't use the portable java, instead it'll use the java included in the zip file. I guess in some subfolders there is a .jar file. You could also make it use the portable Java using the jar file, but I suggest you get this to work first.

Yes, I set the working directory!

phay
Offline
Last seen: 5 years 7 months ago
Joined: 2012-06-05 03:11
re: Launcher

Thanks, I'll be sure to take a look at this as well.

Log in or register to post comments