Jump to content

WSIM autounattend Error..?


Recommended Posts

I can't open my script anymore...

I don't think it can be my script as i can't open any of my last 5 backup scipts... I can open the script off the autounattend guide web site....?

If anyone can see anything please let me know..

Here's the Error LOG...

12:40 : System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)

at System.Collections.Generic.List`1.Enumerator.MoveNext()

at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.ReadSettingsFromUnattendNode(Node unattendRoot)

at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile)

at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile..ctor(String path)

at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path)

at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)

Here's my Autounattend.xml

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

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

<servicing></servicing>

<settings pass="windowsPE">

<component name="Microsoft-Windows-International-Core-WinPE" 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">

<SetupUILanguage>

<UILanguage>en-GB</UILanguage>

</SetupUILanguage>

<UserLocale>en-GB</UserLocale>

<UILanguage>en-GB</UILanguage>

<SystemLocale>en-GB</SystemLocale>

<InputLocale>0809:00000809</InputLocale>

<LayeredDriver>1</LayeredDriver>

</component>

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

<UserData>

<ProductKey>

<WillShowUI>OnError</WillShowUI>

<Key>*****-*****-*****-*****-*****</Key>

</ProductKey>

<AcceptEula>true</AcceptEula>

<Organization>MegaVista</Organization>

<FullName>Administrator</FullName>

</UserData>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1024</HorizontalResolution>

<VerticalResolution>768</VerticalResolution>

</Display>

<ImageInstall>

<OSImage>

<InstallFrom>

<MetaData wcm:action="add">

<Key>/IMAGE/NAME</Key>

<Value>Windows Vista ULTIMATE</Value>

</MetaData>

</InstallFrom>

<InstallToAvailablePartition>false</InstallToAvailablePartition>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">

<SkipAutoActivation>true</SkipAutoActivation>

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

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

<RunSynchronousCommand wcm:action="add">

<Order>3</Order>

<Path>cmd /c reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>4</Order>

<Path>cmd /c REGEDIT /S %AppsRoot%\Install\SecurityCenterShutup.reg</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>5</Order>

<Credentials />

<Path>CMD /C BCDEDIT /SET QUIETBOOT ON</Path>

</RunSynchronousCommand>

</RunSynchronous>

</component>

<component name="Microsoft-Windows-International-Core" 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">

<InputLocale>0809:00000809</InputLocale>

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-GB</UILanguage>

<UserLocale>en-GB</UserLocale>

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

<AutoLogon>

<Enabled>true</Enabled>

<LogonCount>5</LogonCount>

<Username>Administrator</Username>

</AutoLogon>

<Display>

<ColorDepth>32</ColorDepth>

<DPI>96</DPI>

<HorizontalResolution>1024</HorizontalResolution>

<VerticalResolution>768</VerticalResolution>

</Display>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Home</NetworkLocation>

<ProtectYourPC>1</ProtectYourPC>

<SkipMachineOOBE>true</SkipMachineOOBE>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

<TimeZone>GMT Standard Time</TimeZone>

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<Order>5</Order>

<CommandLine>cmd /c %AppsRoot%\Install\wallpaper.cmd</CommandLine>

<Description>Wallpaper Setup</Description>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<Order>1</Order>

<CommandLine>c:\windows\setup\scripts\first.cmd</CommandLine>

<Description>first boot command file</Description>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<Order>2</Order>

<CommandLine>cmd /c REGEDIT /S %AppsRoot%\Install\SecurityCenterShutup.reg</CommandLine>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<Order>3</Order>

<CommandLine>CMD /C BCDEDIT /SET QUIETBOOT ON</CommandLine>

</SynchronousCommand>

</FirstLogonCommands>

<OEMInformation>

<Logo>c:\windows\system32\oobe\dell_badge.bmp</Logo>

<Manufacturer>Dell</Manufacturer>

</OEMInformation>

</component>

<component name="Microsoft-Windows-International-Core" 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">

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-GB</UILanguage>

<UserLocale>en-GB</UserLocale>

<InputLocale>0809:00000809</InputLocale>

</component>

<component name="Microsoft-Windows-Sidebar" 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">

<Gadget3>%PROGRAMFILES%\windows sidebar\gadgets\RSSFeeds.Gadgett,true</Gadget3>

<Gadget2>%PROGRAMFILES%\windows sidebar\Shared Gadgets\weatherbug.gadget,true</Gadget2>

<Gadget1>%PROGRAMFILES%\windows sidebar\Shared Gadgets\VistaOrbClock.Gadget,true</Gadget1>

<Gadget4>%PROGRAMFILES%\windows sidebar\Shared Gadgets\ukrp_1.3.3.gadget</Gadget4>

<Gadget5>%PROGRAMFILES%\windows sidebar\Shared Gadgets\SYS.gadget</Gadget5>

</component>

</settings>

<settings pass="auditSystem">

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

<AutoLogon>

<Enabled>true</Enabled>

<LogonCount>5</LogonCount>

<Username>Administrator</Username>

</AutoLogon>

<TimeZone>GMT Standard Time</TimeZone>

</component>

</settings>

<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>10</Order>

<Path>cmd /c REGEDIT /S %AppsRoot%\Install\SAVVISTA\NoScan.reg</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>20</Order>

<Path>cmd /c REGEDIT /S %AppsRoot%\Install\DELL.REG</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>76</Order>

<Path>cmd /c REGEDIT /S %AppsRoot%\Install\winrar\winrar.reg</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>300</Order>

<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>60</Order>

<Path>cmd /c %AppsRoot%\Install\vsoConvertXtoDVD2.v2.1.8.193-AnyFile.exe /VERYSILENT /SP-</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>70</Order>

<Path>cmd /c %AppsRoot%\Install\SetupImgBurn_2.3.2.0.exe /S</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>80</Order>

<Path>cmd /c %AppsRoot%\Install\SetupDVDDecrypter_3.5.4.0.exe /S</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>75</Order>

<Path>cmd /c %AppsRoot%\Install\WinRAR-v3.62.exe /s</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>95</Order>

<Path>cmd /c %AppsRoot%\Install\AcrRead\AcroRead.msi /qb</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>15</Order>

<Path>cmd /c %AppsRoot%\Install\wallpaper.cmd</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>1</Order>

<Path>cmd /c %AppsRoot%\Install\jre-6u2-windows-i586-p.exe /s /v/qn</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>2</Order>

<Path>cmd /c REGEDIT /S %AppsRoot%\Install\SecurityCenterShutup.reg</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Order>3</Order>

<Path>CMD /C BCDEDIT /SET QUIETBOOT ON</Path>

</RunSynchronousCommand>

</RunSynchronous>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:d:/vistawork/dvd/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Edited by tonycrew
Link to comment
Share on other sites


Yes I experienced a similar error recently although the wsim would not save & gave me that error.

One thing I can suggest is to backup or delete, rename your ultimate catalogue file located in the Sources dir usually a .cfg extension & let the wsim create a new one then point back to your existing xml ans file.

The above however did not work for me & had to rebuild my entire xml from scratch for the wsim to accept it..I forgot how much time I spent creating it the first time lol.

I don't know if this error is caused by text editors cause I started modifying with metapad & validating within the wsim then a month ago changed to Notepad2 & that problem appeared?? Maybe a coincidence?

Edited by MAVERICKS CHOICE
Link to comment
Share on other sites

Thanks for your reply.. i too have started to re do my xml... oh well it's weired cause i can't even load the one's i have on DVD.. this is my 5th megavista, i created a multiboot with XP and WPI.. hehe it's just under 8 gig and has to go on a duel layer...

Link to comment
Share on other sites

Hello MC & tonycrew!

Do you have integrated updates to your install.wim? If yes do you always update the catalogue after integrating them? If no did you do any other changes like removing or adding packages to install.wim.

So far I was only running in problems like this, if I've added or removed something from install.wim. I'm not sure if it's necessary to rebuild the xml completly. I could imagin it would be enough just to replace the publicKeyToken with the most recent one (of actual catalogue).

But could be, that's just one of these weird WSIM/WAIK bugs.

Regards,

Martin

BTW, I've just recognized that tc's autounattend.xml does have this empty <servicing> tag at the beginning. I remember that MC's was looking the same. I know that removing it, was not fixing the problem. But could be a hint that WSIM is messing up the xml.

Edited by FireGeier
Link to comment
Share on other sites

Another error which may be messing it up is

<Credentials /> in <settings pass="specialize">

usually if you see the blank space its a problem and the fact that the / is on wrong end

EDIT: After fixing the <servicing> and <Credentials error it loads fine for me

Edited by maxXPsoft
Link to comment
Share on other sites

By the way xml is plain text so any good text editor oughta work :)

I use ConText myself since you can open lots of files and search

a good tester for xml is simply Internet Explorer, errors it gives rough idea

Link to comment
Share on other sites

The problem is that after updating some components are added to the wim.

So you will see that there are 2 of some, only difference is the number at the end.

When i choose the higher number i dont get that error anymore after slipstreaming in an already slipstreamed version.

I might be wrong, but altleast it worked.

doubleoo6.th.jpg

Edited by sp00f
Link to comment
Share on other sites

Yep see screenshot
wish you had expanded those entries so we can see whats in there

dang, that throws a wrench in the gears, I don't see it in mine but I haven't added any new updates for awhile.

I'll open WUD and grab everything and see if I see this.

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