I think users should be prompted for UAC when trying to change any settings in preferences that require admin privileges like file association. Having to start XnView as admin just to change file association doesn't look as intuitive solution.
In Media Player Classic preference, the file association options are disabled until you click Modify to enter elevated mode
Maybe we can have something like this too in XnView?