Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st June 2004, 07:16   #1
wolf67
Junior Member
 
Join Date: Jun 2004
Posts: 15
read from .ini (Please Help anyone!!!!)

I am a newbie on scripting, i tried to read from an .ini file and i am not shure how to do this could anyone help me?
Here is what i tried with.
  • ; On initialization
    Function .onInit

    !insertmacro MUI_LANGDLL_DISPLAY

    ReadINIStr $ini_value "$INSTDIR\sqltalk.ini" "Input Font" "Weight"
    StrCmp $ini_value "700" +1 +2
    MessageBox MB_OK "Nu du"
    FunctionEnd

My thougth is, if $ini_value is equal with 700 the messagebox would pop up.

Last edited by wolf67; 21st June 2004 at 09:57.
wolf67 is offline   Reply With Quote
Old 21st June 2004, 08:44   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
What is the problem? Did you declare that variable?
Joost Verburg is offline   Reply With Quote
Old 21st June 2004, 09:03   #3
wolf67
Junior Member
 
Join Date: Jun 2004
Posts: 15
When i create the installation file i want to send a ini-file with the installation package. It contains a serialnumber, witch is unique for every installation. When the istaller runs I want to read out the serialnumber and write it to the register.

The code in the earlier message was a trie to se if it was reading the file.

Sorry for my bad english
wolf67 is offline   Reply With Quote
Reply
Go Back   Winamp 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