Old 11th December 2008, 12:29   #1
volpolo
Junior Member
 
Join Date: Nov 2008
Location: Italy
Posts: 13
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
volpolo is offline   Reply With Quote
Old 11th December 2008, 20:12   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Why not use ReadINIStr? It's especially designed for INI files. There's no need to work with ConfigRead for INI files.

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 11th December 2008, 20:39   #3
volpolo
Junior Member
 
Join Date: Nov 2008
Location: Italy
Posts: 13
Thanks, i'll try ReadINIStr

Bye
volpolo 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