Search code examples
registryinno-setup

Inno setup uninstaller doesnt delete rewritten registry values


Inno setup uninstaller doesnt delete registry values when they are rewritten by other program although the values stay the sames as inno setup wrote them when installing. Any solution?


Solution

  • Did you try deleting registry in Uninstall method, rather than using the flags in registry section? Eg :

    procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
    begin
      if CurUninstallStep = usUninstall then 
      begin  
       if RegValueExists(RegistryAccount, 'RegistryPath','RegistryValue') then
       begin
         RegDeleteValue(RegistryAccount, 'RegistryPath','RegistryValue');
       end;
      end;
    end;