Показать сообщение отдельно
  #1  
Старый 12.06.2012, 16:02
NOCaut NOCaut вне форума
Прохожий
 
Регистрация: 24.10.2008
Сообщения: 15
Репутация: 10
По умолчанию bad registration succeeded

"registration succeeded" - но експлолрер ком обєкт не подхвачиват.. в чем может бить дело? было замечено на некоторых x64 ОС

Код:
procedure RegUpdate(GUID: TGUID; Index: string);
var
  ClassID: string;
begin
  ClassID := GUIDToString( GUID );
  CreateRegKey('Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\Ext' + Index, '', ClassID, HKEY_LOCAL_MACHINE);

      MessageBox(0,PWidechar(Index),'',0);
//  if (Win32Platform = VER_PLATFORM_WIN32_NT) then
    with TRegistry.Create do
      try
        RootKey := HKEY_LOCAL_MACHINE;
        OpenKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions', True);
        OpenKey('Approved', True);
        WriteString(ClassID, 'Icon Overlay Shell Extension');
      finally
        Free;
      end;
end;

begin
  if Register then
  begin
    { perform normal registration }
    inherited UpdateRegistry(Register);
    RegUpdate( Class_IconOverlay_Ok,     '1' );
  end
    else
      begin
      DeleteRegKey('Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\Ext1', HKEY_LOCAL_MACHINE);

    inherited UpdateRegistry(Register);
    end;
end;
Админ: Учимся пользоваться тегами по назначению!
Ответить с цитированием