Writing a non-portable app converter: need apps to test with

Discuss anything related to portable freeware here.
Message
Author
portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#241 Post by portable-freak »

Hi Firewrath and thanks for your help mate :)

Well, actually I did what you are suggesting already but couldn't work for some reason.
Now, I've got a portable copy that's working fine but not perfectly --> screenshot 1.
These are the steps:
1. Original installation folder ( PTEditor.exe and I added WINDOWS\Fonts\powertab.ttf in there )
2. I made a portable version using jauntePE:
. Require the application's executable to always be present .... "checked"
. Require the portable registry and file system files to always be present ... "checked"
Now this is the way the portable application's folder look like upon first launch --> screenshot 2.

The question is, why isn't the font displaying the right way if it's being redirected after all?

User avatar
Kranor
Posts: 120
Joined: Sun Jan 14, 2007 7:15 am
Location: uk

#242 Post by Kranor »

Tried a couple of apps and they seemed to fail. I believe that is probably due ti the inept operator ( me LoL!!!) is there any chance that someone in the know could knock up a good how to guide possibly with screenshots using an app we know works as a base point. i think that this guide should start right from scratch including upxing JPE and testing your app. I have a whole list of little apps I would lke to try to get running if only I could be sure that I was doing it right.
Anyways Great little app redlar I hope to be knocking out those portable apps soon....

User avatar
Firewrath
Posts: 321
Joined: Mon Aug 28, 2006 2:36 pm

#243 Post by Firewrath »

kk, Porta, just to do a simple run down of how i did it,

i used uniextract the files into "PTEditor" from the 'PTEditor17.exe' install file, i DLed the font, put it in the 'PTEditor' directory under 'windows/fonts/'

then i ran JPE, hit build portable,

i made the "'PTEditor' directory the default directory for Everything,
i told to redirect registry changes AND file changes,
(if you dont redirect the file system, it wont read the windows/fonts dir i told you to make, :P)

the last few options are up to you, but i had require files and all to be in the folder, and used the USB icon so i didnt confuse them, heh,

and it worked for me,
uhh, kinda,
granted idk how to use the damn thing in the first place, :P
but it ran w/o the 'no font found' error,

soo yeah, take that for what you will,
if its still not right ill look at installing it and see if something is missing,



And Kranor, redllar was going to do a writeup at somepoint about all the options and everything, but idk now, O_o

but from what i remember, its already been UPXed,

i have a semi-kinda-read me type thing thats a few verions old that if need be i could go through and see what still applys and post it if he dont put one up soonish,
(its his app after all and i dont wanna step out of place, :P)

...ill do a small guide and put it ina new post to keep it away from all this here,

User avatar
Firewrath
Posts: 321
Joined: Mon Aug 28, 2006 2:36 pm

A JPE semi-kinda-sorta-guide.

#244 Post by Firewrath »

Alright.
i should prolly make a brand-new post and all with links and so on, but im going to wait abit and see what redllars gonna do.

so yeah, on with it, i know, :P


So, First you take the app you wanna make portable, lets go with uhh,
OpenedFilesView
ok, i know, you guys are going to be like:
"Wait a minute! thats already portable or else it wouldnt be listed on the site, you moron!"
and then ...well, id say somethings and you would and itd all get removed by an admin,
(i mean, really, have you Seen how mean Fluff gets? ;)
Plus, it even says its 'emergency use' kinda thing and not 100% portable, so Ha! :P)

so, lets skip that and just have you trust me, ok?
plus, OFV has an odd detail with JPE and i can get that out there for you guys, ^-^

Anyways, we have our program, we unzip the program and throw it somewhere on a USB stick,
...why?
because i dont want to get into a lot of excludes just yet,

Now we open the main JPE program, now, you can run OFV through the launcher and findout how it works, or the discovery mode, eitherway will give you a lot of info to work with, and you might want to do it if your going to make a lot of portable apps,
but i dont, and im not saying you shouldnt, im just lazy, :P

so instead we go right for the Wizard and hit 'Build Portable'
(im doing this as i go, just to be 100% ^-^)

we hit select and find our OFV folder, and grab the OFV.exe,
then we hit 'next'
and we want allll our poor lonely files in the OFV folder,
(you know, so theyre not lonely anymore,)
so we hit 'next' again, ...and again,

