|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 3
|
User editable install directory - help!
From the subject you would assume I'm an idiot - but let's assume I'm not for a minute.
This installer is for a map pack which must be placed in a very specific directory to function. I found some code to extract the correct directory from the registry/filesystem, but it only functions inside of "section" and thus I cannot use "Page directory" to let people edit the directory if it happens to be wrong. My question is: Is there a way to allow a user to modify a variable created inside of "Section," and if so, how can I do this? Any help would be appreciated. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
read from the registry in .oninit and put the result in $instdir
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2009
Posts: 3
|
I tried that, but unfortunately the install directory doesn't auto-populate with the supposed-correct directory... which is bad.
I'm unfortunately very new to NSIS and will probably be fighting with this until I give up and just don't use an installer... lol. This thing has been driving me nuts for weeks. |
|
|
|
|
|
#4 | |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2009
Posts: 3
|
Perhaps looking at the script you can see what I've done wrong?
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
looks like you've got the code to copy the dynamic Steam Account-generated folder to $INSTDIR in your section? you should put that StrCpy in .onInit after calling - and verifying the output from - Call GetSteamAccountName. ( actually, after the "gogogo:" label - no point in doing any code that may not actually get used.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|