It is currently Wed Jun 19, 2013 8:05 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: redirect a absolute path to a relative path?
PostPosted: Mon Sep 06, 2010 5:06 am 
Offline

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

i have successful portalized a Programm (TippKonigin - look my other Post)
But on little bug-thing:

Tippkonigin writes back a path in a ini-file.
It write a absolute path, looks like:
Code:
DataFileName=E:\TippKonigin\JPE\ProgramFiles\TippKonigin\Ubungen\Lektionen\Lektion_09.txt


Is JauntePE able to redirect this absolute path to a relative one? And if yes, how?

Tippkonigin also work with a relative path to open the file
Code:
DataFileName=Lektionen\Lektion_09.txt
, but always save a absolute.

Thanks in advance

Mike


Top
 Profile  
 
 Post subject: Re: redirect a absolute path to a relative path?
PostPosted: Mon Sep 06, 2010 3:07 pm 
Offline

Joined: Sat May 12, 2007 6:26 am
Posts: 403
McMic wrote:
Is JauntePE able to redirect this absolute path to a relative one? And if yes, how?

No.
JauntePE can redirect the absolute path but cannot convert one into relative path.

To troubleshoot this problem, again try to think like TippKonigin.
Is "Lektion_09.txt" file saved by yourselft or the program save the file by itself? (get my question? :p)

If you are the one that saving the file "Lektion_09.txt",
try save the file by browsing to "C:\Program Files\TippKonigin\Ubungen\Lektionen\Lektion_09.txt" instead. Hopefully TippKonigin will write the ini file with path "C:\Program Files\TippKonigin\Ubungen\Lektionen\Lektion_09.txt". Next time when TippKonigin read the path, it will "think" the path is exist and will load the file "Lektion_09.txt" successfully. Remember that i told you before TippKonigin got fooled by JauntePE? :P
Now, when playing your program, use "C:\Program Files\TippKonigin" as your relative path. Get it what i mean?
That is how portablizing through virtualization work. JauntePE cannot convert the absolute path to relative path like any nsis launcher does.

If TippKonigin save the file "Lektion_09.txt", then you still have the same trouble redirecting the path "C:\Program Files\TippKonigin".
Try to redirect the application directory itselft
Quote:
[Redirection]
ExcludeAppDir=0


or use token %appdir% in the path you like to redirect and put the path in the [FilesystemInclude]

_________________
JauntePE the portable maker: <<JauntePE Google Site >>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group