Archive: find a full variable


find a full variable
I have 3 variable read out in the registry. Some stings in registry does not exist, so musst I know the empty variable to find the full variable, but with !ifdef and !ifndef can I do this not. I hope someone can help me.


If you used one of the NSIS ReadReg... functions to read the value from the registry the error flag will be set if the value does not exist, use IfErrors to test for this.

If the value in the registry was a blank string when you expected a value to be in it then a test using StrCmp $0 "" would work I would imagine (where $0 is your value read from the registry).

I'm not sure if this answers your question because I can't work out what you were trying to do with !ifdef and !ifndef.