Вниз
Скачать: 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.028 c
14-1122376544
desam
2005-07-26 15:15
2005.08.21
WAP чат


14-1122457362
NewWonder
2005-07-27 13:42
2005.08.21
Делюсь большой радостью!


8-1113325455
toshbek
2005-04-12 21:04
2005.08.21
Сохранение midi


3-1121203514
Максим
2005-07-13 01:25
2005.08.21
IBUpdateSQL и работа с ним ?


8-1112790706
Asic
2005-04-06 16:31
2005.08.21
Видео и Аудио плеер с помощью DSPack a




   Наверх