So I realized the other day that my scheduled "erase free space" tasks were doing absolutely nothing, since Eraser 6 on Windows 7 was just aborting with "I don't have enough permission to do this!" all the time due to UAC and not being elevated. Deceptively, the only message displayed was "Task completed with errors" which I had become accustomed to interpreting as "I did what I could, but a few system files were stubborn" instead of realizing it wasn't trying at all.
To try to sort this out, I went into the registry, found the entry under the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key for eraser and deleted it.
I then went into Windows 7's task scheduler, created an "advanced" task, set it to run under my user account only when the user is logged on, told it to run with "highest permissions" (that is, elevated) then on the trigger tab set it to trigger "At log on" of my user account. On actions, I set it to start a program, "D:\PROGRA~1\Eraser\Eraser.exe" (on my system, Windows is installed on D:, not C with "--atRestart" in the options box. On the settings tab I unchecked all the stuff about stopping the task after 3 days or whatnot. It all seems to work. I don't even see the annoying UAC prompt appear about eraser ever, though it still gets elevated permissions. One thing I have to be careful about is that I don't ever close (instead of minimize) the Eraser window, because that ends the task and I end up with a non-elevated copy of eraser.exe the next time I erase something.
I'm wondering if the reason this isn't the default way of installing Eraser is because it causes some undesirable side effects I have not discovered. Was this way of dealing with UAC considered?
To try to sort this out, I went into the registry, found the entry under the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key for eraser and deleted it.
I then went into Windows 7's task scheduler, created an "advanced" task, set it to run under my user account only when the user is logged on, told it to run with "highest permissions" (that is, elevated) then on the trigger tab set it to trigger "At log on" of my user account. On actions, I set it to start a program, "D:\PROGRA~1\Eraser\Eraser.exe" (on my system, Windows is installed on D:, not C with "--atRestart" in the options box. On the settings tab I unchecked all the stuff about stopping the task after 3 days or whatnot. It all seems to work. I don't even see the annoying UAC prompt appear about eraser ever, though it still gets elevated permissions. One thing I have to be careful about is that I don't ever close (instead of minimize) the Eraser window, because that ends the task and I end up with a non-elevated copy of eraser.exe the next time I erase something.
I'm wondering if the reason this isn't the default way of installing Eraser is because it causes some undesirable side effects I have not discovered. Was this way of dealing with UAC considered?