yaP - yet another Portablizer
Re: yaP - yet another Portablizer
Thanks
"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.
Re: yaP - yet another Portablizer
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
btw
the big Flac file and the Cue file MUST have the same name (otherwise program do not splits the big flac file).
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
the big Flac file and the Cue file MUST have the same name (otherwise program do not splits the big flac file).
"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.
Re: yaP - yet another Portablizer
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
Yes, You have righttproli 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.
Code: Select all
[AFTER]
-dir = %LocalAppData%\MediaHuman :: if empty
-regkey = HKCU\Software\MediaHuman
-regkey = HKCU\Software\Trolltech
-regkey = HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates
Thanks
"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.
Re: yaP - yet another Portablizer
And the three in the BEFORE part? They seem to overwrite each other
Re: yaP - yet another Portablizer
Here is the BEFORE part rewrited:tproli wrote:And the three in the BEFORE part? They seem to overwrite each other
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
"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.
Re: yaP - yet another Portablizer
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.
"+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
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:
Good job
Thanks
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
Thanks
"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.
Re: yaP - yet another Portablizer
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
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
Thanks
"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.
Re: yaP - yet another Portablizer
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...
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
"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).
And here, the "Ending No 2..." is never shown:
This config will show "Starting..." only (on Win7).
Code: Select all
[GENERAL]
application=%windir%\Notepad.exe
[BEFORE]
message = Starting...
quit = 1
[AFTER]
message = Ending...
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
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...
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
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.
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
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...
BTW, there's something wrong with yaP's webpage anchors, they all scroll a few lines past their destination -- at least in Firefox.