I replied to the wrong thread, sorry! :-(
I think you'll have to hack sidebar.exe, see your thread 'Access
denied on various Win7 files.' I'll repeat my post here:
If you check the security status of sidebar.exe you will see that
Users, Administrators and even System have only read and execute
access. Only TrustedInstaller has full control. That's why you can't
rename it. If you wanted to run sidebar.exe as you said, you would
first have to take ownership of the file and then give yourself full
control. Then edit it with a hex editor to stop it writing the
registry entry to run at start-up. The string
'Software\Microsoft\Windows\CurrentVersion\Run' starts at 0x00005F1C
so you could, I guess, modify that by changing, say, Run to Sun. Then
when you ran the program it would write a harmless registry entry that
didn't instigate a run at start-up.
If you tried to edit sidebar.exe without taking ownership then Win7
will just automatically replace the edited file with a good copy.
I saw your original post. Thank you for the intelligent and informative
response! When did usenet degenerate so badly that half the people seem
to be incapable of a response that goes beyond something like "to stop
idiots like you from messing with it"? Back in the good old days you just
didn't see many mouthy 10 year old kids out here. Now, most of this
thread has devolved to "mine is bigger than yours, you <insert
prepubescent insult of the day>".
I played with it for a while. The first thing I did was make a copy of
the file, since I have full ownership of the copy and it was easier to do
that than to figure out how to take control of it. I looked through the
executable, and the registry string does not occur anywhere in the
version I have, let alone at the address you specified. At this point I
moved on to other projects because I didn't have time to pursue it
further.
My motivation for figuring this out is that I remove all startup items
from startup so they don't execute by default. Several years ago I wrote
a simple program that lets me store a list of startup items, and
conditionally executes them for me. I boot Windows, which happens much
faster without all of the startup junk. Then I run my program, which will
either let me choose individual startup items, or it will run items that
I have preconfigured to be run when I push the go button. I wanted to add
sidebar to this list, which is when I discovered the it automatically
makes itself auto start each time you run it. (programmers that pull
stunts like that need to have their fingers broken so they don't do
things like that anymnore).