MSFN Forum: Installing apps thru xml is not working - MSFN Forum

Jump to content



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

Installing apps thru xml is not working unable to install application using xml file Rate Topic: -----

#1 User is offline   music5_5 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 17-December 07

Posted 19 February 2008 - 12:48 PM

Hi All,

I have been following firegeier guide to install unattended copy of vista and it has been working great until now. Now I am at step where I would like to install apps and I want my apps files to reside on the DVD (inside install folder). I have created a file call CDROM.txt on root of dvd but still unable to install any application. here is what it looks like in my xml file:

<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Credentials>
<Username>administrator</Username>
<Password>U814sure!</Password>
</Credentials>
<Path>cmd /c &quot;FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\CDROM.txt SETX CDROM %i: -m&quot;</Path>
<WillReboot>OnRequest</WillReboot>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">

<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>10</Order>
<Credentials>
<Username>administrator</Username>
<Password>U814sure!</Password>
</Credentials>
<Path>cmd /c %CDROM%\Install\Firefox\Firefox Setup 2.0.0.12.exe -ms</Path>
<WillReboot>Never</WillReboot>
<Description>Firefox Installation</Description>
</RunSynchronousCommand>
</RunSynchronous>

For now I am trying to install firefox only to see if this works but after finishing setup vista will auto login and displays welcome center. It would not install any app at. can anyone help please?


Thanks,


#2 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 February 2008 - 01:25 PM

Try setting your apps from first logon as below sample, you still need to set your variable as you have in <RunSynchronous>

Quote

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>10</Order>
<CommandLine>cmd /c %systemdrive%\Hotfix\Windows-KB890830-V1.30.exe /Q</CommandLine>
<Description>Hotfix</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>20</Order>
<CommandLine>cmd /c %systemdrive%\Hotfix\msxml4-KB927978-enu.exe /Q</CommandLine>
<Description>Hotfix</Description>
</SynchronousCommand>


The other thing is to remember to have all your paths & directories correctly set & in place.

#3 User is offline   music5_5 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 17-December 07

Posted 19 February 2008 - 02:58 PM

View PostMAVERICKS CHOICE, on Feb 19 2008, 12:25 PM, said:

Try setting your apps from first logon as below sample, you still need to set your variable as you have in <RunSynchronous>

Quote

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>10</Order>
<CommandLine>cmd /c %systemdrive%\Hotfix\Windows-KB890830-V1.30.exe /Q</CommandLine>
<Description>Hotfix</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>20</Order>
<CommandLine>cmd /c %systemdrive%\Hotfix\msxml4-KB927978-enu.exe /Q</CommandLine>
<Description>Hotfix</Description>
</SynchronousCommand>


The other thing is to remember to have all your paths & directories correctly set & in place.



If I copy my command from <RunSynchronous> and then paste in <FirstLogonCommands>, would it work?

Do you know how to set value for order? According the guide first comand was set with order value of 1 and then later it was some like 10 or 20.

Thanks,

#4 User is offline   music5_5 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 17-December 07

Posted 19 February 2008 - 03:37 PM

Hi I have tried to paste my commands in <FirstLogonCommands> and it still did not work. Here is what does it look like in xml file:

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c %CDROM%\Install\Firefox\Firefox Setup 2.0.0.12.exe -ms</CommandLine>
<Description>FIrefox</Description>
<Order>20</Order>
</SynchronousCommand>
</FirstLogonCommands>

do you know how can point installation to root of my install media?

Thanks,

#5 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

  Posted 19 February 2008 - 03:59 PM

So long as CDROM.txt & your Install dir are both in the root of your disc you should be fine to go.

This post has been edited by MAVERICKS CHOICE: 19 February 2008 - 04:01 PM


#6 User is offline   music5_5 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 17-December 07

Posted 20 February 2008 - 10:05 AM

Once my Vista installation was done then I have look and under my computer CDROM was pointed to CD_ROM. Do you know if I have to change my %CDROM% variable to %CD_ROM%?

Thanks a lot for your help.

#7 User is offline   morgancroft 

  • Group: Members
  • Posts: 3
  • Joined: 12-October 06

Posted 21 February 2008 - 12:29 AM

Music5_5,

Dont take this post the wrong way, but why did you change the variables that were in the guide? I will show you how mine looks, and it works fine. (My apps install from the Vista DVD which sounds like what you are trying to accomplish).

This is from the Specialize Pass...
 <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">
 <RunSynchronous>
 <RunSynchronousCommand wcm:action="add">
  <Order>1</Order> 
  <Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m"</Path> 
  </RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
  <Order>2</Order> 
  <Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path> 
  </RunSynchronousCommand>
  </RunSynchronous>
  </component>


Here si the AuditUser pass where the apps are being installed...
 <settings pass="auditUser">
 <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">
 <RunSynchronous>
 <RunSynchronousCommand wcm:action="add">
  <Order>1</Order> 
  <Path>cmd /c start /wait %AppsRoot%\Install\Flash9\install_flash_player.msi /qn</Path> 
  </RunSynchronousCommand>
 <RunSynchronousCommand wcm:action="add">
  <Order>2</Order> 
  <Path>cmd /c start /wait %AppsRoot%\Install\Reader8\AdbeRdr811_en_US.exe /sAll</Path> 
  </RunSynchronousCommand>
 <RunSynchronousCommand wcm:action="add">
  <Order>3</Order> 
  <Path>cmd /c %AppsRoot%\Install\Office2007\setup.exe</Path> 
  </RunSynchronousCommand>
 <RunSynchronousCommand wcm:action="add">
  <Order>4</Order> 
  <Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path> 
  </RunSynchronousCommand>
  </RunSynchronous>
  </component>
  </settings>


And of course, make sure AppsRoot.txt exists in the root of the DVD...


Hopefully this will help you...

#8 User is offline   music5_5 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 17-December 07

Posted 22 February 2008 - 10:43 AM

Hello morgancroft,

I have tried as it is stated in the guide but still were not able to install any apps. I have attached my xml file with this, can you please let me know if this will work or not.

Thanks,

P.S. I am using vmware to test my installation, hopefully that should not have impact on unattended install.


Attached File(s)



Share this topic:


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

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



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