lili Posted August 14, 2012 Share Posted August 14, 2012 Hii 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 More sharing options...
MrJinje Posted August 14, 2012 Share Posted August 14, 2012 Your going to want to look into "First Logon Commands". Try running them from the oobeSystem pass using Microsoft-Windows-Shell-Setuphttp://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 More sharing options...
lili Posted August 14, 2012 Author Share Posted August 14, 2012 thanks for your reply i try to do it and tell you what happend Link to comment Share on other sites More sharing options...
lili Posted August 14, 2012 Author Share Posted August 14, 2012 so i have another problemcould you give me example about this line c:synccommands\command2.exei dont know what is this exactly (syccommands) Link to comment Share on other sites More sharing options...
MrJinje Posted August 14, 2012 Share Posted August 14, 2012 (edited) Synccommands is dummy folder name. you'll have to change it to match your real folder name. "c:synccommands\command2.exe"to something like thisC:\Mypathtooffice\Officesetup.exeC:\MyAdobeFolder\AdobeReader.exeor whatever apps you need to run. Good luck. Edited August 14, 2012 by MrJinje Link to comment Share on other sites More sharing options...
lili Posted August 14, 2012 Author Share Posted August 14, 2012 i am so sorry thank you so much Link to comment Share on other sites More sharing options...
lili Posted August 14, 2012 Author Share Posted August 14, 2012 okey i coming back with another questions 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 i think order 1 or 2,,,,,, depend on how many set disk is that true???? Link to comment Share on other sites More sharing options...
lili Posted August 14, 2012 Author Share Posted August 14, 2012 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 More sharing options...
winoutreach5 Posted August 14, 2012 Share Posted August 14, 2012 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 2012Deployment Day Session 2: MDT 2012 AdvancedShould 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 USMTDeploy Windows 7 The Easy Way: Using WDS, MDT and AIK – Step-By-Step VideoI know this is a lot of information but hopefully it will give you a few options to get you pointed in the right direction.JessicaWindows Outreach Team – IT Pro Link to comment Share on other sites More sharing options...
lili Posted August 25, 2012 Author Share Posted August 25, 2012 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 More sharing options...
lili Posted August 25, 2012 Author Share Posted August 25, 2012 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 More sharing options...
lili Posted August 25, 2012 Author Share Posted August 25, 2012 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??? Link to comment Share on other sites More sharing options...
lili Posted August 26, 2012 Author Share Posted August 26, 2012 hi every bodyokey i understand about how to install application but know i have another question is it work just by network and i shoud use script ????? Link to comment Share on other sites More sharing options...
lili Posted September 2, 2012 Author Share Posted September 2, 2012 hifinally i became successful .thank you so much Jessica for her suggestion . Link to comment Share on other sites More sharing options...
winoutreach5 Posted September 5, 2012 Share Posted September 5, 2012 hifinally i became successful .thank you so much Jessica for her suggestion .So happy to hear you were able to work it all out! JessicaWindows Outreach Team -- IT Pro Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now