You are here

Adding Application With No Executable

9 posts / 0 new
Last post
Neil Crew
Offline
Last seen: 15 years 3 months ago
Joined: 2009-08-12 11:51
Adding Application With No Executable

I've added a couple of apps to my menu, and these work fine because the folder has the .exe file in the directory which the PA system finds and puts on the menu.

I have a new app to add that is simply an internet shortcut to a browser page (with some flash in it).

How can I add it as a menu item?

Cheers!

Gizmokid2005
Gizmokid2005's picture
Offline
Last seen: 2 weeks 6 days ago
Developer
Joined: 2007-01-17 19:24
Right now you can't. The

Right now you can't. The menu only looks for .exe files in the respective folders.

Jero
Offline
Last seen: 15 years 2 months ago
Joined: 2009-06-19 16:53
That's not true

I have myself some applications with .BAT files as launchers Wink

You can create a BAT file that sets up the environment and launches the desired application, i.e. an actual EXE file, a .jar file or what ever. I'm not an expert, but in the case of a flash file I think you can do something like:

"C:\Program Files\Internet Explorer\iexplore.exe path/to/flash/file"

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
He was referring to a limitation of the PA menu

It's quite possible to make BAT files as launchers, but the PA Menu will only display EXE files in the menu.

I made this half-pony, half-monkey monster to please you.

Jero
Offline
Last seen: 15 years 2 months ago
Joined: 2009-06-19 16:53
Again...

...that's not true. Have you tested it? I did, and the application and its icon is displayed in the menu. You just have to create the rest of the PA directory structure, including the icon files, exactly the same way you would do for any EXE-based PortableApp.

The moral: EXE and BAT files are treated exactly the same way as portable app launchers as long as you create the directory structure according to the PA format.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
I stand corrected

Having been a member for a while, I know it USED to be the case that only exe files were recognized by the menu.
However, I DL'd Chris Morgan's PortableApps.com Launcher, (which comes complete with the full PA directory structure) and fiddled around with the appinfo.ini file, and confirmed that you are correct.
This must be a recent improvement that I was unaware of, but I'm glad I know now!

Thanks!

I made this half-pony, half-monkey monster to please you.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
This might work

It's a similar solution to the problem of using autorun to open an HTML file on a CD, sort of.

There are lots of solutions out there, but this should work pretty easily out of box.
It's called AutoRun Pro.
http://www.avdf.com/oct98/art_ot005.html
The link is at the bottom of the page.

Put all these files into a folder with your HTML file, edit the autorun.inf, and it should work OK.

The shortcut in the PA menu will say Autorunpro; however, the PA Menu can rename it. The icon can't be changed without editing the source.

If you want to get fancy, it shouldn't be too hard to write an NSIS script, that will create a shell execute launcher which can have a replaceable icon.

I made this half-pony, half-monkey monster to please you.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Will it work as an HTA file?

In windows, you can often rename an html file to hta, and it will run like an application.

If that works, I can send you the NSIS script I used to launch my hta file.

EDIT: If you use Jero's approach, you can launch HTA files in the same way as EXE and BAT.

I made this half-pony, half-monkey monster to please you.

sl23
Offline
Last seen: 4 months 2 days ago
Joined: 2009-03-30 05:56
R34Mod

I've added shortcuts for apps, a script file that hides/shows hidden files, andeven a shortcut to task manager on my PA.cR34MOD Menu. It does however mean that you need to edit the .ini file, no drag and drop here i'm afraid!

You'll find it here: http://ptc.kain-planet.de/files.php?cat=13

Though I remember reading this is frowned upon here at PA.c (sorry JTH if this isn't the done thing) but it is a major update to PA.c v1.5 it can be resized, custom shortcuts/icons placed anywhere, plus right clicking can customise names of apps/folders as well as folder destinations, categories can be added, etc. I've not had a single problem with it and I've used it for around 8 months. It took a while before I realised I could edit the .ini file to add shortcuts and icons but when I did it made so much difference. It was almost like combining Rocket Dock with PA.cMenu. Shame there's no drag and drop though Sad

Hope that helps

Scott

Live for an ideal and leave no place in the mind for anything else.

Log in or register to post comments