Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
14-1122495978
Qwertyk
2005-07-28 00:26
2005.08.21
Как избавиться от разводов


1-1122963578
СССР
2005-08-02 10:19
2005.08.21
PopupMenu1


14-1122628257
DillerXX
2005-07-29 13:10
2005.08.21
Почему появляются синяки под глазами?


9-1114186468
Yegorchic
2005-04-22 20:14
2005.08.21
Помогите с физикой планет


1-1122892737
Proz2
2005-08-01 14:38
2005.08.21
Результат исполнения Action из TActionList




   Наверх