PortableApps.com wins big in the 2009 Community Choice Awards and hits 100 million app downloads!
Need help with Portable GameSubmitted by D4vid on January 11, 2007 - 10:08am
Hello Im trying to make game portable and i need some help. INSTALL_PATH=[the path to where the game and file is located] The thing i need the script to do is to when it's run it changes the INSTALL_PATH value to the current location. This way the game can be run from anywhere. ( categories: )
|


I guess you've already
I guess you've already tested this, but just in case, did you tried with a relative path?
If that's not working, please try to describe a little bit what's the directory structure of the game and where is that cfg file placed.
Looks sorta like
an INI file...
Try something like
Tell us if it works.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.
"If you're not part of the solution, you're part of the precipitate."
No section
Correct me if I'm wrong, but I think it's not possible to write to an INI file with no section heading using WriteINIStr.
I'd rather use this macro from the TextFunc.nsh include
${ConfigWrite} "$EXEDIR\Hospital.cfg" "INSTALL_PATH=" "$EXEDIR" $R0Good idea
I didn't think my code would work, but t'was just putting it out there.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.
"If you're not part of the solution, you're part of the precipitate."