yaP - yet another Portablizer

If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.

Moderators: usdcs, Andrew Lee, webfork

Post Reply
Message
Author
User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

yaP - yet another Portablizer

#1 Post by tproli » Tue Dec 08, 2009 9:55 am

Update:
find latest version and documentation on yaP website.
-----------------------------------------------

Hi guys,

I've made a small utility called yaP to make it easy to launch some applications that are almost portable.
It is similar to X-launcher but somewhat easier.

yaP can execute batch files and import registry keys before & after the main application.

Usage scenarios
- applications requiring some files to be copied somewhere to run (eg. config file in Windows directory)
- applications requiring some registry entries to run
- applications requiring dll registrations
- etc.

Features
- ini-based settings
- absolute and relative path support
- executing batch files before launch and on close
- importing reg files before launch and on close (cleanup)
- executing batch files completely silent
- executing applications with command line parameters
- system refresh support
- support for launch & quit (disable waiting for the main application to terminate)
- extra wait option for slower computers or slower applications
- option to use a separate directory for registry, batch or other files
- setting custom working directory (absolute or relative path)
- option to prompt user before & after running the main application

Usage
1. Edit yaP.ini and fill the required sections (application, commandline, before & after sections, etc)
2. Create your batch files
3. Copy yaP.ini and yaP.exe to your application's directory
4. Run yaP.exe

Download v0.23
http://rolandtoth.hu/files/yaP_v0.25.7z

Included Examples
Anki
Auspex
CogniTrainer
Color Quantizer
Dependency
Dependency Walker
Dukto R5
ExamDiff
FBReader
Free Font Renamer
FTP Wanderer
GSpot
Image Tuner
Images2PDF
ISO Workshop
Klavaro
LICEcap
MITT
ocenaudio
ODIN
OverDisk
QDictionary
Scrollable Desktop
ShiftN
Sizer
Skype
SoftPerfect Network Scanner
SolveSpace
SUMo
SyncBack
TClock Light
UltraVNC
WinDjView
WinLess
WinMerge
Last edited by tproli on Mon May 27, 2013 12:50 am, edited 12 times in total.

stanmarsh
Posts: 30
Joined: Fri Nov 13, 2009 9:19 pm

Re: yaP - yet another Portablizer

#2 Post by stanmarsh » Tue Dec 08, 2009 7:59 pm

thanks tproli for the portablizer! :D

can you share a batch template or example for moving files around?

cheers

User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#3 Post by tproli » Wed Dec 09, 2009 1:17 am

No such thing as batch template, but I created an example setup with WinDjView. You can download it from the first post.
Read the included readme.exe for the instructions (you have to put WinDjView.exe in the main folder, that's all).

Some minor bugs were fixed in yaP + added a new feature to display a prompt before & after running the main application.

User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#4 Post by tproli » Wed Dec 09, 2009 12:44 pm

To copy/move files, use something like this:

before.bat:

Code: Select all

@echo off

:: Copy settings.ini file to the Windows directory:
COPY /Y settings.ini %WINDIR%\settings.ini
after.bat:

Code: Select all

@echo off

:: Move settings.ini file from Windows directory to the portable directory:
MOVE /Y %WINDIR%\settings.ini settings.ini

stanmarsh
Posts: 30
Joined: Fri Nov 13, 2009 9:19 pm

Re: yaP - yet another Portablizer

#5 Post by stanmarsh » Wed Dec 09, 2009 6:06 pm

thanks tproli for the examples!

User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#6 Post by tproli » Thu Dec 24, 2009 11:38 am

First post updated to v0.2.

Changelog:
- added support for absolute paths (main application & root directory)
- added support for user-defined working directory, both absolute and relative path support (default set to main application's directory)
- added support for renaming config file
- using NirCmd 2.37 (http://www.nirsoft.net/utils/nircmd.html) for executing batch silently
- version numbering
- included examples: Klavaro, Scrollable Desktop, WinDjView

stanmarsh
Posts: 30
Joined: Fri Nov 13, 2009 9:19 pm

Re: yaP - yet another Portablizer v0.2

#7 Post by stanmarsh » Thu Dec 24, 2009 3:57 pm

thanks for the update tproli! :D

Stone Tablet
Posts: 42
Joined: Sun Oct 19, 2008 12:58 am

“yaP” if far from “yet another Portablizer” it is “Amazing”!

#8 Post by Stone Tablet » Tue Jan 12, 2010 12:45 pm

tproli,

Your “yaP” if far from “yet another Portablizer” it is “Amazing”!

Quick question… You added “both absolute and relative path support” yet the “ini” does not require this to be set. I know it works as demonstrated in your “Klavaro” example, but how? Can you explain how it is done and/or share your current script as you did in the first release?

Thanks…

User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer v0.2

#9 Post by tproli » Wed Jan 13, 2010 12:39 am

Thanks for the feedback.

If I understand right, you need some technical details about how the relative/absolute path is determined? It's simple, the script checks for ":\" in the path - if found, it's absolute, if not, it's relative.

I'll upload the source later.


fang-face
Posts: 41
Joined: Sat Aug 22, 2009 12:26 pm

Re: yaP - yet another Portablizer v0.2

#11 Post by fang-face » Thu May 13, 2010 3:07 pm

tproli wrote: I've made a small utility called yaP to make it easy to launch some applications that are almost portable.
It is similar to X-launcher but somewhat easier.

Download v0.2- includes example setups for Klavaro, Scrollable Desktop and WinDjView
http://ifile.it/6wkzyjs/yaP.v0.2.rar
this is link (and also the other one) is dead now. is there some other place to download?


User avatar
tproli
Posts: 1165
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer v0.2

#13 Post by tproli » Tue Dec 21, 2010 8:32 am

Hi folks,

I need some help on DOS commands, maybe somebody here can give a hand.

Is there any (preferably easy) way to delete a registry key only if it's empty? The key in question may contain another key or value(s).

(Currently working on yaP-ing SyncBack free version that's why I posted in this thread)

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: yaP - yet another Portablizer v0.2

#14 Post by guinness » Tue Dec 21, 2010 8:51 am

I found this: http://www.computerhope.com/reg.htm and did a search, but I don't think it can be done with DOS commands, unless I am wrong. I normally use AutoIt if I need to check a Registry Key.
Added 179 Applications: Portable

User avatar
SYSTEM
Posts: 1728
Joined: Sat Jul 31, 2010 1:19 am
Location: Helsinki, Finland

Re: yaP - yet another Portablizer v0.2

#15 Post by SYSTEM » Tue Dec 21, 2010 9:51 am

tproli wrote:Hi folks,

I need some help on DOS commands, maybe somebody here can give a hand.

Is there any (preferably easy) way to delete a registry key only if it's empty? The key in question may contain another key or value(s).

(Currently working on yaP-ing SyncBack free version that's why I posted in this thread)
I executed the following command:

Code: Select all

reg delete /?
I got the same information as guinness. It looks like there is no easy way to do what you want. :(
My YouTube channel | Release date of my 11th playlist: January 26, 2018

Post Reply