mmleyr
21st June 2007 14:04 UTC
Need to modify the file
Hello,
Like most of us say, i'm new in NSIS & I have a probler with which, i hope, you can help me. :)
I need to ask a user during the installation to choose some parameters via RadioButton and than enter those parameters into *.mk file in specific strings i.e. i need to ask a product number. User chooses ##### and i need this ##### to be entered in a string
PRODUCT := #####
And so on by different parameters. :)
How is it possible to realize.
Thx.
P.S. If i've missed similar post somewhere in this forum, i apologize. ;)
mmleyr
21st June 2007 14:53 UTC
Hi again.
And another question :
For the properly working RadioButtons i need this code
Function .onInit
StrCpy $1 ${SEC02}
FunctionEnd
But this func. already exist at the begining of the script and is used
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
The probler is that i need StrCpy $1 ${SEC02} after the Sections but i can't put
!insertmacro MUI_LANGDLL_DISPLAY
there cause it won't initialize multilanguage. Furthermore i can't put StrCpy $1 ${SEC02} at the begining of the script (where the !insertmacro MUI_LANGDLL_DISPLAY is) cause SEC02 is yet unknown to the program.
But i need both of them to be in the .onInit.
How can i solve this problem.
Thx
Afrow UK
21st June 2007 18:19 UTC
What do you mean it won't initialize multilanguage? It doesn't matter where you put the .onInit function in your script, it will always be called when the installer is executed and before anything else.
You could try my PassDialog plugin for entering a serial code, otherwise use InstallOptions. As for writing to a file, use FileOpen, FileWrite, FileClose.
Stu
mmleyr
22nd June 2007 07:26 UTC
2 Afrow UK
Thanks for the answer.
Truly it work fine...
Two variants or the prog was bugging, or my head was bugging. :)
P.S. About your link to PassDialog - got an error
The following error was encountered:
Unable to determine IP address from host name for nsis.sf.ner
The dnsserver returned:
Name Error: The domain name does not exist.
Please check it.
Best regards.
Afrow UK
22nd June 2007 11:55 UTC
Typo, fixed.
Stu
mmleyr
22nd June 2007 11:59 UTC
2 Afrow UK
Thanks again.