You are here

Quick & Easy Launcher

6 posts / 0 new
Last post
SmithTech
SmithTech's picture
Offline
Last seen: 4 months 1 week ago
Developer
Joined: 2006-11-24 18:06
Quick & Easy Launcher

Since there seems to be fair amount of requests for help on creating launchers.
Here is a quick way to do.
Once PAM 1.1 is released this will not be needed though.
1. Download this batch converter. (Its freeware I found it using google)
http://www.hollmen.dk/files/batcom10uk.zip
2. Copy this to a text file and rename it to {appname}.bat
START ..\{AppName}\App\{foldername}\{exeName}.exe
this is the relative path to your exe from the PAM folder you will place your files and launcher in.
3. Edit the path to fit your path and exe name.
ie. START ..\IrfanView\App\IrfanView\i_view32.exe
4. Save it to the appropriate folder ie.
E:\PortableApps\IrfanViewPortable assuming the exe you actually want to launch is in
E:\PortableApps\IrfanViewPortable\App\IrfanView
5. extract and run the batch converter to convert your batch file.
File \ Load Batch File then
Functions \ Compile Batch File
6. Copy the generated exe from the folder where the batch converter is located to the application folder.
ie. E:\PortableApps\IrfanViewPortable

SmithTech
SmithTech's picture
Offline
Last seen: 4 months 1 week ago
Developer
Joined: 2006-11-24 18:06
Did a little more digging,

Did a little more digging, you can also find the program here.
http://www.hollmen.dk/content/view/16/30/
along with instructions on how to change the icon of the compiled exe (since I know someone will ask)

SmithTech

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

nanobreaker
Offline
Last seen: 10 years 8 months ago
Joined: 2005-12-09 23:02
hmmm

i followed the instructions to change the icon, but after i uncompress the exe, my batch file just stops working

-
There are only 10 types of people in the world: Those who understand binary, and those who don't. - Anonymous

SmithTech
SmithTech's picture
Offline
Last seen: 4 months 1 week ago
Developer
Joined: 2006-11-24 18:06
try adding 2 blank lines

try adding 2 blank lines before the START command.
don't know why it works, just found it mentioned on one of the "tutorial" sites.

Or you can try using the Application Portable Template from the forums along with NSIS portable from this site. Its really just as easy as making the batch file and compiling.
Just fill in the template and compile.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

nanobreaker
Offline
Last seen: 10 years 8 months ago
Joined: 2005-12-09 23:02
wow

thanks man, now i can finally run some apps (from my TC volume) off the pa menu Smile

-
There are only 10 types of people in the world: Those who understand binary, and those who don't. - Anonymous

kingtone
Offline
Last seen: 1 year 6 months ago
Joined: 2007-02-14 18:15
Thanks

This is cool. I was trying to figure out how to call a stand alone html file and this fit the bill perfectly.

In case it helps anyone else, I modified it slightly because I couldn't quite get the path to execute right. Simply changed the batch file to be:

cd \
START \PortableApps\MonkeyGTD\App\MonkeyGTD\mywiki.html

then complied and put the generated exe in
E:\PortableApps\MonkeyGTD\MonkeyGTD.exe

-Scott
www.techlifeweb.com

[Moderator RM: Please use <pre> for code blocks]

Topic locked