MSFN Forum: Vista unattended Guide - MSFN Forum

Jump to content


  • 15 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Vista unattended Guide A little Guide for you Rate Topic: -----

#41 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 10 April 2007 - 04:13 AM

Hello shampoo!

First of all the InputLocale Value for Dutch should look like this, but this has nothing to do with you Problem:

<InputLocale>0413:00000413</InputLocale>



Your problem is caused by the following section and it's not looking like it supposed to:

<ImageInstall>
   <OSImage>
	   <InstallFrom>
		   <MetaData wcm:action="add">
				 <Value>Windows Vista Ultimate</Value> 
				 <Key>Windows Vista Business</Key> 
		   </MetaData>
		   <Path>D:\VISTADVD\sources\install.wim</Path> 
		   <MetaData wcm:action="add">
				 <Value>Windows Home Premium</Value> 
				 <Key>1</Key> 
		   </MetaData>
	   </InstallFrom>
	   <InstallToAvailablePartition>false</InstallToAvailablePartition> 
	   <WillShowUI>OnError</WillShowUI> 
  </OSImage>
</ImageInstall>


1. Problem:
You can't use two MetaData Properties, just ONE per xml at the same time!

2. Problem:
Key and Value setting do not correspond the wright way in your xml!

The ImageInstall section should look like this if you want to install ULTIMATE:

<ImageInstall>
   <OSImage>
	   <InstallFrom>
		   <Path>install.wim</Path> 
		   <MetaData wcm:action="add">
				 <Key>/IMAGE/NAME</Key> 
				 <Value>Windows Vista ULTIMATE</Value> 
		   </MetaData>
	   </InstallFrom>
	   <InstallToAvailablePartition>false</InstallToAvailablePartition> 
	   <WillShowUI>OnError</WillShowUI> 
  </OSImage>
</ImageInstall>



OR it should look like this for BUSINESS:

<ImageInstall>
   <OSImage>
	   <InstallFrom>
		   <Path>install.wim</Path> 
		   <MetaData wcm:action="add">
				 <Key>/IMAGE/NAME</Key> 
				 <Value>Windows Vista BUSINESS</Value> 
		   </MetaData>
	   </InstallFrom>
	   <InstallToAvailablePartition>false</InstallToAvailablePartition> 
	   <WillShowUI>OnError</WillShowUI> 
  </OSImage>
</ImageInstall>


OR it should look like this for HOMEPREMIUM:

<ImageInstall>
   <OSImage>
	   <InstallFrom>
		   <Path>install.wim</Path> 
		   <MetaData wcm:action="add">
				 <Key>/IMAGE/NAME</Key> 
				 <Value>Windows Vista HOMEPREMIUM</Value> 
		   </MetaData>
	   </InstallFrom>
	   <InstallToAvailablePartition>false</InstallToAvailablePartition> 
	   <WillShowUI>OnError</WillShowUI> 
  </OSImage>
</ImageInstall>


After choosing one of these alternates, depending on the Product Key you have, it should work!

Regards,
Martin


#42 User is offline   shampoo 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 05-April 07

Posted 10 April 2007 - 06:59 AM

Martin,

thx for ur help

i looked @ your guide and did it again and now it works but its takes like 20 min or so.
how many minutes should de installation be?

i still have some questions:

sysprep doesnt pop up, do i need change something in xml?
and
i want to add company logo, i need to put a map with logo on the map vista works right?

Many thanx

niels

This post has been edited by shampoo: 10 April 2007 - 07:17 AM


#43 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 10 April 2007 - 06:00 PM

View Postshampoo, on Apr 10 2007, 02:59 PM, said:

...
it works but its takes like 20 min or so.
how many minutes should de installation be?



That is normal. It's taking longer on my test system, but that's an old one.

Quote

...
sysprep doesnt pop up, do i need change something in xml?
...


Sysprep is located in %Windir%\system32\sysprep. If you want to generalize the system for example, use the following command (Insert \ Synchronous Command):

%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot


If you need a company logo during oobe, check out here on Microsoft.

Regards,
Martin

#44 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 10 April 2007 - 06:06 PM

Guide Update:

I've worked over Applications, Regtweaks and Copy Profile section of the guide. Everything is in one xml now.

Applications are installed in auditMode now, cause

