Главная страница
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.036 c
14-1122469925
kull
2005-07-27 17:12
2005.08.21
Где накопать БД с русским словарем


14-1122640053
NeMaster
2005-07-29 16:27
2005.08.21
как двигать мышь


6-1114143431
M@X
2005-04-22 08:17
2005.08.21
компоненты TcpClient TcpServer


3-1121317131
Kara
2005-07-14 08:58
2005.08.21
Определение базы


9-1114455134
XSLide_
2005-04-25 22:52
2005.08.21
Новости JnB