Jauntepe config to open a html file in browser? [solved]

Discuss anything related to JauntePE, the utlimate utility to help you tame non-portable applications. Share your experience about the apps that work with JauntePE, and the apps that don't.
Post Reply
Message
Author
McMic
Posts: 4
Joined: Fri Sep 03, 2010 3:59 am

Jauntepe config to open a html file in browser? [solved]

#1 Post by McMic »

Hi People.

My english isnt very good, but maby anybody is able to help me.

I try m to make portable a programm it calls "Tippkönigin" by using jauntepe.

My config is:

Code: Select all

[Build]
Description=Full portablization for a normal application
Applications=TippKonigin
Usage=This is a newer and better version of the Normal configuration that makes use of most of the new features of the 0.3.0 release of JauntePE.\r\n\r\nIt is the recommended configuration to use for most applications.

[BuildApps]

[Launch]
Path=%APPPATH%\%appname%.exe
JPERuntime=%JRTPATH%\jauntePE.dll
JPERuntimeIni=.\%APPNAME%_jauntePE.ini
JPERuntimeReg=.\jauntePE.reg
JPERuntimeWFS=.\JPE\
RedirReg=0
RedirWFS=1
AppReg=1
AppWFS=1
ExeDir=1

[Registry]
Use=0
Data=.\jauntePE.reg

[Filesystem]
Use=1
Data=.\JPE\

[FilesystemInclude]
1=%38%\TippKonigin
The Progamm uses no regitry entrys. and after making with jauntpe it works. But in a subfolder of Tippkonigin are some html files to explaine the using of itself. Tippkonigin start this files with a shell command.
But allways i get this errormessage:

"file:///c:/ProgramFiles/Tippkonigin/ProgDoc/ReadMe_DE.html" not found"

All files an folders are in the JPE/Tippkonigin folder.
Have i forgot a include or exclude Parameter or what is wrong?

Thanks and Greetz

M.
Last edited by McMic on Sat Sep 04, 2010 1:34 pm, edited 1 time in total.

-.-
Posts: 325
Joined: Mon Oct 06, 2008 4:32 pm

Re: Jauntepe config to open a html file in browser?

#2 Post by -.- »

um the files arent found :S it links to program files folder... so if you moved it from there then it isnt going to find it

try this one, I downloaded it and tested, seems like help page worked. I'm not sure if it was right one, it wasnt in english
Edit: Move program folder to App... ugh or change paths if you want.

Code: Select all

[Launch]
Path=.\App\%appname%.exe
JPERuntime=.\jauntePE.dll
JPERuntimeIni=.\%appname%_jauntePE.ini
JPERuntimeReg=.\Sandbox\%appname%_registry.reg
JPERuntimeWFS=.\Sandbox\
RedirReg=1
RedirWFS=1
AppReg=1
AppWFS=0
ExeDir=1

[Registry]
Use=1
Data=.\Sandbox\%appname%_registry.reg

[Filesystem]
Use=1
Data=.\Sandbox\

[Redirection]
UseIcon=1
ModFrame=0
RedirMSI=0
RedirMisc=1
MemRegistry=1
FillRegistry=1
RegMerge=1
RegIgnDel=1
ExcludeAppDir=1
WFSMerge=1
FlashDisco=0
IconDisco=0
IdentMode=3

crownixx
Posts: 403
Joined: Sat May 12, 2007 6:26 am

Re: Jauntepe config to open a html file in browser?

#3 Post by crownixx »

First of all, JauntePE does not support Unicode. I'm not good in Unicode thing but i think you must care with the letter ö.

Second thing is how do you create your portable package? Is it by manually or using JPE Quickie?
Based on your configuration...

Code: Select all

[Filesystem]
Use=1
Data=.\JPE\

[FilesystemInclude]
1=%38%\TippKonigin
...if your sandbox folder is "JPE" and you redirect special folder Program Files (%38%), then all your application's files and folders must be in "JPE\ProgramFiles\TippKonigin" not in "JPE/Tippkonigin"

McMic
Posts: 4
Joined: Fri Sep 03, 2010 3:59 am

Re: Jauntepe config to open a html file in browser?

#4 Post by McMic »

Hi Crownixx

you are right. JauntePE dont supports unicode. I ve taken a Hex-Editor and replaced in the the Binary the ö with o also ü with u. And now the Binary works without unicode :-)

I ve created the Portabel Package by using JPE Quickie..

After creating the package all works fine. Tippkonigin opens the subfolders and files in it, without changing any ini-files. the only thing: the Readme file and the license file. This files will be opened in Internet explorer by using a shell - call in they binary (i think) .... and i will get the error message you can see the post befor.

It looks like, the pathes to this files will not redirectet to ...\JPE\ProgramFiles\...


@ -.- now i will try your config :-)

Oh ... thats sad. Im Sorry, its the same result. The files get the wrong path.



Thanks a lot!

Mike

User avatar
Napiophelios
Posts: 610
Joined: Sun Mar 01, 2009 5:48 pm