then it pops up asking what we want to do with the registry,
ok, well, we wanna make this portable, AND go easy on our USB stick,
so we tell it to redirect the registry, the Top button of the middle two,
and at the bottom he check 'Keep portable registry in memory' ONLY, nothing else,.....

Then we hit 'next' again,

ok,
this part is going to get tricky later on, but for now,
we Dont want to redirect Any files, OFV deletes the file it uses Right after it uses it, so unless it crashes in the middle of a Refresh, your good,

so we just hit 'next' ...again,

the next three options are All user preference,
i use the USB icon so im sure of what exe im hitting when im in a hurry,
and im not worryed about space enough that i stuff anything into the exe,

(i actually run my USB a totally different way but putting that here would just add to the confusion ive already caused, :P)

So, we're done, or we think we are anyways,
(we close the main JPE program now, and from HERE on, when i say JPE, i mean the new OFV portable exe, ...again, *lazy* :))

...but wait, its not working, wth,

well, it doesnt copy the dll files you need to run the app,
(last i knew it was somewhere on the 'To Do' list, but yeah,....)

Alright, we go into the JPE directory, copy the 'jauntePE.dll' and the 'madCHook.dll' to the OFV folder,

And, we are do___waitwaitwait, its still not working, what gives?
...well, Honestly, i havnt a fricken Clue, but redllar did and told me how to fix this, Yay him! ^-^

we need to make a ini file in the OFV directory,
now, normally its damn hard to get the right file names for this stuff,
but if youve ran it once, and it made a registry file, its easy,

copy the registry name till after the '_'

in this case "OpenedFilesView_"
(we will use this later, but for now, keep it somewhere,)

now, open notepad (or whatever you use),
and put this in it:

Code: Select all

[Registry]
Use=1
Data=.\Registry\OpenedFilesView_registry.reg

[Filesystem]
Use=0

[RegistryExclude]
1=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
heres what i know about all this:

[Registry] tells JPE 'this is where All the registry info is going to be, and where we look for that info'

Use= is an on or off switch "0" is 'off' and "1" is 'on'
when used under the registry/filesystem tags, and is set to "1"
its telling it:
"Yes, we are going to redirect the registry/filesystem."

when its set to "0" its telling it:
"No. Your not allow to redirect the registry/filesystem."

[Filesystem] tells JPE 'this is where All the filesystem info is going to be, and where we look for that info'

ok, and now for the odd one on the list, and WHY OFV wont work yet,

[RegistryExclude] kinda explains itself,
its saying "Even if we are told to redirect the registry, ignore that and dont redirect the following registry keys."

in this case:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet"
Which, for some reason, that i dont know, is why OFV wont work,
i have No clue as to what this key actually does, and why its messing with OFV, but it is,
so, you Have to add this key to the excludes to get OFV to work,
i dont know if that goes for all monitoring programs or what, but, if i found one wasnt work right, its the first key id try,

and, yes, your going: "Ok, so whats the deal with the '1=' ?!"
geez, let me get to it, >.<

as far as i Know, meaning i could be totally wrong here,
but, the registy excludes have to be added in a list:
1=
2=
3=

and so on,
Filesystem excludes dont work like that,
ill get to those some other time, if you guys Really need them,
i mean, its 1:30am, (ok, 1:28am) dont get pushy, eh? :P

now, anyone about to tell me i skipped one,
Shush, it was important stuff first, :P

