Torgeir Bakken (MVP) said:
Jon said:
I know how to make a shortcut that "merges" a value into the registry, but
how can I make one that will remove the value?
Hi
You can delete keys and values with a registry file:
Delete key:
REGEDIT4
[-HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]
Delete value:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]
"Test"=-
Be sure that you registry file contains a blank line at the end.
More here:
WinGuides.com Article - Windows Registry Tutorial Importing and Exporting
Registry Settings
http://www.winguides.com/article.php?id=1&page=4&guide=registry
Thanks a TON for that, Torgeir; my project is succesful now.
BTW: this was to create two .reg files; one turns off flash animations (and
eliminates the "install and run" popup), and the other one turns flash back
on when I need it. Here are the two files, in case anyone is interested in
using them (successful using W2k/sp4 and IE6):
-------begin file flashoff.reg-----------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX
Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}]
"Compatibility Flags"=dword:00000400
---------end file flashoff.reg----------
---------begin file flashon.reg----------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX
Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}]
"Compatibility Flags"=-
---------end file flashon.reg-----------
Jon