Archive: Function not reference


Function not reference
hi...

just a quick question
i hav a windowsversion code, which does not seem to work
when i compile the .nsi it says
"Install fucntion "GetWindowsVersion" not reference - zeroing code (-0-9) out.
what does this mean, and how can i fix it
the code is as follows. i hav just included a 2000 detection so far.

Function GetWindowsVersion
Push $9

ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion "CurrentVersion"
StrCmp $0 "" 0 lbl_winnt

lbl_winnt:
MessageBox MB_OKYESNO "NT $0"
goto lbl_done

lbl_done:
pop $9
FunctionEnd


heheh
hi ya'll

i figure it out..
i just had to use the 'Call' function, then type inthe name of the function
eg..

Call GetWindowsVersion