In an app im porting i need to set the paths of some files for it to run is there a way to get the drive letter which the portable app is running from using the launcher??
New: KiCad (Mar 25, 2025), Platform 30.0.2 (Mar 27, 2025)
1,100+ portable packages, 1.1 billion downloads
Ad Free! Please donate today
If you're gonna use NSIS, the Variable is {GetRoot}, take a look in the NSIS user manual for it.
______________________
Signature...What Signature?
In windows batch '%~d0' gives you the root drive from which the BAT file is launched, ie C:
In NSIS (in addition to above), you could also do
StrCpy $DRIVEROOT "$EXEDIR" 2
That will put the first two characters of the path to the launcher into the variable $DRIVEROOT, ie the root drive, for example C:
Suggestion to the author of PAM (and if you read this, also to the author of the PAM Mods)
Why not be done with the whole problem and have PAM simply set a PADRV variable...just like the U3 launcher.
because not everyone uses Portable Apps with the Menu. So John wants to have each App to be self-contained and independent.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Trying to _get_ this program running from the menu has made me overlook the 'other side'. Thank you for reminding me.