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.
User editable install directory - help!
6 posts
read from the registry in .oninit and put the result in $instdir
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.
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.
Originally posted by RigorMortis...What does that mean, exactly? If you StrCpy $INSTDIR in .onInit, the directory page will enter that value into the path field as the default. Unless you change the contents of $INSTDIR again at a later time.
I tried that, but unfortunately the install directory doesn't auto-populate with the supposed-correct directory...
Perhaps looking at the script you can see what I've done wrong?
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.