- it provides a status window for application install (oobeSystem doesn't)
- it supports reboots between installs

Note:
In audit mode you need to call the installer using cmd /c. Otherwise it will not recognice the %AppsRoot% variable.

Regards,
Martin

This post has been edited by FireGeier: 10 April 2007 - 06:07 PM


#45 User is offline   Phorze 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 19-August 06

Posted 15 April 2007 - 02:14 PM

Like

"cmd /c %AppsRoot%\Switchless\Office\Office.exe" ?

#46 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 15 April 2007 - 02:36 PM

Hello Phorze!

Quote

Like

"cmd /c %AppsRoot%\Switchless\Office\Office.exe" ?


Yes, exactly. Look here for more details.

Regards,
Martin

#47 User is offline   Phorze 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 19-August 06

Posted 16 April 2007 - 05:28 AM

Thanks Firegeier , great guide ;)

Another question, is it possible to get feedback if something goes wrong? Because somehow my application installs don't get installed at all, and i can't know for sure what went wrong.

#48 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 16 April 2007 - 05:45 AM

Hello Phorze!

AFAIK for the moment, there is no special log for application installs! But if I have probelms with my unattend I start with setupact.log and setuperr.log located inside %Windir%\Panther\Unattend GC.

In most cases I've got a hint there why something went wrong.

Regards,
Martin

#49 User is offline   Phorze 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 19-August 06

Posted 16 April 2007 - 02:46 PM

Somehow i just can't get it to work, i have slimmed down Autounattend to find the problem but no avail.

Notes:
the Administrator account is made , but on oobe i get the standard dialog to make an account. If i use administrator as accountname, it gives an error saying the name is allready taken. When i pick user named "test" and log in, there is no other account than test , and test is the administrator account (what happened to "administrator"? :P)
None of the applications are installed, no errors during setup.
According to the SET command in cmd, no APPSROOT var is set.
By the looks of it just skipped the whole audit section.
All tests are done in VMware 5.3

Autounattend:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<settings pass="specialize">
		<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Order>1</Order>
					<Path>cmd /c FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>2</Order>
					<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>
	</settings>
	
	<settings pass="auditUser">
		<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Order>1</Order>
					<Path>cmd /c %AppsRoot%\Switchless\Office\Office.exe</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>2</Order>
					<Path>cmd /c %AppsRoot%\Switchless\Firefox\Firefox Setup 2.0.0.3.exe /S</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>4</Order>
					<Path>cmd /c %AppsRoot%\Switchless\MPC\MPC_addon.exe</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>3</Order>
					<Path>cmd /c %AppsRoot%\Switchless\VCP\vcpack.exe</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>5</Order>
					<Path>cmd /c %AppsRoot%\Switchless\Nero\Nero-7.7.5.1_dutch_lite.exe /VERYSILENT /USER=&quot;Roos&quot; /COMPANY=&quot;None&quot; /SERIAL=&quot;=removed=&quot;</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Order>6</Order>
					<Path>cmd /c %WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>
	</settings>
<settings pass="oobeSystem">
		<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<AutoLogon>
				<Password>
					<Value>encryptedpassword</Value>
					<PlainText>false</PlainText>
				</Password>
				<Enabled>true</Enabled>
				<Username>Administrator</Username>
				<LogonCount>5</LogonCount>
			</AutoLogon>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="wim:f:/vistawork/dvd/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


setupact.log:
removed, see attachment (was a bit long) :rolleyes:


setuperr.log was empty.

Attached File(s)


This post has been edited by Phorze: 16 April 2007 - 02:56 PM


#50 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 16 April 2007 - 05:24 PM

Hello Phorze!

Problem 1: Applications are not installed
I've just recognized that I haven't add the AutoLogon in auditSystem mode to the guide. So this was my mistake. Sorry for that. I've updated it now. So please check for the change:

You need to add Windows-Shell-Setup \ AutoLogon component to auditSystem pass. Than use Administrator as Name and set LogonCount to 5 or may be more if you need some reboots.


Problem 2: Prompted to create user account
You don't have the following part from basic Autounattend.xml inside your xml:

			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Home</NetworkLocation>
				<ProtectYourPC>2</ProtectYourPC>
				<SkipMachineOOBE>true</SkipMachineOOBE>
				<SkipUserOOBE>true</SkipUserOOBE>
			</OOBE>


Note:
It's not recommended to use <SkipMachineOOBE> set to true, so please check out the Copy Profile section, if you want to create your own accounts and find out how to by pass welcome screen without using <SkipMachineOOBE>.

Regards,
Martin

#51 User is offline   extrasoft 

  • Group: Members
  • Posts: 2
  • Joined: 28-April 06

Posted 17 April 2007 - 07:55 AM

Hi,

