Page 24 of 29

Re: yaP - yet another Portablizer

Posted: Thu Apr 23, 2015 3:22 am
by rbon
:D Thanks :)

Re: yaP - yet another Portablizer

Posted: Wed May 20, 2015 8:26 am
by rbon
Dear tproli,
here is a launcher for 'MediaHuman Audio Converter', an excellent tool that I use for split big flac files (an entire album) into single tracks with flac format (also other formats).
- web program page: http://www.mediahuman.com/audio-converter/
- direct download installer: http://www.mediahuman.com/download/MHAudioConverter.exe

How to obtain 'Audio Converter Portable':
1. Create a folder named 'Audio Converter Portable' and two sub-folders '\App' and '\Settings'
2. unzip yaP into the folder 'Audio Converter Portable'
3. rename yaP.exe to AudioConverterPortable.exe and yaP.ini to AudioConverterPortable.ini
4. download MHAudioConverter.exe and install it
5. run program, open some menus and exit
6. copy all files and subfolders from installation folder (C:\Programs (x86)\MediaHuman\Audio Converter)
except unins000.exe, unins000.dat and unins000.msg into '\App'
7. copy from 'C:\Users\Default User\AppData\Local\MediaHuman\Audio Converter\' the file 'custom.pf' inside '\Settings'
8. uninstall MHAudioConverter and manually delete '\Default User\AppData\Local\MediaHuman\Audio Converter\' and its content
9. copy content of 'Code' at the bottom into 'AudioConverterPortable.ini'
10. run AudioConverterPortable.exe

Code: Select all

; configuration file for yaP v0.6.5 Beta 293 (http://rolandtoth.hu/yaP/)
; application name: Audio Converter Portable
; application type: 32-64 bit (for Windows XP, 7, 8, 8.1)
; version: 1.9.4
; website: http://www.mediahuman.com/it/audio-converter/
; suggested by: rbon

[GENERAL]
application = App\MHAudioConverter.exe

[BEFORE]
dir = %LocalAppData%\MediaHuman\Audio Converter :: Settings\custom.pf
regkey = HKCU\Software\MediaHuman :: Settings\AudioConverter.reg
regkey = HKCU\Software\Trolltech :: Settings\AudioConverter.reg
regkey = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates :: Settings\AudioConverter.reg

[AFTER]
-dir = %LocalAppData%\MediaHuman :: if empty
-regkey = HKCU\Software\MediaHuman :: Settings\AudioConverter.reg
-regkey = HKCU\Software\Trolltech :: Settings\AudioConverter.reg
-regkey = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates :: Settings\AudioConverter.reg
btw
the big Flac file and the Cue file MUST have the same name (otherwise program do not splits the big flac file).

Re: yaP - yet another Portablizer

Posted: Wed May 20, 2015 9:11 am
by tproli
Thanks, I'll check it. Are you sure all "Settings\AudioConverter.reg" chunks are in place? It seems a copy-paste error at first glance.

Re: yaP - yet another Portablizer

Posted: Wed May 20, 2015 9:28 am
by rbon
tproli wrote:Thanks, I'll check it. Are you sure all "Settings\AudioConverter.reg" chunks are in place? It seems a copy-paste error at first glance.
Yes, You have right :oops:

Code: Select all

[AFTER]
-dir = %LocalAppData%\MediaHuman :: if empty
-regkey = HKCU\Software\MediaHuman 
-regkey = HKCU\Software\Trolltech 
-regkey = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates
Now I think is exact.
Thanks

Re: yaP - yet another Portablizer

Posted: Wed May 20, 2015 9:33 am
by tproli
And the three in the BEFORE part? They seem to overwrite each other :)

Re: yaP - yet another Portablizer

Posted: Thu May 21, 2015 3:43 am
by rbon
tproli wrote:And the three in the BEFORE part? They seem to overwrite each other :)
Here is the BEFORE part rewrited:

Code: Select all

[BEFORE]
dir = %LocalAppData%\MediaHuman\Audio Converter :: Settings\custom.pf
regkey = HKCU\Software\MediaHuman :: Settings\AudioConverter.reg
+regkey = HKCU\Software\Trolltech :: Settings\AudioConverter.reg
+regkey = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates :: Settings\AudioConverter.reg
The keyword 'regkey' is only for first key, but if I add other regkeys I must use the keyword '+regkey'...right?

Re: yaP - yet another Portablizer