Data= tells JPE where you want your registry files, for that non-cluttered look, (i bugged redllar for MONTHS to get this, ;))
in this case its saying to store the registry file here:
"\Registry\OpenedFilesView_registry.reg"
the little "." tells it its starting in the same directory as the program,
so, granted you have to Make the folders first, this lets you give a directory based off where JPE is running from, to the folder you want the registry in, this Also works for the filesystem, (but OFV isnt redirecting one, so we're not going to use it, :P)

Anyways, we make a folder in the OFV directory called 'Registry',
the 'OpenedFilesView_registry.reg' file will now be stored there,

also, you can name 'Registry' whatever you want, as long as it matches whats in that line,

OK,
Now we're going to use that name from WAY up there,
save the file as "OpenedFilesView_jauntePE.ini"
(for you notepad people, make sure you change the "Save as type:" from '.txt' to 'All Files', this is Important,
if you dont it wont save the .ini right and it Wont Work,
(IE: itll save it as "OpenedFilesView_jauntePE.ini.txt" and that is Wrong. ok? :P)

the ini with "jauntePE" in the name, is Actually telling the new OFV app to override the default settings that are in the program with the ones from the .ini,

NOW, we are Done! Yay!
checkitcheckitcheckit,
it works? right?
Woooooo!

...if it doesnt work, ___.....
well, id get introuble for saying that,
Leave me questions and ill try to help, as best i can and with what little i know here,
if need be ill make this into a topic for Q&A,
*whew*

portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#245 Post by portable-freak »

Firewrath wrote:and it worked for me, but it ran w/o the 'no font found' error
So did it for me as well and no error either but the trouble is, the font isn't looking right ( screenshot 1 in my post above )
I had a look at this but it doesn't change anything.
Music notes and symbols aren't looking right, what about your version?

User avatar
Firewrath
Posts: 321
Joined: Mon Aug 28, 2006 2:36 pm

#246 Post by Firewrath »

ok,
since i dont know how to use the thing, i went and DLed a song,
and i see what you mean,
it does it for me too,

now, i think it has to do with the registry it uses, cause i found this:

Code: Select all

[HKEY_CURRENT_USER\software\Power Tab Software\Power Tab Editor 1.7\Default Settings\Fonts]
@=hex(1):00,00
in its registry file,
no idea what it means, but im guessing its tell it where to look,
also, no idea how to make it look somewhere else,

this is really off, because the 'Windows/Fonts' directory is on the redirection list, hence, it should 'read' it like the Real directory,
i have no idea why its not, and no idea how to make it,

i know its reading the Real windows directory, because if i put the font there, it works just fine,

so, honestly,
i dont know what to tell you, theres only so much i know about all this, >.<

ill look at it again and play around with it some tomarrow, like when im up and a wake and all, :P
but i dont think theres much i can do with it, =/

portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#247 Post by portable-freak »

Code: Select all

[HKEY_CURRENT_USER\software\Power Tab Software\Power Tab Editor 1.7\Default Settings\Fonts]
@=hex(1):00,00
Yeah, I've been pondering over that as well, couldn't think of anything I might do though :(
this is really off, because the 'Windows/Fonts' directory is on the redirection list, hence, it should 'read' it like the Real directory,
i have no idea why its not, and no idea how to make it,
That's pretty odd, isn't it? :lol:

User avatar
Kranor
Posts: 120
Joined: Sun Jan 14, 2007 7:15 am
Location: uk

#248 Post by Kranor »

One of the programs i am trying to make portable queries its original installation folder for 22 files. if it cannot find them it quits. how do iset up some kind of redirect?

portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#249 Post by portable-freak »

Kranor wrote:One of the programs i am trying to make portable queries its original installation folder for 22 files. if it cannot find them it quits. how do iset up some kind of redirect?
You may name the application if it's open source mate so one could give it a try ;)
This is basically what I do:

01. Install your application the usual way --> Folder named "App1"
02. I'd copy folder "App1" to the desktop.
03. Launch JauntePE.exe
04. Click on "Build Portable"
05. Select "App1.exe" located in folder "App1" on the desktop + next
06. Select folder "App1" on the desktop for the portable executable + next
07. Select folder "App1" on the desktop for JauntePE runtime files + next
08. Select both "Application registry modifications are redirected into a portable registry" and "Keep portable registry in memory" + next
09. Select "Application special directory file system modifications are redirected into a portable file system" + next
10. Select "Use the application's executable's icon" + next
11. Select "Require ....." + next
12. Select "Require ....." + next
13. Finish.
14. Now, you've got "App1_portable.exe" in folder "App1" on the desktop with all other files.
15. Copy both "jauntePE.dll" and "madCHook.dll" to folder "App1" on the desktop.

Launch the portable application using "App1_portable.exe"

Since Firewrath is mentioning an ini file:

1. I'd create 2 empty folders called "Registry" and "File System" inside folder "App1" on the desktop.
2. Create an empty *.txt file and name it "App1_jauntePE.ini" and enter the following:

Code: Select all

[Registry]
Use=1
Data=.\Registry\App1_registry.reg

[Filesystem]
Use=1
Data=.\File System\
Now, feel free to correct me if I am doing anything wrong lads ;)

User avatar
Firewrath
Posts: 321
Joined: Mon Aug 28, 2006 2:36 pm

#250 Post by Firewrath »

ok, Porta, First,
stop stealing my guide and making it smaller / less sarcastic, ;)

but yeah man, that all looks right,

and the ini stuff is rather kickass,
i have .inis redirecting to .inis to run programs and such,
i love it, makes it so much simpler with how i use JPE, ^-^

Anyways, dude, i have some bad news for you,

that reg key Does control where it looks for fonts,
but, changing it, does nothing, ...unless it cant find the file then itll give you the 'no font' error,

and using RegMon, the only refernce to 'fonts' i could find is when it checks:

Code: Select all

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Fonts
so no real help there either, -_-

About the only thing i can tell you to do, is:

make two bat files,
one thatll copy the font to the fonts folder, and one thatll delete it,

sorry i cant help you out more with this, but im not really sure a way to do it w/o being able to work on JPE,
and well, my coding sucks so i couldnt do that anyways, :P

i think the main thing with PTE, is that its almost acting like a word processor and using the registered font list,
which if the powertab font isnt in the fonts Dir, then its not on the list,
sooo, PTE doesnt 'know' its there to use it, -_-

(Couldnt you guys have started off with something simple that i could actually help with? :P)



Kranor,
the BEST way to do all that is,
get SandBoxie

install the program sandboxed so you dont make any changes to your system,
then copy the program/files you want/need and then make it portable,
that way theres no system changes and you have all the files in one place, plus, then if you mess something up,
ohwell, no harm done, clear the sandbox and start again,

Also,
if the program is trying to access files in its own directory to run, you shouldnt have a problem making it portable in the first place, O_o

it should read its own files w/o needing to be redirected,

if its not,
try this,

make it portable and everything, then copy it over to just, either your "C:" drive,
or if you have another drive, copy it there and try to run it,

Anything running from the desktop is actually running from a redirected spot, and sometimes with a few programs, JPE wont open files correctly,
(its been an off and on bug,)
IE:
itll open the redirected folder and not the 'real' folder looking for files,
so that might be your problem,
if your just making a program to run from you desktop,
lemme know and ill do a post on file redirects,
(theyre special, ...least they think they are, ...the bastards, -_-)
:P

portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#251 Post by portable-freak »

Firewrath wrote:ok, Porta, First,
stop stealing my guide and making it smaller / less sarcastic, ;)
:lol: joining forces, aren't we eh? :)
make two bat files,
one thatll copy the font to the fonts folder, and one thatll delete it,
Yes, a necessary evil as it were :)
i think the main thing with PTE, is that its almost acting like a word processor and using the registered font list,
which if the powertab font isnt in the fonts Dir, then its not on the list,
sooo, PTE doesnt 'know' its there to use it, -_-
I'll certainly have a closer look at that as well, thanks for the hint.
Kranor,
the BEST way to do all that is,
get SandBoxie
install the program sandboxed so you dont make any changes to your system
Good point but Sandboxie doesn't work with every application ( well, at least not yet as far as I'm concerned )
I am using Altiris SVS ( free for personal use )
Give it a whirl if you haven't already :)

