Skip to content
⌘ NSIS Forum Archive

ConfigRead

3 posts

volpolo#

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#
Why not use ReadINIStr? It's especially designed for INI files. There's no need to work with ConfigRead for INI files.