I get the following error when I run my program on Windows 7 (x64) :

The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security

This is thrown on the following line:
Code:
EventLog.WriteEntry("MyAppName", "event log message text", EventLogEntryType.Error, 7881)
After doing a bit of research it seems that this is because the event source that my app is trying to use (so "MyAppName" in my example) does not already exist on the PC and you need to be an administrator to create a new event source... which seems a bit odd to me but apparently that is the way it works. So if I run the program once as admin, then run it again as a normal user it works fine because the event source already exists.
The problem is that this program needs to be run by non admin users - any thoughts on if/how I can do this? The program is going to be run on Windows XP machines only at the moment so I doubt I will have this problem when I actually roll it out, but I would like to make it compatible with Vista and Windows 7 if possible (I'm sure this will become a requirement in the future).

There must be some kind of workaround because I'm sure every program that ever needs to write to the event log in Windows 7 doesnt need to be run as admin the first time..

Cheers
Chris