Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ConfigRead (http://forums.winamp.com/showthread.php?t=300928)

volpolo 11th December 2008 12:29

ConfigRead
 
Please help me.

I need to read a INi value in an uninstall section:

Section Uninstall

DetailPrint ""
Delete "$INSTDIR\11_Decimi_Uninst.exe"
DetailPrint ""

Call Un.Engine

;---------------------------------------------------------
${ConfigRead} "$SYSDIR\VR.ini" "Base = " $PercorsoDati
;---------------------------------------------------------


But, i receive the compiler error:

!insertmacro: ConfigReadCall
Call must be used with function names starting with "un." in the uninstall section.
Usage: Call function_name | [:label_name]
Error in macro ConfigReadCall on macroline 5

Who can help me?

Thanks in advance

kichik 11th December 2008 20:12

Why not use ReadINIStr? It's especially designed for INI files. There's no need to work with ConfigRead for INI files.

volpolo 11th December 2008 20:39

Thanks, i'll try ReadINIStr

Bye


All times are GMT. The time now is 04:31.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.