Page 1 of 29

yaP - yet another Portablizer

Posted: Tue Dec 08, 2009 9:55 am
by tproli
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

Re: yaP - yet another Portablizer

Posted: Tue Dec 08, 2009 7:59 pm
by stanmarsh
thanks tproli for the portablizer! :D

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

cheers

Re: yaP - yet another Portablizer

Posted: Wed Dec 09, 2009 1:17 am
by tproli
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.

Re: yaP - yet another Portablizer

Posted: Wed Dec 09, 2009 12:44 pm
by tproli
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

Re: yaP - yet another Portablizer

Posted: Wed Dec 09, 2009 6:06 pm
by stanmarsh
thanks tproli for the examples!

Re: yaP - yet another Portablizer

Posted: Thu Dec 24, 2009 11:38 am
by tproli
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

Re: yaP - yet another Portablizer v0.2

Posted: Thu Dec 24, 2009 3:57 pm
by stanmarsh
thanks for the update tproli! :D

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

Posted: Tue Jan 12, 2010 12:45 pm
by Stone Tablet
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…

Re: yaP - yet another Portablizer v0.2

Posted: Wed Jan 13, 2010 12:39 am
by tproli
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.

Re: yaP - yet another Portablizer v0.2

Posted: Wed Jan 13, 2010 11:47 am
by tproli

Re: yaP - yet another Portablizer v0.2

Posted: Thu May 13, 2010 3:07 pm
by fang-face
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?

Re: yaP - yet another Portablizer v0.2

Posted: Thu May 13, 2010 9:27 pm
by tproli

Re: yaP - yet another Portablizer v0.2

Posted: Tue Dec 21, 2010 8:32 am
by tproli
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)

Re: yaP - yet another Portablizer v0.2

Posted: Tue Dec 21, 2010 8:51 am
by guinness
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.

Re: yaP - yet another Portablizer v0.2

Posted: Tue Dec 21, 2010 9:51 am
by SYSTEM
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. :(