Jump to content

Autounattend.xml


Recommended Posts

I have finally got my Autounattend.xml working, so it does not ask

for language, product key etc but I have found that if I include this

section like this...

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

</OSImage>

</ImageInstall>

It will not ask which disk and partition I want to install to, this is correct because the disk and partition is specified there with <DiskID>0</DiskID> and <PartitionID>1</PartitionID>

However, I want to just manually choose this one thing, lets say I swap my disks

around, buy a new HDD making my old drive the 2nd disk etc, so I always want

to manually choose where to install to.

So I made the Autounattend.xml like this:

<ImageInstall>

<OSImage>

</OSImage>

</ImageInstall>

That has the whole "InstallTo" section removed (4 lines) and it gives an error

when I try this.

I also tried the following...

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID></DiskID>

<PartitionID></PartitionID>

</InstallTo>

</OSImage>

</ImageInstall>

This also gives an error!

I do not think I have tried this yet.........

<ImageInstall>

<OSImage>

<InstallTo>

</InstallTo>

</OSImage>

</ImageInstall>

That leaves in the "InstallTo" section but I doubt this will work,

leaving things blank like this is what was causing errors before,

things seem to either need to be there and filled in, or the tags

need to be taken completely out. This is also covered in the

WAIK chm, saying do not leave empty tags.

I wonder if it might work with stars like this:

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>*</DiskID>

<PartitionID>*</PartitionID>

</InstallTo>

</OSImage>

</ImageInstall>

Sheesh, I only want it to ask me this ONE thing!

Edited by LeveL
Link to comment
Share on other sites


NOTE:

If you don't want to set an option in Autounattend.xml, look that the setting is removed from AutoUnattend.xml. AutoUnattend.xml don't like empty entries.

I guess that you don't have used WSIM to make your settings. I highly recommend to use it, cause it helps to avoid a lot of syntax errors and it will remove empty entries automatically.

So all you need to set should be the entry Urie posted allready.

Martin

Link to comment
Share on other sites

:) don't really need the WAIK for syntax, just open the file with IE and it will definitely tell you if there are error's, but of course it won't remove unneeded or tell you its a Default value and not needed. Sim won't tell you default either, rely on the unattend.chm cause its all we have right now

is it worked ? if yes ..could you post your xml file here..??

Thanx

Shan

urie and I have been working on this awhile

I'm quoting unattend.chm and this does work here

For unattended installations, you must specify either InstallTo or InstallToAvailablePartition.

So going to my 2 partition for a dual boot with XP

<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
<WillShowUI>Always</WillShowUI>
</OSImage>
</ImageInstall>

Edited by maxXPsoft
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...