It is currently Wed May 22, 2013 2:52 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: My First PAF Application!
PostPosted: Fri Nov 25, 2011 10:07 am 
Offline
User avatar

Joined: Thu Feb 24, 2011 4:24 pm
Posts: 165
today i had time to load up a new VM image to work with.
it took several hours but now i have a fast, light, responsive Windows image to work with :)

I also decided to make the jump to PAF format for my portable apps.

It took a while for me to take the plunge because i don't use PortableApps' Start Menu.
Rather, i make a shortcut and place it in "PortableApps" folder under my Start Menu.

I like PAF format because it's clean, and has that uniformed specification.

Another reason i didn't want to make the switch is because im so used to NSIS.

I was confused because PAF is just too easy.
There really is no coding.
Basically instructions for the launcher/installer.
Very cool..

Well i made my first paf app. today..
i wanted to start with an easy app. that did not require multiple objectives.
so i settled on MPlayer WW.

Here's the app. if anyone is interested.
Breakdown: it takes care of the '.dvdcss' folder created in USERPROFILE when watching DVDs.
It's the css script.

*LINKS REMOVED*

* tested .. of course :)
* i also looked into downloading it on installation but unfortunately it's in .7zip format.

any comments, suggestions, or questions.. feel free :)


Last edited by Magibon on Sat Nov 26, 2011 7:37 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: My First PAF Application!
PostPosted: Fri Nov 25, 2011 2:29 pm 
Offline
User avatar

Joined: Wed Feb 10, 2010 4:44 pm
Posts: 405
Location: New York, NY
That's a great start, Magibon. :) I have a few suggestions for improvement to get it fully compliant. For example, you can move the settings files like mplayer.ini to/from the Data directory so they get preserved on upgrades and backed up by the platform's built-in backup utility. You can do that just by adding this to your launcher's INI file:

Code:
[FilesMove]
settings\mplayer.ini=%PAL:AppDir%\MPlayerWW


All you need then is to create DefaultData\settings directories within App and move your default mplayer.ini there. The launcher will handle moving it to Data\settings on first run for you and then move it back and forth. If possible, you should check to see if there is a commandline switch to point to the settings to avoid the move. You can also set DirectoryMoveOK=yes in your launcher's ini since the app doesn't have problems when being moved between directories. That disables the warning users get (just to be safe) when that setting doesn't exist.

Since it's a multilingual app, you can set Language=Multilingual in your AppInfo.ini and that will give you a multilingual installer and remove the _English from the filename. You can have the installer set the language of that app, but that would require some custom NSIS code to do. We do it in a few of our installers like LibreOffice so you can see an example in there. Also, if you wanted, the PortableApps.com Installer has built-in support for extracting 7z files as part of the online installer setup, also automated and requiring no coding. AdvancedExtract and DoubleExtract both support it.

I'm glad you're enjoying trying our tools out. We especially love feedback from new users, so please be sure to post any feedback to our development forum. Thanks!

_________________
PortableApps.com - The open standard for portable software


Top
 Profile  
 
 Post subject: Re: My First PAF Application!
PostPosted: Sat Nov 26, 2011 7:36 am 
Offline
User avatar

Joined: Thu Feb 24, 2011 4:24 pm
Posts: 165
THANK YOU so much John!

I truly appreciate you taking the time to post such a detailed/helpful reply.
Now i understand the true scope of PAF format.

I have a lot of reading, testing, trial & error to do.
I just needed to actually build my first PAF application to get the hang of it :)

I skipped the language selection and live downloading.
I will save that for a rainy day, when im much more accustomed to PAF.

I did implement the DefaultData/settings to preserve the settings in case of updates.


MPlayerWWPortable_SVN-r34362.paf.exe | 9.76 MB
MPlayerWWPortable_SVN-r34362_FULL.paf.exe | 28.47 MB

Thanks again!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group