Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I make a registy shortcut that deletes a value?

5 views
Skip to first unread message

Jon Danniken

unread,
Dec 3, 2003, 6:01:07 PM12/3/03
to
Howdy,

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?

Thanks for any help,

Jon

Torgeir Bakken (MVP)

unread,
Dec 3, 2003, 6:12:57 PM12/3/03
to
Jon Danniken wrote:

> 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


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Jon Danniken

unread,
Dec 3, 2003, 6:56:00 PM12/3/03
to
"Torgeir Bakken (MVP)" wrote:
> Jon Danniken wrote:
>
> > 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

0 new messages