Try following instructions in this article: http://support.apple.com/kb/TS2363
Though it says it is for issue where iTunes will not open, I found the link in this discussion: iTunes isn't saving my preferences
It worked for me! iTunes is now remembering my preferences, even with McAfee Total Protection Real Time Scanning on. I did previously verify that turning off Real Time Scanning would resolve the iTunes problem (as described elsewhere in this thread), but following these instructions has resolved the problem even as I leave Real Time Scanning on.
I am not sure if my itunesprefs.xml was being deleted like it was for other users. All I know is iTunes was not remembering my preferences & intermittently asking my to agree to Software license whenever I re-opened program. After following the instructions for fixing unusable configuration file described in http://support.apple.com/kb/TS2363, I don't have the problem any more.
I have noticed though that I need to close out of program using "File... Exit" method, rather than clicking the "X" in the top right-hand corner of window to close. When clicking the "X", I noticed one time that it did not remember my sidebar option... however it did keep some of my other preferences. Though I am trying to recreate the problem now (using "X" to close) and I cannot... keeps working no matter how I close iTunes.