renaming the jpe-launcher
Posted: Sun Oct 11, 2009 7:22 am
hello, jpe- and tpfc-fans.
i am quite new to this (or any) forum as a member, but lurking and reading here for several months. although i once had some lectures in c++, pascal and a few centuries ago in something called "fortran", i'm not a programmer or developer at all. short: i am a newbe.
jpe may be the best reason or incentive to change that a little bit. i played around with jpe and tried to acquaint with it by "jaunting" several programmes with jpe-quickie. i didn't have the time yet to follow the 12-step-program and edit the ini's (ähem, "have the patience and dare to" comes closer to it, except that i really am very slow in understanding technical things in english), except for 1 point:
i don't like the jpe-laucher (i like to call it "jaunter", don't know if that makes any sense in english) in the root directory to have the same name as the original, launched programme in .\JPE\ProgramFiles\%appname%. just renaming it didn't work. then i found out and felt ashamed, because it seemed sooo simple, that i should rename the ini next to it as well. at least with my first examle Pstart-jpe-rc3: renaming the jaunter to pstart-jpe.exe and the ini to pstart-jpe_jauntePE.ini worked (as far as i tested). but doing the same with my 2. example foobar did not (foobar2000.exe -> foobar2000-n2.exe, foobar2000_jauntePE.ini -> foobar2000-n2_jauntePE.ini, i'd like to put the configuration there). editing the ini in the first few lines in several trial-and-error-ways didn't either. taking back the changes and renaming the original exe instead (to foobar2000-orig.exe) and editing the ini correspondingly to "Path=.\JPE\ProgramFiles\%appname%\%appname%-orig.exe" worked quite well, at least jpe-foobar is playing right now (didn't test it further than playing music).
finally my questions:
1. does it work just accidentally and will there be some trouble at other, not yet detected places, or with other jaunted programmes if renamed in such a way? (partial answer on my own: renaming \Programs\JPEAdminTools\PStart\Pstart.exe to \Programs\JPEAdminTools\PStart\pstart-orig.exe works, but then also ....\pstart.xml should be renamed to ....\pstart-orig.xml in order to keep the settings.)
2. is there a way to automate this procedure right during jaunting an app via jpe-quickie (editing the master-inis in the configs directory or something similar)? I'd prefer to rename the jaunter to %appname%-jpe.exe (or %appname%-n2.exe, whatever config i take) and keeping the original %appname%.exe to (and only to) the original app.
that's not a serious problem, i just could remember that the "jaunter" is the exe several directories above the other one, but i like to see right at the filename what it is (an .exe is an .exe, a .gif is a .gif, a songname.mp3 is the song called "songname" in mp3-format, xyz-n2.exe is a normal2-configuration-jaunter for the app "xyz" ...).
greetings
PS: thanks to andrew for this fantastic site, which pushed my starting interest in portable apps very much -- and to redllar for developing (and sharing) jpe (and all those people here helping to improve it), which pushid it even more. as i mentioned i'm not much experienced, but i'd like to contribute at least a little bit to it: how?
i am quite new to this (or any) forum as a member, but lurking and reading here for several months. although i once had some lectures in c++, pascal and a few centuries ago in something called "fortran", i'm not a programmer or developer at all. short: i am a newbe.
jpe may be the best reason or incentive to change that a little bit. i played around with jpe and tried to acquaint with it by "jaunting" several programmes with jpe-quickie. i didn't have the time yet to follow the 12-step-program and edit the ini's (ähem, "have the patience and dare to" comes closer to it, except that i really am very slow in understanding technical things in english), except for 1 point:
i don't like the jpe-laucher (i like to call it "jaunter", don't know if that makes any sense in english) in the root directory to have the same name as the original, launched programme in .\JPE\ProgramFiles\%appname%. just renaming it didn't work. then i found out and felt ashamed, because it seemed sooo simple, that i should rename the ini next to it as well. at least with my first examle Pstart-jpe-rc3: renaming the jaunter to pstart-jpe.exe and the ini to pstart-jpe_jauntePE.ini worked (as far as i tested). but doing the same with my 2. example foobar did not (foobar2000.exe -> foobar2000-n2.exe, foobar2000_jauntePE.ini -> foobar2000-n2_jauntePE.ini, i'd like to put the configuration there). editing the ini in the first few lines in several trial-and-error-ways didn't either. taking back the changes and renaming the original exe instead (to foobar2000-orig.exe) and editing the ini correspondingly to "Path=.\JPE\ProgramFiles\%appname%\%appname%-orig.exe" worked quite well, at least jpe-foobar is playing right now (didn't test it further than playing music).
finally my questions:
1. does it work just accidentally and will there be some trouble at other, not yet detected places, or with other jaunted programmes if renamed in such a way? (partial answer on my own: renaming \Programs\JPEAdminTools\PStart\Pstart.exe to \Programs\JPEAdminTools\PStart\pstart-orig.exe works, but then also ....\pstart.xml should be renamed to ....\pstart-orig.xml in order to keep the settings.)
2. is there a way to automate this procedure right during jaunting an app via jpe-quickie (editing the master-inis in the configs directory or something similar)? I'd prefer to rename the jaunter to %appname%-jpe.exe (or %appname%-n2.exe, whatever config i take) and keeping the original %appname%.exe to (and only to) the original app.
that's not a serious problem, i just could remember that the "jaunter" is the exe several directories above the other one, but i like to see right at the filename what it is (an .exe is an .exe, a .gif is a .gif, a songname.mp3 is the song called "songname" in mp3-format, xyz-n2.exe is a normal2-configuration-jaunter for the app "xyz" ...).
greetings
PS: thanks to andrew for this fantastic site, which pushed my starting interest in portable apps very much -- and to redllar for developing (and sharing) jpe (and all those people here helping to improve it), which pushid it even more. as i mentioned i'm not much experienced, but i'd like to contribute at least a little bit to it: how?