1
Vote

DiscSpaceReporter does not report alerts in Vista without Admin rights

description

I installed the tool in Vista with SP2 with Administrator rights
I run the tool as a normal user. It seems to save its settings, but it does not show an alert after a check now.
 
In the source code all settings are loaded and saved from HKLM using Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
and Application.StartupPath ( = C:\Program Files\DiscSpaceAlerter\ ) which are normally not writable for normal users without admin rights.
Vista does some funky things remapping those files into a special location in order to fool such programs.
 
Better use Registry.CurrentUser.OpenSubKey and Application.LocalUserAppDataPath for that reason.

comments