Hello,
I would like to know how delete a registry key at boot time. Do I have to
set a flag when I create a registry key to tell the system to erase the key
at boot time?
Regards
Hello,
I would like to know how delete a registry key at boot time. Do I have to
set a flag when I create a registry key to tell the system to erase the key
at boot time?
Regards
One “off the top of my head” solution would be to generate a .reg file in
the temp folder that deletes the key you want. Then place two values under
the RunOnce key. The first to run regedit /s theRegFile.reg. The second to
run Command /c del theRegFile.reg to clean up after itself.
-Dan
“CG” wrote in message news:xxxxx@ntdev…
> Hello,
>
> I would like to know how delete a registry key at boot time. Do I have to
> set a flag when I create a registry key to tell the system to erase the
> key
> at boot time?
>
> Regards
>
>
Depends on when at the boot stage you want to delete. If it is Okay to delete at service start time, then you can use a nt service, that would start automatically and delete registry keys if present, and it would not take much to stop the service right after it delets the key(s)…
-pro