Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There is a command-line switch for Chrome for setting Disk cache size and location.
Mine looks like this: --disk-cache-dir="C:\0\cache" --disk-cache-size=1073741824

If you want to have these settings all-the-time, you need to modify ALL your icons, and your registry.

I have modified all my icons. And my registry.
However, my registry reverts all the time. How can I protect my registry from this?

The registry modification looks like this (exported it from my registry; .reg file):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ChromeHTML\shell\open]

[HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command] @="\"C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe\" --disk-cache-dir=\"C:\0\cache\" --disk-cache-size=1073741824 -- \"%1\""

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You should not change HKEY_CLASSES_ROOT (HKCR). This is simply a merged view from HKEY_CURRENT_USER\Software\Classes and HKEY_LOCAL_MACHINE\Software\Classes.

  • If you wish to make a change that affects all users that can connect to the machine, use:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\shell\open\command

  • If you wish to make changes that affect only the current user, use:

    HKEY_CURRENT_USER\Software\Classes\ChromeHTML\shell\open\command


Note: Depending on how Chrome was installed, you may not see one of these; i.e. if it was installed just for the current user, "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML" will be missing). But You can move and copy from one key to the other if you want.

For more information: See Windows registry Information

share|improve this answer
    
Well, it's got the same value in the LOCAL_MACHINE, but the change gets reverted for some reason ... somehow ... I don't know. :/ –  Shiki Jul 21 '11 at 12:18
    
@Shiki Another issue I'm noting is the lack of double backslashes inside the paths –  A Dwarf Jul 21 '11 at 12:20
    
Nevermind that last comment. It's an export –  A Dwarf Jul 21 '11 at 12:23
    
@Shiki. Being that the case, here comes my stupid question. Have you rebooted after changing the value? –  A Dwarf Jul 21 '11 at 12:24
1  
No point in rebooting. Not at all. Computers are not magic, and "reboot" is no magic spell. –  MSalters Jul 21 '11 at 12:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.