Old 9th March 2005, 16:04   #1
geoffrey_4js
Junior Member
 
Join Date: Jan 2005
Location: Strasbourg - FRANCE
Posts: 43
Send a message via ICQ to geoffrey_4js Send a message via Yahoo to geoffrey_4js
Mui_installoptions_write

Hi,

I've read on the forums that in a MUI, it's better to use !insertmacro MUI_INSTALLOPTIONS_WRITE instead of WriteIniStr and !insertmacro MUI_INSTALLOPTIONS_READ instead of ReadIniStr.

I've try in my code but it doesn't seems to work.

OK :
code:
WriteIniStr "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmDisplayName" "$R0"
WriteIniStr "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmDisplayVersion" "$R1"
WriteIniStr "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmContact" "$R5"



NOT OK :
code:
!insertmacro MUI_INSTALLOPTIONS_WRITE "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmDisplayName" "$R0"
!insertmacro MUI_INSTALLOPTIONS_WRITE "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmDisplayVersion" "$R1"
!insertmacro MUI_INSTALLOPTIONS_WRITE "$PLUGINSDIR\DlgJvmDetection.ini" "Settings" "JvmContact" "$R5"



I'm using NSIS 2.05 and Modern User Interface version 1.72.
geoffrey_4js is offline   Reply With Quote
Old 9th March 2005, 16:41   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
MUI_INSTALLOPTIONS_WRITE is a substitute for WriteINIStr where it simply concatinates your INI file name with the $PLUGINSDIR path infront of it.

Therefore, you need to remove $PLUGINSDIR from your MUI_INSTALLOPTIONS_WRITE calls.
Or, just use WriteINIStr as you are already doing so.

-Stu
Afrow UK 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