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).
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.
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!
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 =
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!
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 =