Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Windows 8.1 Unattended Install Choose OS


  • Please log in to reply
9 replies to this topic

#1
ShadowHunter

ShadowHunter
  • Member
  • 4 posts
  • OS:Windows 8 x64
  • Country: Country Flag

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!




How to remove advertisement from MSFN

#2
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,880 posts
  • OS:Windows 7 x64
  • Country: Country Flag

remove the <WillShowUI>Always</WillShowUI> or change to <WillShowUI>OnError</WillShowUI>

and use the /IMAGE/INDEX


Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#3
ShadowHunter

ShadowHunter
  • Member
  • 4 posts
  • OS:Windows 8 x64
  • Country: Country Flag

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>



#4
ShadowHunter

ShadowHunter
  • Member
  • 4 posts
  • OS:Windows 8 x64
  • Country: Country Flag

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?



#5
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,018 posts
  • OS:none specified
  • Country: Country Flag

 Shouldn't order be relevant?

I.e.:

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

:unsure:

 

jaclaz



#6
ShadowHunter

ShadowHunter
  • Member
  • 4 posts
  • OS:Windows 8 x64
  • Country: Country Flag

Tried it both ways to no avail.

 

This is driving me crazy.



#7
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,760 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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.



#8
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,693 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

 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/d...eord/index.html


MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#9
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,880 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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, 09 August 2013 - 11:54 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#10
DosProbie

DosProbie

    Senior Member

  • MSFN Sponsor
  • 683 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN