Using scripted OS Install when the Media has multiple version of window to select from
search cancel

Using scripted OS Install when the Media has multiple version of window to select from

book

Article ID: 280771

calendar_today

Updated On: 01-16-2025

Products

Ghost Solution Suite Deployment Solution

Issue/Introduction

Windows Media has multiple versions of Windows to select from and needs an automated method for the unattend file to select the version to install.

Cause

Multiversion of Windows installation to select from when using Scripted OS Install

Resolution

If the media contains multiple version to select from use the unattend file to direct which version to install

 

<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
        <ImageInstall>

             <OSImage>

                   <installFrom>

                         <MetaData wcm:action="add">

                               <Key>/image/index</Key>

                                   <Value>3</value>

                         </MetaData>

                     </InstallFrom>

                     <installTo>

                            <DiskID>0</DiskID>

                            <PartitionID>2</PartitionID>

                      </InstallTo>

                </OSImage>

          </ImageInstall>

          <UserData>

               <ProductKey>

                    <Key>%PRODUCT_KEY%</Key>

              </ProductKey>

              <AcceptEula>true</AcceptEula>         

</UserData>

</component>

 

Explanation. If the media is presented to choose a version of Windows to install from a drop-down list. The hidden value of the OSes to select starts a '1' and continues down the list from there with the first version starting at '1'. then '2', etc

 
using these values,  add the value for the Windows 10 Enterprise
 

<Key>/image/index</Key>

       <Value>3</value>   3 being the value of 'Windows 10 Enterprise'

 

Now for  the partition to install windows would be at

<installTo>

     <DiskID>0</DiskID>  This is the first hard drive listed in diskpart

                            <PartitionID>2</PartitionID>  This is primary partition to install windows  ( EFI partition being Partition 1 )

</InstallTo>