Posted: Thu May 21, 2015 4:39 am
by tproli
No. "regkey" makes a backup of the local registry key (if exists), then restores portable .reg file (from previous run, if any), and on AFTER run exports key to .reg file and finally, restores local backup.

"+regkey" adds a new registry key.

Use "(regkey)" (BEFORE only) to backup a regkey but don't export-import anything. It makes a local backup of the key (BEFORE run), and removes the reg key the portable might make, and finally restores the local backup.
So the portable app may write to this key but it will finally removed anyways. I guess that's what you're after.

Re: yaP - yet another Portablizer

Posted: Thu May 21, 2015 8:39 am
by rbon
Honestly I had doubts, but with the changes that You have suggested the launcher start much faster and with new check of the registry seems to be clean.
Here is the yaP launcher updated:

Code: Select all

; configuration file for yaP v0.6.5 Beta 293 (http://rolandtoth.hu/yaP/)
; application name: Audio Converter Portable
; application type: Windows All (XP--8.1)
; version: 1.9.4
; website: http://www.mediahuman.com/audio-converter/
; suggested by: rbon

[GENERAL]
application = App\MHAudioConverter.exe

[BEFORE]
dir = %LocalAppData%\MediaHuman\Audio Converter :: Settings\custom.pf
(regkey) = HKCU\Software\MediaHuman 
(regkey) = HKCU\Software\Trolltech 
(regkey) = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates 

[AFTER]
-dir = %LocalAppData%\MediaHuman :: if empty
Good job
Thanks

Re: yaP - yet another Portablizer

Posted: Thu May 21, 2015 10:03 am
by tproli
Still not perfect, but much closer :)

The first (regkey) should be "regkey" only, because that's where the app stores its settings. The launcher should take care of that, that's why it is saved to the Settings subfolder (settings.reg).

"dir" copies contents of a dir to another dir, so the second segment should be a directory, not a file.

The application starts its homepage on first run, so I added a "+regvalue" to avoid this.

I could simply uniextract the installer (choosing the last option, "not an installshield installer").

Thanks for the submission, here is the final config:
http://rolandtoth.hu/yaP/#examples/Medi ... verter.ini

Re: yaP - yet another Portablizer

Posted: Fri May 22, 2015 3:29 am
by rbon
:D Thanks :)

Re: yaP - yet another Portablizer

Posted: Mon Jun 01, 2015 10:17 am
by Midas
Another bug?

Having tested with yaP's latest Beta (currently v0.6.5.293B), it appears the "quit" keyword is currently non-functional: it doesn't seem to be able to immediately terminate yaP -- either placed before/after the "application" keyword in the "GENERAL" section, or else in the "AFTER" section...

Re: yaP - yet another Portablizer

Posted: Mon Jun 01, 2015 10:57 am
by tproli
"quit" is to be put in the BEFORE or AFTER sections. Here it seems no sign of malfunctioning.

This config will show "Starting..." only (on Win7).

Code: Select all

[GENERAL]
application=%windir%\Notepad.exe

[BEFORE]
message = Starting...
quit = 1

[AFTER]
message = Ending...
And here, the "Ending No 2..." is never shown:

Code: Select all

[GENERAL]
application=%windir%\Notepad.exe

[BEFORE]
message = Starting...
;quit = 1
;message = Starting No 2...

[AFTER]
message = Ending...
quit = 1
message = Ending No 2...

Re: yaP - yet another Portablizer

Posted: Tue Jun 02, 2015 2:19 am
by Midas
I see. :|

Then, is there a way for yaP to launch a program and immediately quit afterwards?

If I place the "quit" keyword in the "BEFORE" section (the only permutation I hadn't tried), the main application is not even launched...

Re: yaP - yet another Portablizer

Posted: Tue Jun 02, 2015 2:27 am
by tproli
Yes, it is for testing purposes as I remember :)

How about this?
http://rolandtoth.hu/yaP/#keyword_nowait

Update: this was removed, so you have to use "nowait":
I'm not sure about this, but if there's no "complex" items in the BEFORE section AND there are no AFTER items, yaP will automatically quit.

Re: yaP - yet another Portablizer

Posted: Tue Jun 02, 2015 2:41 am
by Midas
tproli wrote:How about this?
http://rolandtoth.hu/yaP/#keyword_nowait
  • Duh, it works. It could have bitten me in the face, as we say here, but I missed it... :oops:

    BTW, there's something wrong with yaP's webpage anchors, they all scroll a few lines past their destination -- at least in Firefox.