Solution for problem with auto update feature in Rad Studio 2010 and Win Vista/7 UAC #156

Problem

UAC alerting saying the application did not start successfully, also the Embarcadero Rad Studio 2010 also has a warning message.

Error executing 'C:\ProgramData\{BBD31133-40F8-4B57-9BA6-DB76C03D153B}\
  Setup.exe': The parameter is incorrect

All on one line

Solution #1

Turn off the UAC. (not recommended)

Solution #2

Run Embarcadero Rad Studio 2010 as Administrator every you time start the IDE or disable the auto update feature during install.

Solution #3

Open regedit.exe and navigate to the following registry key:

HKEY_CURRENT_USER\Software\CodeGear\BDS\7.0\AutoRun\UpdateCheck

Find the Name ProgramToRun and simply modify and set the value to an empty string.

Solution #4

I have taken the liberty of writing a procedure to handle such process, this procedure works on the assumption that Embarcadero Rad Studio 2010 is installed and Auto Update is enabled, no version checking is being performed.

uses
  Windows, Registry;

procedure RemoveEmbarcaderoRadStudios2010AutoUpdate;
var
 Reg: TRegistry;
begin
  Reg := TRegistry.Create;
  try
    Reg.RootKey := HKEY_CURRENT_USER;
    if Reg.OpenKey(
      '\Software\CodeGear\BDS\7.0\AutoRun\UpdateCheck', True
    ) then
      Reg.WriteString('ProgramToRun', '')
    else
      ShowMessage('Registry entry not found');
    Reg.CloseKey;
  finally
    Reg.Free;
  end;
end;
Author: Jeff DeVore
Contributor: Jeff DeVore
Added: 2010/03/09
Last updated: 2010/03/09