redllar
Posts: 411
Joined: Thu Aug 03, 2006 7:52 pm
Contact:

#252 Post by redllar »

Hey p-f. I took a quick stab at having redirected fonts directory font file fonts available to an app when file system redirection is on. I loaded up the PTE demo file and everything looks okay. I'll have to go back and rework the fix to be more accurate re: exclusions/inclusions, etc., but for now I think the app should be usable.

If you plan on using PTE portably, you probably should add a Documents redirect directory (and move the demo file there) and open/save the ptb files to the "My Documents" folder. Otherwise the full paths that PTE stores in the portable registry won't be portable. Also, if you want to run PTE standalone, and plan to do so on other computers and/or user ids, you'll need to put a copy of the JauntePE_jauntePE ini in the PTE directory.

You can get the new version here.
Last edited by redllar on Sun Jan 21, 2007 9:35 am, edited 1 time in total.

portable-freak
Posts: 57
Joined: Sat Jul 08, 2006 8:39 am

#253 Post by portable-freak »

Hi redllar,
It works! Screenshot :)
Using the latest *.dll file.
Cheers.

redllar
Posts: 411
Joined: Thu Aug 03, 2006 7:52 pm
Contact:

#254 Post by redllar »

Okay guys, I've made a little page for JauntePE over at VP and changed all of the latest links in this thread to point to it.

My apologies to the guys that posted here that I didn't respond to. To sort of answer some of your questions:

