Old 10th June 2003, 11:52   #1
bikemike
Junior Member
 
Join Date: Jun 2003
Location: Ohio
Posts: 4
Text box and set value

I know how to set a value for a text box in my INI but how can you do it in your nsi script file?

[INI]
[Field 4]
type=text
Left=0
Right=-1
Top=80
Bottom=92
minlen=5
state=

[CODE]
!insertmacro MUI_INSTALLOPTIONS_READ $1 "install.ini" "Field 4" "state"

I want the value of the text box to be:
ExpandEnvStrings $1 "%USERDOMAIN%"
bikemike is offline   Reply With Quote
Old 10th June 2003, 12:15   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use MUI_INSTALLOPTIONS_WRITE.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 10th June 2003, 12:28   #3
ramon18
NSIS Dev
 
ramon18's Avatar
 
Join Date: Apr 2003
Location: Portugal
Posts: 110
Hi,

try this:

ExpandEnvStrings $1 "%USERDOMAIN%"
!insertmacro MUI_INSTALLOPTIONS_WRITE "install.ini" "Field 4" "state" $1


good luck,
Ramon
ramon18 is offline   Reply With Quote
Old 10th June 2003, 16:54   #4
bikemike
Junior Member
 
Join Date: Jun 2003
Location: Ohio
Posts: 4
That worked. Thanks again!!
bikemike is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump