Steps:
1. Download AdvancedRun and extract the contents to the program folder you're trying to make portable
2. Launch AdvancedRun and enter the EXE name in the "Program to run" field (e.g. pysol.exe)
3. From the dropdown menu next to Environment Variables, select "Use only the following environment variables (Ignore the system variables)"
4. Click Fill Current Environmental Strings.
5. In the text that appears below, edit the following text:
from
APPDATA=C:\Users\username\AppData\Roaming
to
APPDATA=.
to
APPDATA=.
... and...
from
LOCALAPPDATA=C:\Users\username\AppData\Local
to
LOCALAPPDATA=.
to
LOCALAPPDATA=.
6. Click Save Config and save the result as AdvancedRun.cfg (should be the default option)
7. Create a text file in the same location and paste in the following text:
start "" "AdvancedRun.exe" \Run
8. Save the text file as program.bat
9. Launch program.bat
---
Note that this is not my idea -- I saw a notice in a thread discussing portability over in the Audacious forums:
---You can solve your problem with a small utility from NirSoft (AdvancedRun).
Create a new folder 'Data', 'User' or another one in audacious folder. In AdvancedRun change the environment variable 'USERPROFILE' to point to the folder you have created and choose the option 'Merge the following e.v. with the system variables'. The config files will be stored in that folder and audacious wil leave no traces in system. You can also save that config file for further utilization with advancedrun.
Update: I tested this out with Magic Set Editor, Fast Mockup, and Ninja Download Manager without success. I thought I was on to something, but this function might be limited to only a few programs like Pysol.