Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

registry hive


  • Please log in to reply
5 replies to this topic

#1
MitsuMan

MitsuMan

    Member

  • Members
  • PipPip
  • 149 posts
Hallo

I have the last few days try to put few things in the registry in a .wim file but i have 2 things that dont work.


1 i would like to set my own background picture
2 set IE start page to google.com

This is how i do it. when pause is there i manual double click on the .reg file.

imagex /mountrw c:\test7\DVD\sources\install.wim 1 C:\Test7\mount
reg load HKLM\test C:\Test7\mount\Windows\System32\config\software
reg load HKLM\test2 C:\Test7\mount\Windows\System32\config\default
Pause
reg unload HKLM\test
reg unload HKLM\test2
imagex /unmount /commit C:\Test7\mount


The reg file

[HKEY_LOCAL_MACHINE\test2\Control Panel\Desktop]
"TileWallpaper"="0"
"WallpaperOriginX"=dword:00000000
"WallpaperOriginY"=dword:00000000
"WallpaperStyle"="10"
"Wallpaper"="C:\\Windows\\web\\wallpaper\\Windows\\img1.jpg"

[HKEY_LOCAL_MACHINE\test2\Software\Microsoft\Internet Explorer\Desktop\General]
"WallpaperSource"="C:\\Windows\\web\\wallpaper\\Windows\\img1.jpg"

[HKEY_LOCAL_MACHINE\test2\Software\Microsoft\Internet Explorer\Main]
"Start Page Redirect Cache"="http://www.google.com"




How to remove advertisement from MSFN

#2
-X-

-X-

    Member

  • Patrons
  • 2,321 posts
  • OS:XP Pro x86
  • Country: Country Flag

Donator

I believe you need to use Users\Default User\NTUSER.DAT.

#3
MitsuMan

MitsuMan

    Member

  • Members
  • PipPip
  • 149 posts
Hello

If i understand you right then i shall load this one

reg load HKLM\test C:\Test7\mount\Windows\System32\config\Users\NTUSER.DAT.

#4
dencorso

dencorso

    Adiuvat plus qui nihil obstat

  • Super Moderator
  • 5,545 posts
  • OS:98SE
  • Country: Country Flag

Donator

If i understand you right then i shall load this one

reg load HKLM\test C:\Test7\mount\Windows\System32\config\Users\NTUSER.DAT.

No! C:\Test7\mount\Windows\System32\config\Default User\NTUSER.DAT

#5
MitsuMan

MitsuMan

    Member

  • Members
  • PipPip
  • 149 posts
Hello

That dont work. i dont know if it is because I use a Danish windows 7.

I have make a picture of how it look like in the config. I can load the

reg load HKLM\test2 C:\Test7\mount\Windows\System32\config\systemprofile\NTUSER.DAT

but i dont get any permisson to run og add any registry to that....

I have try with the version windows starter and windows ultimate. but dont get allow.

Attached File  test.jpg   143.81KB   6 downloads

Edited by MitsuMan, 13 December 2012 - 03:52 AM.


#6
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
With your example, I used DISM.exe and Windows AIK for Windows 7 is installed on my computer.

You can try like this: tested and works fine!

1 - Create a temp folder to mount the image : C:\zMount

2 - Create a temp folder for the registry key location path : C:\DISM_Temp

3 - Registry key named : RegistyTweaks.reg and set inside C:\DISM_Temp

RegistryTweaks.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\WIM_Default\Control Panel\Desktop]
 "TileWallpaper"="0"
 "WallpaperOriginX"=dword:00000000
 "WallpaperOriginY"=dword:00000000
 "WallpaperStyle"="10"
 "Wallpaper"="C:\\Windows\\web\\wallpaper\\Windows\\img1.jpg"
 
[HKEY_LOCAL_MACHINE\WIM_Default\Software\Microsoft\Internet Explorer\Desktop\General]
 "WallpaperSource"="C:\\Windows\\web\\wallpaper\\Windows\\img1.jpg"
 
[HKEY_LOCAL_MACHINE\WIM_Default\Software\Microsoft\Internet Explorer\Main]
 "Start Page Redirect Cache"="http://www.google.com"

4 - Using this batch file:

Reg_Hive.cmd
@echo off
Color 0A
echo.
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Mount-Wim /Wimfile:"C:\Win7_SP1\sources\install.wim" /index:5 /MountDir:"C:\zMount"
pause
reg.exe load HKLM\WIM_Default "C:\zMount\Users\Default\NTUSER.DAT"
echo.
reg.exe import "C:\DISM_Temp\RegistryTweaks.reg"
echo.
reg.exe unload HKLM\WIM_Default
echo.
pause 
"C:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exe" /Unmount-Wim /MountDir:"C:\zMount" /Commit
pause

Adapt the Windows 7 name location, index number and version (x86 or amd64) to suit your needs inside the batch file!

*Edit: I made a little tutorial but it is in French:
http://www.mediafire.com/view/?imhl4q94eojfb8a

HTH

Edited by myselfidem, 14 December 2012 - 11:09 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users



How to remove advertisement from MSFN