Re: Jauntepe config to open a html file in browser?

#5 Post by Napiophelios »

crownixx wrote:First of all, JauntePE does not support Unicode. I'm not good in Unicode thing but i think you must care with the letter ö.

Second thing is how do you create your portable package? Is it by manually or using JPE Quickie?
Based on your configuration...

Code: Select all

[Filesystem]
Use=1
Data=.\JPE\

[FilesystemInclude]
1=%38%\TippKonigin
...if your sandbox folder is "JPE" and you redirect special folder Program Files (%38%), then all your application's files and folders must be in "JPE\ProgramFiles\TippKonigin" not in "JPE/Tippkonigin"
But that's only if
[Launch]
Path=.\JPE\Programfiles\%appname%\%appname%.exe

is true.

Your launch setting's target exe does not have to be sandboxed
for the app's program files folder to be redirected.

McMic should proly change the launch section to:
[Launch]
Path=.\JPE\%appname%\%appname%.exe


I think you would also have to have these settings
in place too maybe? IDK :
[Launch]
ExeDir=0

[Redirection]
ExcludeAppDir=1


He should be able to have the html file in the default location and have the program find it
(and still have the actual program housed where ever he wants it).
He may have to create the sand box his self manually
".\JPE\Programfiles\%appname%"
( and place the html file here.)

Might also do well to add it to the
[FilesystemInclude]
1=%38%\%appname%

settings

hmm..also try just in case
[FilesystemIgnore]
1=%38%\%appname%


Of course it would proly be easiest to just do what Crownixx says
and put your app in its default path in the sandbox.
:P

crownixx
Posts: 403
Joined: Sat May 12, 2007 6:26 am

Re: Jauntepe config to open a html file in browser?

#6 Post by crownixx »

Napiophelios wrote:But that's only if
[Launch]
Path=.\JPE\Programfiles\%appname%\%appname%.exe
is true.
Yes you are right. I should ask that McMic what is his launcher setting for the application's path. But that is not only just a factor. By default, JauntePE defined the relative path for special folder "Program Files" as follows

Code: Select all

[SpecialFolders]
38=.\ProgramFiles
Since McMic does not defined any [SpecialFolder] in his configuration files thus JauntePE will use above setting.

If his sandox folder is defined as follows

Code: Select all

[Filesystem]
Use=1
Data=.\JPE\
..then, the "Programfiles" folder should be in the JPE folder (JPE\ProgramFiles).

The error McMic got was "file:///c:/ProgramFiles/Tippkonigin/ProgDoc/ReadMe_DE.html" not found": meaning the files must be inside the "Program Files" folder. That is why i stress out "JPE\ProgramFiles" must exist and the path should be "JPE\ProgramFiles\Tippkonigin"
McMic wrote:you are right. JauntePE dont supports unicode. I ve taken a Hex-Editor and replaced in the the Binary the ö with o also ü with u. And now the Binary works without unicode :-)
McMic, that is a good trick to overcome the limitation. Amazing!!!

OK, i have another theory for the problem. Lets imagine together...
The Tippkonigin executable is inside "JPE\ProgramFiles\Tippkonigin". When it run, JauntePE has "cheat" Tippkonigin to think it is running in "C:\Program Files\Tippkonigin" but in real situation it is still the same path "JPE\ProgramFiles\Tippkonigin". Now Tippkonigin has been fooled. When we instruct to open the Readme, Tippkonigin pass the path "c:/Program Files/Tippkonigin/ProgDoc/ReadMe_DE.html" to iexplorer.exe (internet explorer). Of course, the fooled Tippkonigin think that the path is exist, but not to iexplorer.exe. iexplorer.exe check the path does not exist and that is why we get the error message.

Solution? We cheat the iexplorer.exe too. How? Add this...

Code: Select all

[Redirection]
RedirMisc=1
If the above setting is turn on, other processes that is launched by fooled Tippkonigin is also affected. Now iexplorer.exe is also being fooled to think that the path "c:/Program Files/Tippkonigin/ProgDoc/ReadMe_DE.html" is exist and hopefully it can be opened successfully.

McMic
Posts: 4
Joined: Fri Sep 03, 2010 3:59 am

Re: Jauntepe config to open a html file in browser?

#7 Post by McMic »

Hi Volks

STRIKE :D

Good News! Now it works! Crownixx was right! After include a Special-Folder Parameter:

Code: Select all

[SpecialFolders]
38=.\ProgramFiles
The file-links will now be correctly redirected to iexplorer.

:mrgreen: :mrgreen: :mrgreen:

Thanks you all verý much above crownixx!

crownixx
Posts: 403
Joined: Sat May 12, 2007 6:26 am

Re: Jauntepe config to open a html file in browser? [solved]

#8 Post by crownixx »

What??
It was a lucky strike.. I never though [SpecialFolders]38=.\ProgramFiles will be the solution because it is a default setting by JauntePE.
Anyways, good for you :)

Post Reply