none
Executing .reg files once desktop is loaded? RRS feed

  • Question

  • Is it possible to execute certain files like .reg or .bat files once the desktop is loaded?
    Wednesday, October 5, 2011 4:16 PM

Answers

  • as i thought this is wrong.
    DS Structure: DS\$OEM$ Folders\SOME NAME\$OEM$\$1\Windows\System32

    This example is just for clarification.
    $1 means C:
    $2 means D:
    \Windows\System32 <- just example how to copy in System32.
    $$ means = %Systemroot%

    And this should the command looks like.

     <Path>%distributionshareroot%\$OEM$ Folders\SOME NAME</Path>


    "Mark/Propose As Answer" if you got one.
    Friday, October 7, 2011 2:33 PM

All replies

  • REG.EXE can be used to merge in .REG files.

    -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, October 5, 2011 5:22 PM
    Moderator
  • Sorry, I should have been more clear. I would like for them to me automatic on the first load upon loading the desktop for the first time.

    I just have a few things I want done that I cannot figure out how to do in ICE.

    Wednesday, October 5, 2011 6:22 PM
  • You can do this by using Synchronous Commands in ICE.  You can get details on using synchronous commands in ICE Help or on MSDN.

    http://msdn.microsoft.com/en-us/library/ff794157.aspx

    Looks like you need to add it to the OOBE phase.

     

    Thanks,

    Ivan

    Wednesday, October 5, 2011 7:02 PM
  • Ok, so I've found out how to execute the firstlogoncommand in ICE, for example:

     

    <FirstLogonCommands>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>c:synccommands\command1.exe</CommandLine>
    					<Description>Description_of_command1</Description>
    					<Order>1</Order>
    				</SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>c:synccommands\command2.exe</CommandLine>
    					<Description>Description_of_command2</Description>
    					<Order>2</Order>
    				</SynchronousCommand>
    			</FirstLogonCommands>


    Now how do I go about getting say a .bat or a .reg file into the system? Like how do I make it so a certain .bat or .reg file is copied into the install at C:\synccommands ?

     

    Thanks for the help!

    Wednesday, October 5, 2011 7:47 PM
  • Just add it to the $OEM$ Folders in the DS you are using and add the path to the answer file.
    "Learning without thought is labor lost; Thought without learning is perilous." Confucius
    Wednesday, October 5, 2011 8:58 PM
  • I've and my Files folder to the $OEM$ Folders directory in the Distribution Share and then from within ICE I went to Insert - OEM Folder Path - Then I selected my Files folder which is in the DS directory on my USB drive. So the install completes and once windows is loaded I cannot find where it copies these files to. I actually think they are not being copied.

    Is there something I'm missing on how to copy files to the C: drive of the install?

    Thursday, October 6, 2011 9:59 PM
  • What's your Folder Sructure? just $OEM$ or also $$ or $1?
    "Mark/Propose As Answer" if you got one.
    Friday, October 7, 2011 12:03 AM
  • My folder stucture is as follows: USB Thumb Drive\DS\$OEM$ Folders\myfile.reg

    My answer file looks like:

    <OemFolderPaths>
                    <PathAndCredentials wcm:keyValue="b881abf0" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders</Path>
                    </PathAndCredentials>
                </OemFolderPaths>

     

    Thanks for helping

    Friday, October 7, 2011 1:54 PM
  • as i thought this is wrong.
    DS Structure: DS\$OEM$ Folders\SOME NAME\$OEM$\$1\Windows\System32

    This example is just for clarification.
    $1 means C:
    $2 means D:
    \Windows\System32 <- just example how to copy in System32.
    $$ means = %Systemroot%

    And this should the command looks like.

     <Path>%distributionshareroot%\$OEM$ Folders\SOME NAME</Path>


    "Mark/Propose As Answer" if you got one.
    Friday, October 7, 2011 2:33 PM
  • KNARZ posted is the correct DS setup. Some of these basic items are covered in the online help and my book - 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
    Friday, October 7, 2011 3:54 PM
    Moderator
  • That worked perfect! Thanks Knarz

    Friday, October 7, 2011 5:13 PM