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.
Message
Author
User avatar
tproli
Posts: 1172
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#361 Post by tproli »

I know that scroll is wrong but for some reason I won't fix :)

freakazoid
Posts: 1234
Joined: Wed Jul 18, 2007 5:45 pm

Re: yaP - yet another Portablizer

#362 Post by freakazoid »

Here's a yaP file for DVD Decrypter:

Code: Select all

[GENERAL]
application = App\DVDDecrypter.exe

[BEFORE]
regkey = HKCU\Software\DVD Decrypter :: Data\settings.reg

; set defaults
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_ShellExtensionsAutoPlay :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_ShellExtensionsDVD :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_FileAssociationsCDR :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_FileAssociationsDVD :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_FileAssociationsIMG :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_FileAssociationsISO :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: REGISTRY_FileAssociationsMDS :: 0 :: REG_DWORD
+regvalue = HKCU\Software\DVD Decrypter :: EVENTS_CheckForProgramUpdate :: 0 :: REG_DWORD
I recently had the need to rip the VOB file from a DVD menu and had to look up this old program.

Extract the setup .exe with Universal Extractor and move everything but the $PLUGINSDIR directory to the "App" directory.
is it stealth? ;)

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

Re: yaP - yet another Portablizer

#363 Post by tproli »

Thanks, added here:
http://rolandtoth.hu/yaP/#examples/DVD%20Decrypter.ini

I did a quick launch-close test and the application left no entries behind.

I am mrpink
Posts: 3
Joined: Sun Oct 04, 2015 3:34 am

Re: yaP - yet another Portablizer

#364 Post by I am mrpink »

ι
Last edited by I am mrpink on Tue Oct 06, 2015 12:07 pm, edited 1 time in total.

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

Re: yaP - yet another Portablizer

#365 Post by tproli »

Looks like it installs a driver - that means there's possibly no way to make it portable.

I am mrpink
Posts: 3
Joined: Sun Oct 04, 2015 3:34 am

Re: yaP - yet another Portablizer

#366 Post by I am mrpink »

φ
Last edited by I am mrpink on Tue Oct 06, 2015 12:07 pm, edited 1 time in total.

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

Re: yaP - yet another Portablizer

#367 Post by tproli »

Have you tried the X64 version? It is available in the beta package:
http://rolandtoth.hu/yaP/bin/yaP-latest-beta.zip

I am mrpink
Posts: 3
Joined: Sun Oct 04, 2015 3:34 am

Re: yaP - yet another Portablizer

#368 Post by I am mrpink »

π
Last edited by I am mrpink on Tue Oct 06, 2015 12:07 pm, edited 1 time in total.

User avatar
Midas
Posts: 6905
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#369 Post by Midas »

Is it me or HitmanPro doesn't seem to be fully freeware? :?

User avatar
Midas
Posts: 6905
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#370 Post by Midas »

Hi there, tproli.

Lately, whenever I download one of yaP's ready-made examples (from http://www.rolandtoth.hu/yaP/#examples), launcher INI files are coming in Unix text format (UTF-8 with LF only). What gives?

As the majority are Windows only apps, ANSI with Windows standard line endings (CR+LF) would be preferable, IMHO. Thanks anyway for your continued support.

freakazoid
Posts: 1234
Joined: Wed Jul 18, 2007 5:45 pm

Re: yaP - yet another Portablizer

#371 Post by freakazoid »

Happy new year, fellow yaP'ers!

Here's my first yaP file for 2016 - Soulseek.

Code: Select all

[GENERAL]
application = App\SoulseekQt.exe

[BEFORE]
regkey = HKCU\Software\SoulseekQt :: Data\registry.reg
dir = %localappdata%\SoulseekQt :: Data\
(regkey) = HKCU\Software\QtProject
It's an old-school file-sharing app reminscent of Napster.

One problem with Soulseek is it creates a dynamic settings file each time it closes - soulseek-client.dat.### (### is a timestamp of some sort). This could lead to the Data folder becoming quite large over time.

tproli - Would it be possible for yaP to only keep the latest file? This could work on either the BEFORE or AFTER section.
is it stealth? ;)

User avatar
rbon
Posts: 426
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: yaP - yet another Portablizer

#372 Post by rbon »

Midas wrote:Hi there, tproli.

Lately, whenever I download one of yaP's ready-made examples (from http://www.rolandtoth.hu/yaP/#examples), launcher INI files are coming in Unix text format (UTF-8 with LF only). What gives?

As the majority are Windows only apps, ANSI with Windows standard line endings (CR+LF) would be preferable, IMHO. Thanks anyway for your continued support.
Hi Midas,
You are right, it's Unix text format.
I open these ini files with Microsoft Wordpad and then I save them with the same program and voilà CR+LF. :wink:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
Midas
Posts: 6905
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#373 Post by Midas »

rbon wrote:You are right, it's Unix text format. I open these ini files with Microsoft Wordpad and then I save them with the same program and voilà CR+LF.
  • Thanks for the nice tip, rbon. 8)

    I used a text editor to the same purpose, but it's still a nuisance. And I can't grasp any need for it.
freakazoid wrote:One problem with Soulseek is it creates a dynamic settings file each time it closes - soulseek-client.dat.### (### is a timestamp of some sort). This could lead to the Data folder becoming quite large over time.

tproli - Would it be possible for yaP to only keep the latest file? This could work on either the BEFORE or AFTER section.
  • I pondered how to solve your problem: instead of testing file time-stamp to find the latest, my best shot would be creating a temporary folder with the last save, compare them and if they differ, erase said folder and create a new one with the current version.

    Or use the "iniwrite" keyword to write the name of the file before launch and then remove that file with "iniread" and "-file"... or maybe vice-versa.

    And "batch" could be yet another option.

    BTW, I found this on Soulseek forums: http://www.slsknet.org/news/node/2306 and http://www.slsknet.org/news/node/452.

User avatar
Midas
Posts: 6905
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#374 Post by Midas »

yaP v0.7 released, dated 2016-03-10 (which somehow I totally missed up to now... :shock:)

Can someone update the OP, please?
  • changelog.txt author wrote:v0.7 - March 09, 2016
    - NEW: uservars available in GENERAL section too (suggested by Shyam Saurabh)
    - NEW: option to set default values for USERINPUT, USERFILE and USERDIR
    To make this work, new user variables have to be created beforehands.

    Examples:

    uservar = USERTEXT_DEFAULT :: Hello!
    uservar = USERTEXT_TITLE :: Important notice
    uservar = USERTEXT_MESSAGE :: Please say Hi or Hello
    message = {USERTEXT}

    uservar = USERFILE_DEFAULT :: D:\helloworld.txt
    uservar = USERFILE_TITLE :: Please select your favorite file
    uservar = USERFILE_PATTERN :: Text files | *.txt;*.json | Documents | *.doc
    message = {USERFILE}

    uservar = USERDIR_DEFAULT :: %windir%
    uservar = USERDIR_TITLE :: Please select your favorite folder
    message = {USERDIR}

    v0.6.5 build 293 BETA - March 30, 2015
    - FIXED: launching applications with non-exe extension (thanks to Midas)
    - NEW: main icon update

    v0.6.5 build 287 BETA - February 16, 2015
    - NEW: ini keys ending with "X64" are executed only if:
    - yaP is running on 64bit Windows, and
    - the "application" key has a second exe set (indicating that yaP is running in X64 mode)

    Example:
    application = App\App.exe :: App\AppX64.exe
    envvar = JAVA_HOME :: {YAPROOT}\jre
    envvarX64 = JAVA_HOME :: {YAPROOT}\jre64

    The first exe must be set even if the application does not support 32bit:
    application = NULL :: App\AppX64.exe

    - NEW: ini keys ending with "X86" are executed only if yaP is not running on 64bit Windows
    - FIXED: keep passed parameters when yaP is restarted in admin mode
    - FIXED: adding registry values failed if contained spaces

    v0.6 build 188 BETA
    - NEW: added 64bit version of yaP to the distribution package (yaPX64.exe).
    The 64bit version allows accessing registry keys without redirection (e.g. HKLM\Software).
    - NEW: launching main application maximized/minimized/hidden
    Syntax: application = App.exe [ :: AppX64.exe] [ :: max | min | hide]
    Example: application = App\App.exe :: NULL :: max
    - NEW: using "*" as the first character of main exe disables main application path validation
    Example: application = *App\NonExistingFile.exe
    - NEW: systemrefresh also refresh desktop wallpaper
    - NEW: {JAVAEXE} macro: absolute path to installed Java executable (javaw.exe)
    Example usage:
    application = {JAVAEXE}
    commandline = -jar "{YAPROOT}\App\MyFile.jar"
    - NEW: on X64 systems yaP first looks for "<EXENAME>X64.ini".
    If not found, "<EXENAME>.ini" will used.
    Same holds true for the "yaP.ini" fallback (first "yaPX64.ini", then "yaP.ini").

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

Re: yaP - yet another Portablizer

#375 Post by tproli »

What do you mean on updating the OP? There's nothing about version info there, but maybe we are not talking about the same post (the first post in this topic). Maybe you mess it with the original post that I left there (for history books of the future, of course :)).

Post Reply