I've started combining all of the previous readmes I had thrown together for this app and will hopefully have a decent set of docs within a month or two. I've also started working on fleshing out the launchpad gui a bit more since that's the way I use the app. I'll release the new stuff to the VP site as it gets done.

As far as your suggestions concerning the app's future:

There was a guy from portableapps that I thought was going to update his launcher to make use of this app. But he hasn't responded to my last email letting him know this new version is now available, so I guess he's no longer interested. From the little bit of communication we had, he didn't seem like the right choice to take over things anyway.

I did have a guy from donationcoders who was going to take over the project, but he's tied up with other things right now, so I guess that's out as well. There was someone else who expressed interest in it but so far there's been no response to my last email to him either.

I don't plan on releasing the source. My coding style sucks and I'd be too embarrassed to have it looked at by anyone but a seasoned professional who understands the corners you cut when pressed for time.

I do have plans on creating a library of the source code that could be used in other app launcher projects. This would give other devs the ability to replace the built-in app launcher. I also plan on putting all of the registry-to-.reg code in a library for use directly within an app's source, so that any non-portable app dev could easily come up with a portable version with minimal code changes.

Of course none of this will be done any time soon. If you've sensed a lack of dedication on my part, you're correct. I no longer have the need nor desire to contribute to the mass of "give me"s that the net has become. The little I've asked for in return for spending nearly all of my free time on this project over the last several months has been met for the most part with deaf ears, and in some cases, disrespect.

But that's not the only reason. If I had a decent income, and only one job, I probably would just continue to ignore the take-and-no-givers as I've done in the past. But it's time for me to stop wasting my time on pipe dreams and get back to doing myself some good.

User avatar
Kranor
Posts: 120
Joined: Sun Jan 14, 2007 7:15 am
Location: uk

#255 Post by Kranor »

First of all......
I think some of you buggers out there need to give Redlar his due for creating an app like JauntePE indeed for all the apps he has created. I've only just joined the forum and found out about JauntePE but i can see that it will become one of my indespensible apps for a long time to come. So cheers for the app Redlar.
But that's not the only reason. If I had a decent income, and only one job, I probably would just continue to ignore the take-and-no-givers as I've done in the past. But it's time for me to stop wasting my time on pipe dreams and get back to doing myself some good.
As far as I am concerned there is no such thing as a pipe dream. If we did not have dreams then we would accomplish nothing.

right now down to the main issue

I have made HTML Kit V. 292 from Chami.com portable no special settings needed at all app is semi portable anyway but on start up a wizard runs to customise user settings and then creates some reg keys. JauntePE clears this little problem nicely.
I think the licence says nothing against modifying the program. But maybe some of you could give me you opinion on this..

Here is a copy of the licence

HTML-Kit (C) 1998 - 2005, Chami.com. All Rights Reserved.

http://www.htmlkit.com/license/292/

PERMISSION TO USE THIS SOFTWARE IS CONDITIONAL
UPON YOU ("User") AGREEING TO THE DISCLAIMER
AND LICENSE TERMS (EXPLAINED ON THE ABOVE PAGE).
BY INSTALLING OR USING THIS SOFTWARE, YOU AGREE
TO THE TERMS OF THIS AGREEMENT.

User specifically agrees not to distribute, reproduce,
transmit or transfer, in whole or in part, this software
or its documentation without express prior written
permission from the developer.

DISCLAIMER: THIS SOFTWARE IS PROVIDED ON AN
"AS-IS" BASIS WITHOUT WARRANTY OF ANY KIND.

DEVELOPER SPECIFICALLY DISCLAIMS ANY OTHER
WARRANTY, EXPRESS OR IMPLIED, INCLUDING ANY
WARRANTY OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE. IN NO EVENT SHALL
DEVELOPER BE LIABLE FOR ANY CONSEQUENTIAL,
INDIRECT, SPECIAL OR INCIDENTAL DAMAGES, EVEN
IF DEVELOPER HAS BEEN ADVISED BY USER OF THE
POSSIBILITY OF SUCH POTENTIAL LOSS OR DAMAGE.
USER AGREES TO HOLD DEVELOPER HARMLESS
FROM AND AGAINST ANY AND ALL CLAIMS, LOSSES,
LIABILITIES AND EXPENSES.

Should you have any questions concerning this license
agreement, please contact Chami.com at the address above.


If any of you have never used html kit before I find it to be superior to pspad and version 292 is free from the chami site.

Post Reply