Registry Tweak Not Sticking

D

David E. Ross

I have a Web site (per the URL in my signature below). I update the
HTML files on my PC and then upload them to my ISP's Web server.

Sometimes, I need to search the HTML files for various strings. The
default Windows Search capability ignores strings within HTML markups
(e.g., alt="camera icon"), but I don't want them ignored. So I found
the following registry tweak that allows strings within HTML markups to
be found:
[HKEY_CLASSES_ROOT\.htm\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.html\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

The problem is that these settings seem to get changed, requiring me to
set them again. Each time I set them, I have to reboot to make them
effective.

What can I do to make these persistent?

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
 
T

Tim Meddick

Hi David,
Failing all else, set them the way you want them then change the
permissions on the key immediately above that contains it. Remove the
SYSTEM permissions from FULL to READ by unchecking the 'full' box. To do
this you first have to go into 'Advanced' view by pressing on the button
marked 'Advanced' and uncheck the box marked: 'Inherit from
parent...etc...'. -- Choose 'copy' from the resultant dialog box. Then go
back and uncheck the 'full' box for SYSTEM.
This will prevent any system process from making changes to your
modification while still allowing it access to read the value.
 
D

David E. Ross

Hi David,
Failing all else, set them the way you want them then change the
permissions on the key immediately above that contains it. Remove the
SYSTEM permissions from FULL to READ by unchecking the 'full' box. To do
this you first have to go into 'Advanced' view by pressing on the button
marked 'Advanced' and uncheck the box marked: 'Inherit from
parent...etc...'. -- Choose 'copy' from the resultant dialog box. Then go
back and uncheck the 'full' box for SYSTEM.
This will prevent any system process from making changes to your
modification while still allowing it access to read the value.

I tried what you suggested. I see that the SYSTEM permissions on .htm
and .html no longer have FULL. When I merge a .reg file containing the
key changes and reboot, everything works okay for a while. Then, the
search stops working again for HTML attributes within my .html files.

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
 
T

Tim Meddick

Hi David,
Sorry, I should have been more accurate. Okay, go back to the
permissions for both your registry keys:

[HKEY_CLASSES_ROOT\.htm\PersistentHandler]

[HKEY_CLASSES_ROOT\.html\PersistentHandler]

....and, again, you want the permissions for SYSTEM. Having already
unchecked the 'Inherited from...' box. UNCHECK the boxes in the ALLOW
column for the following items: SET VALUE; DELETE; WRITE DAC and WRITE
OWNER. Next CHECK the boxes marked with the SAME items on the DENY column.
This SHOULD absolutely prevent the system from changing the values under
these keys.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top