Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.08.21;
Скачать: CL | DM;

Вниз

Добавление и удаление ключа на автозапуск   Найти похожие ветки 

 
Term ©   (2005-08-02 10:51) [0]

Блин не отсылайте никуда, я всё смотрел но error найти не могу, значение в реест добавляю а удалить не могу

поправте:

h := TRegistry.Create;
if Form1.CheckBox1.Checked then
       begin
       h.RootKey := HKEY_LOCAL_MACHINE;
       h.OpenKey("\Software\Microsoft\Windows\CurrentVersion\Run", true);
       h.WriteString("Eshelon", Application.ExeName);
       h.CloseKey;
       h.Free;
       end;

if not Form1.CheckBox1.Checked then
       begin
       h.RootKey := HKEY_LOCAL_MACHINE;
       h.OpenKey("\Software\Microsoft\Windows\CurrentVersion\Run\Eshelon", true);
       if h.DeleteKey("\Software\Microsoft\Windows\CurrentVersion\Run\Eshelon") then showmessage("");
       h.CloseKey;
       h.Free;
       end;


h.DeleteKey возвращает true но ничего не удаляется


 
Term ©   (2005-08-02 11:04) [1]

есть кто живой


 
tormoz   (2005-08-02 11:07) [2]

h.OpenKey("\Software\Microsoft\Windows\CurrentVersion\Run",false);


 
tesseract ©   (2005-08-02 11:09) [3]

не DeleteKey а DeleteValue


 
Term ©   (2005-08-02 11:13) [4]

спасибо получилось



Страницы: 1 вся ветка

Текущий архив: 2005.08.21;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.034 c
8-1113485801
vayrus
2005-04-14 17:36
2005.08.21
Windows.Beep


4-1115980324
leonidus
2005-05-13 14:32
2005.08.21
Перехват нажатия клавиши CTRL


14-1122575676
Alexander Panov
2005-07-28 22:34
2005.08.21
товарищъ с адреса 217.106.205.35, не надо так делать!


4-1119512600
Igit
2005-06-23 11:43
2005.08.21
Динамический импорт функции из DLL


14-1122632474
Kerk
2005-07-29 14:21
2005.08.21
Удобство vs приватность в сети. Диалог. Мысли?