PortableApps.com Carbide driveThe PortableApps.com Carbide is here! The Safest, Most Secure USB Flash Drive on Earth.
Military-grade hardware-encryption, water/shock/dust/tamper-resistant, 5 years of commercial USB antivirus, 5 year warranty, personalized, and PortableApps.com! 8GB, 16GB and 32GB starting at $89.95! Learn more and buy today!
Also: PA.c Companion (fast, affordable, colorful) | Please donate, so we can update & release new awesome apps!

Custom segment on PAL

Devildevilscle - April 14, 2011 - 10:43am

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


( categories: )

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!

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 =

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!

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 =