ShadowHunter Posted August 8, 2013 Posted August 8, 2013 I'm trying to automate the installation of Windows 8.1 Pro Preview. I've managed to get some of it done. The one part I'm stuck on is having to pick an operating system. The prompt is:"Select the Operating System you want to install.Windows 8.1 Pro Preview x64 [DATE]"Does anyone know how to automatically pick it? I've tried<ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>Always</WillShowUI> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/INDEX</Key> <Value>1</Value> </MetaData> </InstallFrom> </OSImage> </ImageInstall>I've also tried /IMAGE/NAME and the value being "Windows 8.1 Pro Preview"Any help would be greatly appreciated!
maxXPsoft Posted August 8, 2013 Posted August 8, 2013 remove the <WillShowUI>Always</WillShowUI> or change to <WillShowUI>OnError</WillShowUI>and use the /IMAGE/INDEX
ShadowHunter Posted August 8, 2013 Author Posted August 8, 2013 I've tried that and it doesn't work. I just goes into Select an operating system window. The whole code is:<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" 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> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Label>OS_Install</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>Always</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>Always</WillShowUI> <InstallFrom> <MetaData wcm:action="add"> <Value>1</Value> <Key>/IMAGE/INDEX</Key> </MetaData> </InstallFrom> </OSImage> </ImageInstall> <UserData> <ProductKey> <WillShowUI>Always</WillShowUI> <Key>[KEY]</Key> </ProductKey> <AcceptEula>true</AcceptEula> </UserData> </component> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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-us</UILanguage> <WillShowUI>Always</WillShowUI> </SetupUILanguage> <InputLocale>en-us</InputLocale> <SystemLocale>en-us</SystemLocale> <UserLocale>en-us</UserLocale> <UILanguage>en-us</UILanguage> <UILanguageFallback>en-us</UILanguageFallback> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OEMInformation> <HelpCustomized>false</HelpCustomized> </OEMInformation> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OOBE> <ProtectYourPC>1</ProtectYourPC> <NetworkLocation>Work</NetworkLocation> </OOBE> <AutoLogon> <Enabled>true</Enabled> <LogonCount>5</LogonCount> <Username>Admin</Username> </AutoLogon> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Description>Test Account</Description> <DisplayName>Test</DisplayName> <Group>Administrators</Group> <Name>Test</Name> </LocalAccount> </LocalAccounts> </UserAccounts> </component> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" 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> <cpi:offlineImage cpi:source="wim:c:/users/Admin/downloads/install.wim#Windows 8 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend>
ShadowHunter Posted August 8, 2013 Author Posted August 8, 2013 It seems my WSIM is using a windows 8 pro not windows 8.1, but the install.wim I'm using has Windows 8.1 and I'm using a Windows 8.1 OS to run WSIM. How is the WSIM getting Windows 8 Pro? Could this be the cause of the problem?
jaclaz Posted August 8, 2013 Posted August 8, 2013 Shouldn't order be relevant?I.e.:http://technet.microsoft.com/en-us/library/ff716384.aspx<InstallFrom> <MetaData wcm:action="add"> <Value>1</Value> <Key>/IMAGE/INDEX</Key> </MetaData></InstallFrom>Shouldn't actually be:<InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/INDEX</Key> <Value>1</Value> </MetaData></InstallFrom>jaclaz
ShadowHunter Posted August 8, 2013 Author Posted August 8, 2013 Tried it both ways to no avail.This is driving me crazy.
MAVERICKS CHOICE Posted August 8, 2013 Posted August 8, 2013 Does your install.wim have only one edition? eg image 1 "Windows 8.1 Pro Preview"If it has more than one you can use Dism to export to a single wim.
Tripredacus Posted August 9, 2013 Posted August 9, 2013 Shouldn't order be relevant?It isn't because it is XML. It is not read on the fly and is loaded into the parser when the file is first detected and loaded into memory. So the order of elements really has no bearing on the file, only that both of those objects are child objects of MetaData. The usual conformity you see in XML is because of human nature, or because the XML is written by some automatic means. And even so, WSIM is kinda "dumb" in this respect and you can build 2 XML files with it, using the exact same settings and get each file having the objects in different orders!More on the subject, basically saying that it is in the "design" that objects should be in some kind of order, but (as IBM notes) no parsers seem to actually care about the order unless a schema is specified. And I think that schemas are primarily used (when ordering is important) for applications that are unforgiving and need a specific order for things. This could be the case where a legacy program adds XML ability where it didn't have it originally.http://www.ibm.com/developerworks/xml/library/x-eleord/index.html
maxXPsoft Posted August 9, 2013 Posted August 9, 2013 (edited) Ignore that line it is not used during install <cpi:offlineImageChange all the <WillShowUI> to <WillShowUI>OnError</WillShowUI>you also need a language selection in <settings pass="windowsPE"><component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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-US</UILanguage> </SetupUILanguage> <InputLocale>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> </component> Edited August 9, 2013 by maxXPsoft
DosProbie Posted August 12, 2013 Posted August 12, 2013 I was having same issue until I changed the <Value> to this, Now it bypasses the setup screen to choose OS..DP <!--SELECT OS--> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/NAME</Key> <Value>Windows 8.1 Pro</Value> </MetaData> </InstallFrom> </OSImage> </ImageInstall><!--END--> 1
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