Jump to content

Windows 7 Installation Add custom folders


Recommended Posts


Is it possible to add in your own folders or files..so that once windows setup is completed and it loads desktop that you could have your folders on the desktop?

loki9, yes. In the .xml used for the installation, include the command

            <FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Start my batch file.</Description>
<CommandLine>CMD /R %systemdrive%\Run1\Run1-W7.bat</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

My batch file goes into W:\sources\$OEM$\$1\Run1 and has this command first to find the install source (CDROM):

For %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:

Place your files/folders in a folder at the root of your install source. I call mine Install.

Enjoy, John.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...