Registry modifications

Brian,

It appears that whenever WeatherDisplay starts, it modifies the Registry (twice). I get this activity logged by AdWatch:

7/24/2004 1:07:12 PM - Registry modification detected Root:HKEY_CURRENT_USER Key:Software\Microsoft\Windows\CurrentVersion\Run Value:Delphi 3#Autostart Data:"C:\wdisplay\WeatherD.exe" New Data:"c:\wdisplay\WeatherD.exe"

Attempt to modify the auto-start section (Allowed by user)

===============================================
7/24/2004 1:07:13 PM - Registry modification detected
Root:HKEY_CURRENT_USER
Key:Software\Microsoft\Windows\CurrentVersion\Run
Value:Delphi 3#Autostart
Data:
New Data:“c:\wdisplay\WeatherD.exe”

Attempt to modify the auto-start section (Allowed by user)

===============================================


Would it be possible to simply check the Registry for the desired value, and skip the update if it’s already set as required?