I have the same problem as Shampoo ( can't install windows on the selected location , Error 0x80300001), I've tried another harddrive, another computer, tried all the suggestions in this post , rebuild the autounattend.xml a few times, but the problem remains!
Here's m XML file:

 
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" 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>nl-NL</UILanguage>
            </SetupUILanguage>
            <InputLocale>0413:00000413</InputLocale>
            <SystemLocale>nl-NL</SystemLocale>
            <UILanguage>nl-NL</UILanguage>
            <UserLocale>nl-NL</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Display>
                <ColorDepth>32</ColorDepth>
                <HorizontalResolution>1024</HorizontalResolution>
                <VerticalResolution>768</VerticalResolution>
            </Display>
            <UserData>
                <ProductKey>
                    <WillShowUI>OnError</WillShowUI>
                    <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>Extrasoft</FullName>
                <Organization>Extrasoft cvba</Organization>
            </UserData>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows Vista HOMEPREMIUM</Value>
                        </MetaData>
                        <Path>install.wim</Path>
                    </InstallFrom>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>0413:00000413</InputLocale>
            <SystemLocale>nl-NL</SystemLocale>
            <UILanguage>nl-NL</UILanguage>
            <UserLocale>nl-NL</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Display>
                <ColorDepth>32</ColorDepth>
                <HorizontalResolution>1024</HorizontalResolution>
                <VerticalResolution>768</VerticalResolution>
            </Display>
            <AutoLogon>
                <Enabled>true</Enabled>
                <LogonCount>2</LogonCount>
                <Username>Administrator</Username>
            </AutoLogon>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <TimeZone>Romance Standard Time</TimeZone>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:d:/vistawork/dvd/sources/install.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
 


Thanks.

BTW, I've tried the "Windows Vista Deployment Step by Step guide" from Microsoft and that worked like it should.

#52 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 17 April 2007 - 09:07 AM

Hello extrasoft!

Please try to remove the following section from your Autounattend.xml:

<Path>install.wim</Path>


Regards,
Martin

#53 User is online   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,750
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 April 2007 - 09:25 AM

Quote

If i use administrator as accountname, it gives an error saying the name is allready taken. When i pick user named "test" and log in, there is no other account than test , and test is the administrator account (what happened to "administrator"?

You cannot use Administrator for a User name, its a hidden account that can be enabled using <AutoLogon> as FireGeier suggested or here http://www.msfn.org/...showtopic=84696. The other Admins are just that but not as powerfull as the Hidden Admin account

#54 User is offline   extrasoft 

  • Group: Members
  • Posts: 2
  • Joined: 28-April 06

Posted 17 April 2007 - 10:06 AM

@ FireGeier,

removing the path section from the xml file works!

(I had tried to leave the value "path" blank from within WSIM, but that didn't work)

 
<ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows Vista HomePremium</Value>
                        </MetaData>
                        <Path></Path>
                    </InstallFrom>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                    <WillShowUI>OnError</WillShowUI> 



Strange, but it works perfectly like u suggested, thanks alot!

This post has been edited by extrasoft: 17 April 2007 - 10:11 AM


#55 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 17 April 2007 - 11:38 AM

View Postextrasoft, on Apr 17 2007, 05:06 PM, said:

@ FireGeier,

removing the path section from the xml file works!

(I had tried to leave the value "path" blank from within WSIM, but that didn't work)

 
<ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows Vista HomePremium</Value>
                        </MetaData>
                        <Path></Path>
                    </InstallFrom>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                    <WillShowUI>OnError</WillShowUI> 



Strange, but it works perfectly like u suggested, thanks alot!



remove
<Path></Path>
from .xml file vista doesn't like empty entries that may help

#56 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 17 April 2007 - 12:47 PM

View Postextrasoft, on Apr 17 2007, 06:06 PM, said:

@ FireGeier,

removing the path section from the xml file works!
...

Strange, but it works perfectly like u suggested, thanks alot!


Hello extrasoft!

Thanks for the feedback. Like urie said, Setup does not like empty tags inside xml. But what's realy strange is, that for some it's working with the path entry and for others it is not. :blink:

I think I will change the guide than, and remove the path section or add a note.

Thanks,
Martin

#57 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 20 April 2007 - 08:12 PM

GUIDE UPDATE:

Now available:

HowTo: Partitioning

and

Partitioning XML snippets


Regards,
Martin

#58 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 April 2007 - 11:08 PM

@Martin

You are very good indeed in explaining this in your tutorials, much easier to understand than MS. I have infact carried out many of what you have explained previously, mostly muddled through it trial & error. You have taken that out of it for most now.

Excellent work.

#59 User is online   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,750
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 April 2007 - 05:46 AM

FireGeier
Kudos man it looks really awesome with the pics you got. Should be easy enough to understand for anyone.
Can anyone say Sticky, this covers it all nearly.

#60 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 21 April 2007 - 08:10 AM

Thanks a lot folks! :blushing:

Good to hear, that my free time seems not to be wasted than! :thumbup

Thanks again!

Regards,
Martin

Share this topic:


  • 15 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy