Skip to content
⌘ NSIS Forum Archive

UAC_AsUser_GetGlobalVar error

2 posts

alexmitev#

UAC_AsUser_GetGlobalVar error

Hello,

I'm using the call
!insertmacro UAC_AsUser_GetGlobalVar $LANGUAGE 
in my un.onInit function, and I get the following error:
Error: could not resolve label "_UAC_AUGOGR_OP$LANGUAGEStrCpy$LANGUAGE_F" in function "un.onInit"

Which is strange, since the same call in .onInit doesn't produce any error.
I looked into the _UAC_AsUser_GenOp macro, there is a ${_UAC_AUGOGR_ID}_F label, which somehow the compiler cannot find.
I also noticed there is a
return 
instruction inside this macro, I think it's not legal inside macros, or am I missing something?

Regards,
Alex
Anders#
The return is there because it creates a function on the fly with labels. Any run-time instruction is valid in a macro, macros are just text replacements in the first compiler phase.

Your code compiles for me, please post a minimal but complete example that reproduces the issue...