You are here

Custom segment on PAL

5 posts / 0 new
Last post
Devildevilscle
Offline
Last seen: 12 years 4 months ago
Joined: 2010-11-08 13:18
Custom segment on PAL

Hope someone can give some example on how to make a custom segment on PAL?

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 19 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
What You Need

It's far better to let us know what you're trying to accomplish specifically rather than ask about a specific tool like a custom segment (which is almost never needed).

See: http://mywiki.wooledge.org/XyProblem

Sometimes, the impossible can become possible, if you're awesome!

Devildevilscle
Offline
Last seen: 12 years 4 months ago
Joined: 2010-11-08 13:18
The problem is

The problem is this:
At [HKCU\Software\AppName\recentfiles]
1=E:\\AppPortable\\App\\AppName\\new1.ext

I need to update the whole path to new1.ext, (New1.ext is a file that the program needed to perform its task,though it can run w/out it) it should have been %PAL:AppDir% and could be easily done via the [FileWriteN] section. But the problem is that because recent files are always changed, i mean deleted or a new 1 created, and the program im calling here AppName is always being moved from different directories, the path to new1.ext therefore had been irregular and non-constant. I'm thinking of having something like %PAL:LastAppDir% to fix it.

-:O =

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 19 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
PAL Beta

Use the PAL Beta and this: http://portableapps.chrismorgan.info/launcher/manual/ref/envsub/#partial...

And use FileWriteN on the .reg file to do the replace.

We have multiple apps that use this. Nearly all new release apps use it.

Sometimes, the impossible can become possible, if you're awesome!

Devildevilscle
Offline
Last seen: 12 years 4 months ago
Joined: 2010-11-08 13:18
Thx

Exactly what i need. Thanks. I'd spent the whole night til 01am trying to solve this. I'l download the beta tomorrow morning.

-:O =

Log in or register to post comments