to un. or not to un. that is the question
Hi!
This un./not un. stuff is driving me crazy. I am trying to use the Path manipulation code from http://nsis.sourceforge.net/wiki/Path_Manipulation in order to add my programs binary directory to the path under Windows NT/2000/XP in a persistent way but cannot get rid of those x&%!rgh-compiler errors related to the "un." prefix stuff. I would like to use the macro "RemoveFromPath" while in installer and uninstaller mode. It compiles but at the end says:
Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Error: resolving uninstall function "un.RemoveFromPath" in uninstall section "Uninstall" (0)
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process
which reminds me of some odd problems I had in the past with this stuff (un.) ... I just would like to propose that in a future version we could simply be allowed to call un. functions while in installer mode. If I explicitely say "un.xxxx" the compiler could be nice and just pretends that I know that I want that function and not the installer-version of it...
But back to this problem:
Any hints what I can check?
I put the two functions AddToPath and RemoveFromPath as well as the rest of that utility stuff shown on the Wiki page in an include file "path.nsh" and include this at the beginning of my installer. What the heck can I do to let the pig fly?
Thanks in advance,
kind regards,
Heiko