MSFN Forum: autounattend and install program - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

autounattend and install program

#1 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 August 2012 - 11:58 PM

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


#2 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 14 August 2012 - 12:18 AM

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

http://technet.micro...v=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.

#3 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 12:46 AM

thanks for your reply :thumbup
i try to do it and tell you what happend

#4 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 01:01 AM

so i have another problem
could you give me example about this line
c:synccommands\command2.exe
i dont know what is this exactly (syccommands)

#5 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 14 August 2012 - 01:15 AM

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.

This post has been edited by MrJinje: 14 August 2012 - 01:16 AM


#6 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 01:25 AM

i am so sorry :blushing:
thank you so much


#7 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 02:18 AM

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:

#8 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 05:08 AM

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>&quot;C:\Program Files\The KMPlayer\KMPlayer.exe&quot;</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>

#9 User is offline   winoutreach5 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 02-April 12
  • OS:none specified
  • Country: Country Flag

Posted 14 August 2012 - 12:28 PM

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

#10 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 24 August 2012 - 10:27 PM

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.

#11 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 24 August 2012 - 10:29 PM

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.

#12 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 24 August 2012 - 11:02 PM

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:

#13 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 26 August 2012 - 05:48 AM

hi every body
okey i understand about how to install application but know i have another question
is it work just by network and i shoud use script ?????

#14 User is offline   lili 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 13-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 02 September 2012 - 06:55 AM

hi
finally i became successful .
thank you so much Jessica for her suggestion .
:wub:

#15 User is offline   winoutreach5 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 02-April 12
  • OS:none specified
  • Country: Country Flag

Posted 05 September 2012 - 08:51 AM

View Postlili, on 02 September 2012 - 06:55 AM, said:

hi
finally i became successful .
thank you so much Jessica for her suggestion .
:wub:


So happy to hear you were able to work it all out!

Jessica
Windows Outreach Team -- IT Pro

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy