Jump to content

autounattend and install program


Recommended Posts

Hi

i know how to create autounattend and its work , but now i want to install my own program in my customize windows7.

is there any way to create autounattend with waik and install program like office or kmplayer,adobe flash player.............?????

Link to comment
Share on other sites


Your going to want to look into "First Logon Commands". Try running them from the oobeSystem pass using Microsoft-Windows-Shell-Setup

http://technet.microsoft.com/en-us/library/cc722150%28v=ws.10%29.aspx

<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>

There are other ways (setupcomplete.cmd, etc) but you mentioned your your XML first, so just pop open WSIM and edit them in that way.

Link to comment
Share on other sites

Synccommands is dummy folder name. you'll have to change it to match your real folder name.

"c:synccommands\command2.exe"

to something like this

C:\Mypathtooffice\Officesetup.exe

C:\MyAdobeFolder\AdobeReader.exe

or whatever apps you need to run. Good luck.

Edited by MrJinje
Link to comment
Share on other sites

okey i coming back with another questions :P

1) i must to set configure disk at first then set this <FirstLogonCommands>???

2) coud you tell me about order more ?

some people order 1 ,2 , ....10 :o

i think order 1 or 2,,,,,, depend on how many set disk is that true???? :yes:

Link to comment
Share on other sites

this is my code but it doesnt work :(

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<DiskConfiguration>

<Disk wcm:action="add">

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Size>200</Size>

<Type>Primary</Type>

</CreatePartition>

<CreatePartition wcm:action="add">

<Order>2</Order>

<Type>Primary</Type>

<Extend>true</Extend>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Order>1</Order>

<Label>System</Label>

<Active>true</Active>

<Format>NTFS</Format>

<PartitionID>1</PartitionID>

</ModifyPartition>

<ModifyPartition wcm:action="add">

<Format>NTFS</Format>

<Label>Windows</Label>

<Order>2</Order>

<PartitionID>2</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

</component>

</settings>

<settings pass="oobeSystem">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>"C:\Program Files\The KMPlayer\KMPlayer.exe"</CommandLine>

<Description>kmplayer</Description>

<Order>2</Order>

</SynchronousCommand>

</FirstLogonCommands>

</component>

<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Reseal>

<Mode>Audit</Mode>

</Reseal>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Home_Page>www.matiran.ir</Home_Page>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:c:/users/f.khalaji/desktop/new%20folder/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Link to comment
Share on other sites

You can use an autounattend.xml file to run a program after setup just as MrJinje suggested but as he also stated there are other ways to install an application during deployment. First off, I did find this TechNet forums thread when looking for a solution to your issue. In this case, Jorno123, was able to fix his by breaking up the command into several ordered commands. Perhaps this will add some insight.

It also would be helpful to know what happens when you try to use your current XML file and if you have validated the file using the Windows System Image Manager (Windows SIM).

You also might be interested in using the Microsoft Deployment Toolkit (MDT) as it acts as a common console that combines all deployment tasks into an easy to use interface. MDT even allows you to create “universal images” by allowing you to easily add and remove drivers as well as applications to and from the deployment images. You might want to watch the following videos to become more familiar with MDT and deploying Windows 7.

Deployment Day Session 1: Introduction to MDT 2012

Deployment Day Session 2: MDT 2012 Advanced

Should you decide that you also do want to use WDS which is a part of Windows Server 2003, 2008 and 2008R2, you might find the Deployment Day Session 3: Deployment using WDS video beneficial as well.

Finally, I always recommend the following two videos for anyone who is starting Windows 7 deployment as the first video outlines how simple it is to not only manage your deployments but also greatly minimize the time it takes while the second video walks you through, step-by step, the process of doing so with all the aforementioned tools.

Alphabet Soup Deployment: Understanding MDT, WDS, MAP, ACT, SCCM, and USMT

Deploy Windows 7 The Easy Way: Using WDS, MDT and AIK – Step-By-Step Video

I know this is a lot of information but hopefully it will give you a few options to get you pointed in the right direction.

Jessica

Windows Outreach Team – IT Pro

Link to comment
Share on other sites

  • 2 weeks later...

thanks for your reply

you suggest me lots of ways but i must to use waik.

could you tell me more about install program with waik.

i have problem how install and store my own program with autounattend in waik.

Link to comment
Share on other sites

thanks for your reply

you suggest me lots of ways but i must to use waik.

could you tell me more about install program with waik.

i have problem how install and store my own program with autounattend in waik.

Link to comment
Share on other sites

my great problem is when i try to use:

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>c:synccommands\command1.exe</CommandLine>in my autounattend programs set in windir after install windows my program arent available

<Description>Description_of_command1</Description>

<Order>1</Order>

</SynchronousCommand>

my programs set in windir and after install windows doesnt exist what shoud i do??? :wacko:

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...