You are here

PortableApps launcher and %windir% path

2 posts / 0 new
Last post
Loukournan29
Offline
Last seen: 2 months 3 weeks ago
Joined: 2017-02-21 04:38
PortableApps launcher and %windir% path

I am writing a launcher for Zoner Photo Studio 18 (free version), it runs but few details must be set.
This application store preferences in the registry, and some of them reference the system disk path (%windir%).
In order to manage the system disk path (as %PAL.LastDrive%), I have added a LastWinDir entry in the AppNameSettings.ini.
I need to use the LastWinDir entry in the AppName.ini in [FileWriteN]:Type=Replace section.
How can I get LastWinDir entry in a %VARIABLE% (%PAL:LastWinDir% doesn't work) ?

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 37 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Custom Code

This will require some custom code to get working. Checkout MyPaint Portable's custom.nsh module for its launcher. It stores a custom LastLocalAPPDATA in the INI and then sets it as an environment variable for use in replacements similar to how you want a LastWINDIR variable.

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

Log in or register to post comments