Jump to content

Recommended Posts

Posted

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!


Posted

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

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?

Posted

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

Posted (edited)

Ignore that line it is not used during install <cpi:offlineImage

Change 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 by maxXPsoft
Posted

I was having same issue until I changed the <Value> to this, Now it bypasses the setup screen to choose OS..DP :yes:

<!--SELECT OS-->     <ImageInstall>       <OSImage>     <InstallFrom>       <MetaData wcm:action="add">       <Key>/IMAGE/NAME</Key>       <Value>Windows 8.1 Pro</Value>        </MetaData>     </InstallFrom>        </OSImage>     </ImageInstall><!--END-->

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