Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Multiple Reg Entries Into One


19 Jul 2012   #1

Windows 7 Home Premium (64-bit)
 
 
Multiple Reg Entries Into One

As the title depicts, I am attempting to create a single reg file for multiple entries. Like an "All In One" if you will. As a trial run, the reg file will only modify my systems extention icons. Upon merging the reg I recieve an error dialog stating something to the extent of "Not all data was writen to the registry. Some keys are open by the system or other processes." Now I am not an expert but I am no idiot either. Folowing is my All In One .reg file.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,30,00,\
38,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\regfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,31,00,\
36,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\chm.file\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,39,00,\
33,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\dllfile\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\78.ico"
[HKEY_CLASSES_ROOT\htmlfile\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\IE.AssocFile.MHT\DefaultIcon]
@="C:\\Program Files\\Internet Explorer\\iexplore.exe,-32554"
[HKEY_CLASSES_ROOT\http\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\IE.HTTP\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\https\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\79.ico"
[HKEY_CLASSES_ROOT\jpegfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,30,00,\
38,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
@="C:\\Users\\Brandon\\Ico's\\82 [1].ico"
[HKEY_CLASSES_ROOT\lnkfile\DefautIcon]
@="C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\mhtmlfile\DefaultIcon]
@=" C:\\Users\\Brandon\\Ico's\\43.ico"
[HKEY_CLASSES_ROOT\VLC.mkv\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\72.ico"
[HKEY_CLASSES_ROOT\pngfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,38,00,\
33,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\WinRAR\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\40 [1].ico"
[HKEY_CLASSES_ROOT\WinRAR.REV\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\40 [1].ico"
[HKEY_CLASSES_ROOT\GIMP-2.8-xcf\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\55 [1].ico"

- I am sure I am overlooking some small detail, If you can spot it....Any help would be greatly appreciated. Thank You in advance =)

My System SpecsSystem Spec
.

19 Jul 2012   #2

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Split in in a few parts. For example delete

[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,30,00,\
38,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\regfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,31,00,\
36,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\chm.file\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,39,00,\
33,00,2e,00,69,00,63,00,6f,00,00,00

And try again. So you can find what it skipped!
My System SpecsSystem Spec
19 Jul 2012   #3

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\DefaultIcon]
@="C:\\Users\\Brandon\\Ico's\\78.ico"

----------------
Try to import that. Works?
My System SpecsSystem Spec
.


19 Jul 2012   #4

Windows 7 Home Premium (64-bit)
 
 

So your suggesting I follow the process of elimination? I am currently AFK, I will try your sugestion shortly and get back to you. *fingers crossed*
My System SpecsSystem Spec
19 Jul 2012   #5

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Poopcow23 View Post
So your suggesting I follow the process of elimination? I am currently AFK, I will try your sugestion shortly and get back to you. *fingers crossed*
yes try one at a time. If first 3 fail... it's a generic error.
Can you modify manually edit HKEY_CLASSES_ROOT\http\DefaultIcon using regedit? just add a Q for example. Save it. then remove Q.

Post post results
My System SpecsSystem Spec
19 Jul 2012   #6

Windows 7 Home Premium (64-bit)
 
 

Success! Deleting the first 3 entries allowed me to merge the file sucessfully. Kaktussoft I want to thank you for your help and appreciate your time and effort. What do you mean by a "Generic Error"? To clearify your most recent post, you suggested I modify the HTTP key manually [Including an extra character], export & then open with notepad & remove the character & save. If I understand you correctly, why would this make a difference? Again, thank you so much for your time & help.

-Brandon
My System SpecsSystem Spec
19 Jul 2012   #7

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Poopcow23 View Post
Success! Deleting the first 3 entries allowed me to merge the file sucessfully. Kaktussoft I want to thank you for your help and appreciate your time and effort. What do you mean by a "Generic Error"? To clearify your most recent post, you suggested I modify the HTTP key manually [Including an extra character], export & then open with notepad & remove the character & save. If I understand you correctly, why would this make a difference? Again, thank you so much for your time & help.

-Brandon
English is not my native language so maybe I wrote it the wrong way. I meant General error... sort of permission error on registry CLASSES_ROOT.. resulting in failing all writes.


I wanted you to edit some key manually and put it back to value it was. Just to check if it was writeable.
My System SpecsSystem Spec
19 Jul 2012   #8

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Poopcow23 View Post
Success! Deleting the first 3 entries allowed me to merge the file sucessfully. Kaktussoft I want to thank you for your help and appreciate your time and effort. What do you mean by a "Generic Error"? To clearify your most recent post, you suggested I modify the HTTP key manually [Including an extra character], export & then open with notepad & remove the character & save. If I understand you correctly, why would this make a difference? Again, thank you so much for your time & help.

-Brandon
so deleting this fixed it?
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,30,00,\
38,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\regfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,31,00,\
36,00,20,00,5b,00,31,00,5d,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\chm.file\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,42,00,72,00,61,\
00,6e,00,64,00,6f,00,6e,00,5c,00,49,00,63,00,6f,00,27,00,73,00,5c,00,39,00,\
33,00,2e,00,69,00,63,00,6f,00,00,00
-----------------------
What if import the first one only? Second one only? third one only?
My System SpecsSystem Spec
20 Jul 2012   #9

Windows 7 Home Premium (64-bit)
 
 

Hmm, when I merge each of them individually it was a success. I wonder why it wouldnt work when they were combined. When I write each line in notepad, there should be a blank line between each entry right?
My System SpecsSystem Spec
21 Jul 2012   #10

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Poopcow23 View Post
Hmm, when I merge each of them individually it was a success. I wonder why it wouldnt work when they were combined. When I write each line in notepad, there should be a blank line between each entry right?
Please post not working reg file (as attachment)
My System SpecsSystem Spec
Reply

 Multiple Reg Entries Into One




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:37 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33