none
Making Registry Changes RRS feed

  • Question

  • Now, for the life of me I can not work out how to implement registry changes in to the IBW image.  All I want to do is change the background colour when using my custom shell.  At the moment it is a light blue which is the default but I want it to be black.

    Is there any way of making registry changes as part of the build?  If so, can anyone tell me what component to add to the answer file and what the syntax will be.  I have looked at the "Registry Filter" but this is for adding keys and not setting their values.

    Getting a little frustrated. Any ideas?

    Thanks.

    Wednesday, September 7, 2011 2:48 PM

All replies

  • If the key can be saved to a .REG file, you can use reg.exe to add the key using synchronous command.

    -Sean

     


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
    Wednesday, September 7, 2011 3:28 PM
    Moderator
  • Handmade:

    Save it as a *.reg file.

    do a syncronus command. "reg import REGFILENAME.reg"

     

    Windows Registry Editor Version 5.00

    [HKEY_USERS\.DEFAULT\Control Panel\Colors]
    "Background"="0 0 0"
    [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
    "Wallpaper"=-
    [HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Desktop\General]
    "WallpaperSource"=-


    "Mark/Propose As Answer" if you got one.
    Wednesday, September 7, 2011 3:57 PM
  • Excellent, but how exactly do I run a "syncronus command"?  Is there a feature I need to add or a file I have to edit.

    Sorry, new to this.  Used to use Embedded XP.


    Alex Plasma
    Wednesday, September 7, 2011 4:34 PM
  • Open ICE and Hit F1. Type in Search Syncrous and you will find all Info you need.
    "Mark/Propose As Answer" if you got one.
    Wednesday, September 7, 2011 5:20 PM
  • My book covers some of these basics steps: http://www.annabooks.com/Book_PGWES7.html

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
    Thursday, September 8, 2011 6:29 AM
    Moderator
  • But it doesn't cover the registrytweaks, or does it? ;)
    "Mark/Propose As Answer" if you got one.
    Thursday, September 8, 2011 12:33 PM
  • Yes - Section 3.2.10 which discuss sunchronous commands also section 5.5.2 :)

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
    Thursday, September 8, 2011 3:48 PM
    Moderator
  • Great. Thanks for the info everyone, however, I have created the reg file and if I run it when the OS has installed from the windows shell and then reboot it works, but when I run it from the within the setup using a synchronous command it does not and I still get the default colour!!

    The Synchronous Command is: "reg import c:\config\changes.reg" without quotes

    Placed at: Pass 7 oobeSystem

    Reg file is:

    Windows Registry Editor Version 5.00

     

    [HKEY_CURRENT_USER\Control Panel\Colors]

    "Background"="0 0 0"

    [HKEY_USERS\.DEFAULT\Control Panel\Colors]

    "Background"="0 0 0"

    [HKEY_USERS\.DEFAULT\Control Panel\Desktop]

    "Wallpaper"=-

    [HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Desktop\General]

    "WallpaperSource"=-

     

    Any ideas what I am doing wrong.  Perhaps the wrong place of the command?

     

    Thanks.


    Alex Plasma
    Thursday, September 8, 2011 10:01 PM
  • Hi,

    try

    cmd.exe /c reg import c:\config\changes.reg

     

    and normally you need to set the type of the registry key value e.g:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "Hidden"=dword:00000001

    By the way, how do you copy the Reg file to the target? I hope you are using the OEM folder option...

     

    Regards

     


    • Edited by ITler25 Friday, September 9, 2011 8:18 AM
    • Proposed as answer by hescobar627 Thursday, April 12, 2012 6:30 PM
    • Unproposed as answer by hescobar627 Thursday, April 12, 2012 6:30 PM
    Friday, September 9, 2011 8:17 AM
  • Are you trying to setup the wallpaper for a custom shell? If so. the wallpaper needs to be setup each time the system boots into the shell.

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
    Friday, September 9, 2011 4:22 PM
    Moderator