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

Let the user choose the Win7 edition ...


  • Please log in to reply
25 replies to this topic

#1
midiboy

midiboy

    Senior Member

  • Member
  • PipPipPipPip
  • 586 posts
Hi Guys,

I am wondering if anyone has a solution for this problem. I am trying to create an unattended DVD installation of Windows7 where the user is able to choose the edition (Home, pro, Ultimate ...) during WinPE phase but let Windows install silently later on meaning no Welcome Wizard etc.

The reason behind this is I want to give the user the chance to choose the edition he has bought a key for.

However this does not seem possible. Either, I specify a product key for the chosen edition in autounattend.xml in the "Microsoft-Windows-Shell-Setup" component during specialize phase or Windows setup will always ask for the key during that phase thereby stopping the unattended setup. Since I cannot know in advance what edition the user will choose I have no chance for a silent installation, right ?

If anyone knows a solution for this problem, please help ...

Thanks,
Alex


How to remove advertisement from MSFN

#2
grabben

grabben

    -Grabben

  • Member
  • PipPipPipPip
  • 601 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Uhm use DISM to integrate key to mounted edition and remove ei.cfg will work.

Or just enter key to unattended file..

#3
arwidmark

arwidmark

    Member

  • Member
  • PipPip
  • 105 posts
  • OS:none specified
  • Country: Country Flag
You should check out the free MDT 2010 Lite Touch deployment solution. www.microsoft.com/deployment... MDT has a bultin funtion for offline media + a wizard that will allow you to select what operating systems to deploy...

I have attached a screenshot of the deployment wizard

Attached File  Wizard.png   104.53KB   55 downloads

Edited by Tripredacus, 03 May 2010 - 09:34 AM.

Regards

Johan Arwidmark
Microsoft MVP - Setup / Deployment

#4
midiboy

midiboy

    Senior Member

  • Member
  • PipPipPipPip
  • 586 posts
Hi guys,

thanks for the quick replies!

@grabben:
I don´t undestand. I cannot integrate any key because I do not know which edition the user will choose and I have no idea which key he bought. Also I cannot integrate all default keys for each edition because there is one autounattend.xml for all editions (one wim has all editions but there is one autounattend.xml for one wim)

@arwidmark:

Thanks. Would this be a wizard that runs before Windows Setup and then chooses a different autounattend.xml depending on the choice the user selects in the wizard ?

Bye,
Alex

#5
cloferba

cloferba

    Member

  • Member
  • PipPip
  • 119 posts

You should check out the free MDT 2010 Lite Touch deployment solution. www.microsoft.com/deployment...


that url doesnt work :no:

i hope to see this thread continuing :thumbup

#6
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi midiboy,
i'm looking to get the same as you.
If I delete the ei.cfg but left the Autounattend.xml, just let me choose an unattended version.
However, if I delete the Autounattend.xml lets me choose the version you want, but not installed as unattended ...

#7
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,032 posts
  • OS:none specified
  • Country: Country Flag
why dont you attach but not paste your XML so we do not have to guess what you have inside it.

It may be possible to skip activation using the XML, but we also need to remove the snip in your XML that is preventing you from being able to choose your image.

I'll probably end up asking you to delete the entire "ImageInstall" section, but I'll need to see your XML first to be sure.

<ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows 7 ULTIMATE</Value>
                        </MetaData>
                    </InstallFrom>
                </OSImage>
            </ImageInstall>

Edited by MrJinje, 03 May 2010 - 01:21 AM.


#8
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator


You should check out the free MDT 2010 Lite Touch deployment solution. www.microsoft.com/deployment...


that url doesnt work :no:

i hope to see this thread continuing :thumbup


I'm not sure what link it was supposed to be, here seems to be a start I found on TechNet:
http://technet.micro...179(WS.10).aspx
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#9
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,250 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag
See these posts:

Deployment of Windows using MDT 2010
Default product keys for Windows (Vista/2008 and Win7/2008R2)
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#10
kai4785

kai4785

    Newbie

  • Member
  • 24 posts
@midiboy
Funny, I accidentally did exactly what you want to do. I wanted a fully automated install, including choosing the version of OS to install. Where I got to first was fully unattended, minus choosing the OS, and adding Key.

Simply remove The windowsPE->ImageInstall->OSImage->InstallFrom component, and the Product Key from your Unattended XML. In both cases, if they are missing, the installer will prompt for the answers. You can leave the "InstallTo" and the "DiskConfiguration" components.

#11
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
This is my autounnatend.xml:

<?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">
- <UserData>
- <ProductKey>
  <Key>PRODUCTKEY</Key> 
  <WillShowUI>OnError</WillShowUI> 
  </ProductKey>
  <Organization>eXPerienciaUE.net</Organization> 
  <FullName>maestrodellaves</FullName> 
  <AcceptEula>true</AcceptEula> 
  </UserData>
- <ImageInstall>
- <OSImage>
- <InstallFrom>
- <MetaData wcm:action="add">
  <Key>/IMAGE/NAME</Key> 
  <Value>Windows 7 ULTIMATE</Value> 
  </MetaData>
  </InstallFrom>
  <InstallToAvailablePartition>false</InstallToAvailablePartition> 
  <WillShowUI>OnError</WillShowUI> 
  </OSImage>
  </ImageInstall>
  </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>
  <HideEULAPage>true</HideEULAPage> 
  <NetworkLocation>Other</NetworkLocation> 
  <ProtectYourPC>2</ProtectYourPC> 
  </OOBE>
  </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">
  <ComputerName>eXPerienciaUE</ComputerName> 
  </component>
- <component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
  <SkipAutoActivation>true</SkipAutoActivation> 
  </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:F:/Users/Carlos/Desktop/DVD/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 
  </unattend>

Edited by Tripredacus, 04 May 2010 - 08:22 AM.
removed product key


#12
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks for your replies, it worked as said kai4785:

Simply remove The windowsPE->ImageInstall->OSImage->InstallFrom component, and the Product Key from your Unattended XML. In both cases, if they are missing, the installer will prompt for the answers. You can leave the "InstallTo" and the "DiskConfiguration" components.


Edited by maestrodellaves, 04 May 2010 - 01:30 AM.


#13
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,032 posts
  • OS:none specified
  • Country: Country Flag

why dont you attach but not paste your XML

You pasted your XML didn't you :no:

Anyways, here is what the OP was asking for (using Maestro's sample), have removed the Product key and installfrom parts. This XML will require each user to choose an image, and it does not specify a key. (it uses the Default Trial keys as in Cluberti's links)

<?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">
- <UserData>

  <Organization>eXPerienciaUE.net</Organization> 
  <FullName>maestrodellaves</FullName> 
  <AcceptEula>true</AcceptEula> 
  </UserData>
- <ImageInstall>
- <OSImage>

  <InstallToAvailablePartition>false</InstallToAvailablePartition> 
  <WillShowUI>OnError</WillShowUI> 
  </OSImage>
  </ImageInstall>
  </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>
  <HideEULAPage>true</HideEULAPage> 
  <NetworkLocation>Other</NetworkLocation> 
  <ProtectYourPC>2</ProtectYourPC> 
  </OOBE>
  </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">
  <ComputerName>eXPerienciaUE</ComputerName> 
  </component>
- <component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
  <SkipAutoActivation>true</SkipAutoActivation> 
  </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:F:/Users/Carlos/Desktop/DVD/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 
  </unattend>

I left in the skipautoactivation because it slows down the installation. This way your 'users' have 30 days to enter their 'paid for' product key. :whistle: If you don't like it, delete this line "<SkipAutoActivation>true</SkipAutoActivation>" and it will pause the installation process until your 'users' enter a working key.

Here are the exact parts I deleted, hopefully the OP can duplicate the edit in his XML.

- <ProductKey>
  <Key>PRODUCTKEY</Key> 
  <WillShowUI>onerror</WillShowUI> 
  </ProductKey>


- <InstallFrom>
- <MetaData wcm:action="add">
  <Key>/IMAGE/NAME</Key> 
  <Value>Windows 7 ULTIMATE</Value> 
  </MetaData>
  </InstallFrom>

Edited by Tripredacus, 04 May 2010 - 08:23 AM.


#14
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts

This is my autounnatend.xml:

<?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">
- <UserData>
- <ProductKey>
  <Key>PRODUCTKEY</Key> 
  <WillShowUI>OnError</WillShowUI> 
  </ProductKey>
  <Organization>eXPerienciaUE.net</Organization> 
  <FullName>maestrodellaves</FullName> 
  <AcceptEula>true</AcceptEula> 
  </UserData>
- <ImageInstall>
- <OSImage>
- <InstallFrom>
- <MetaData wcm:action="add">
  <Key>/IMAGE/NAME</Key> 
  <Value>Windows 7 ULTIMATE</Value> 
  </MetaData>
  </InstallFrom>
  <InstallToAvailablePartition>false</InstallToAvailablePartition> 
  <WillShowUI>OnError</WillShowUI> 
  </OSImage>
  </ImageInstall>
  </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>
  <HideEULAPage>true</HideEULAPage> 
  <NetworkLocation>Other</NetworkLocation> 
  <ProtectYourPC>2</ProtectYourPC> 
  </OOBE>
  </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">
  <ComputerName>eXPerienciaUE</ComputerName> 
  </component>
- <component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
  <SkipAutoActivation>true</SkipAutoActivation> 
  </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:F:/Users/Carlos/Desktop/DVD/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 
  </unattend>


@ maestrodellaves, remove your serial number from xml.

Edited by Tripredacus, 04 May 2010 - 08:23 AM.


#15
grabben

grabben

    -Grabben

  • Member
  • PipPipPipPip
  • 601 posts
  • OS:Windows 7 x64
  • Country: Country Flag
[quote name='urie' date='04 May 2010 - 03:30 PM' timestamp='1272979837' post='921779']
[quote name='maestrodellaves' date='04 May 2010 - 08:14 AM' timestamp='1272957263' post='921742']
This is my autounnatend.xml:


@ maestrodellaves, remove your serial number from xml.
[/quote]


If your not admin or so maybe you should remove it yourself from your quote ? :P




#16
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator


This is my autounnatend.xml:


@ maestrodellaves, remove your serial number from xml.



If your not admin or so maybe you should remove it yourself from your quote ? :P


I removed the product key from everyone's posts. They did not match any of the keys in Cluberti's links. In the future, if you see someone has mistakenly posted their product key, instead of making a (searchable) post like "remove your product key", use the Report button instead.
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#17
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Sorry will not happen again ...
Everything went well except that now runs all the time on the screen Finishing installation:

Screenshot

Edited by maestrodellaves, 04 May 2010 - 08:43 AM.


#18
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator

Sorry will not happen again ...
Everything went well except that now runs all the time on the screen Finishing installation:

Screenshot


If you can access the drive your setup is run on, you can see in Panther what step it stopped at. Actually I hope Panther saves your files if you reset it. Things like WinPE or NTFSDOS or NTFS4DOS can get you access to the log files. Since you made a screenshot, I imagine you used a VM.
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#19
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
The ruling was in a badly written command in the setupcomplete.cmd.
Everything is solved.
Thank you very much for everything, friends.

Edited by maestrodellaves, 05 May 2010 - 06:48 AM.


#20
midiboy

midiboy

    Senior Member

  • Member
  • PipPipPipPip
  • 586 posts
Hi Guys,

sorry, I still don´t get it ...
This is my unattend.xml:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <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">
            <DiskConfiguration>
                <WillShowUI>Always</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallToAvailablePartition>true</InstallToAvailablePartition>
                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-UnattendedJoin" 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">
            <Identification>
                <UnsecureJoin>true</UnsecureJoin>
                <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup>
            </Identification>
        </component>
        <component name="Security-Malware-Windows-Defender" 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">
            <DisableAntiSpyware>true</DisableAntiSpyware>
        </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">
            <ComputerName>*</ComputerName>
            <TimeZone>W. Europe Standard Time</TimeZone>
            <RegisteredOrganization>None</RegisteredOrganization>
            <RegisteredOwner>Privat</RegisteredOwner>
        </component>
        <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 REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OOBE" /V "UnattendCreatedUser" /T "REG_DWORD" /D "1"</Path>
                    <Description>Prevent Usercreation Dialog</Description>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <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>0000043a</InputLocale>
            <SystemLocale>de-AT</SystemLocale>
            <UserLocale>de-AT</UserLocale>
            <UILanguage>de-DE</UILanguage>
            <UILanguageFallback>de-DE</UILanguageFallback>
        </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>0000043a</InputLocale>
            <SystemLocale>de-AT</SystemLocale>
            <UILanguage>de-DE</UILanguage>
            <UserLocale>de-AT</UserLocale>
            <UILanguageFallback>de-DE</UILanguageFallback>
        </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">
            <AutoLogon>
                <Enabled>true</Enabled>
                <LogonCount>4</LogonCount>
                <Username>Administrator</Username>
                <Password>
                    <Value>VALUE</Value>
                    <PlainText>false</PlainText>
                </Password>
            </AutoLogon>
            <Display>
                <ColorDepth>32</ColorDepth>
                <DPI>96</DPI>
                <HorizontalResolution>1024</HorizontalResolution>
                <RefreshRate>60</RefreshRate>
                <VerticalResolution>768</VerticalResolution>
            </Display>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <TimeZone>W. Europe Standard Time</TimeZone>
            <RegisteredOrganization>None</RegisteredOrganization>
            <RegisteredOwner>Privat</RegisteredOwner>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>VALUE</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
            </UserAccounts>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim://ultimate_source/x64/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Now I have tried it with and without this part:

<component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
  <SkipAutoActivation>true</SkipAutoActivation> 
  </component>

I can choose the Windows edition during WinPE phase but I will always get a popup at the end of the windows installation asking for a product key. This popup will always stop the unattended installation.
How do I get rid of this popup ? (see picture)

Windows should just install the edition the user chooses without the need to enter a key at the end of the setup process.

Any ideas ?

Bye,
Alex

Attached Files


Edited by midiboy, 05 May 2010 - 12:52 PM.


#21
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts
It is not possible you can add windows 7 default keys as cluberti, pointed out on earlier post that will stop it asking for a key but you don't know if user will select that version of windows to install.

#22
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,032 posts
  • OS:none specified
  • Country: Country Flag
Oh no!, I don't what version they installed. My guess is it will be one of these five versions, so here is a script that installs all five keys.

Try running this from SetupComplete.cmd, see if that don't fix it.

REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" | FINDSTR /I "Starter"
IF NOT ERRORLEVEL 1 SET PIDKEY=7Q28W-FT9PC-CMMYT-WHMY2-89M6G
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" | FINDSTR /I "HomeBasic"
IF NOT ERRORLEVEL 1 SET PIDKEY=YGFVB-QTFXQ-3H233-PTWTJ-YRYRV
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" | FINDSTR /I "HomePremium"
IF NOT ERRORLEVEL 1 SET PIDKEY=RHPQ2-RMFJH-74XYM-BH4JX-XM76F
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" | FINDSTR /I "Professional"
IF NOT ERRORLEVEL 1 SET PIDKEY=HYF8J-CVRMY-CM74G-RPHKF-PW487
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" | FINDSTR /I "Ultimate"
IF NOT ERRORLEVEL 1 SET PIDKEY=D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV

If this doesn't work, next step is to use DISM Set-ProductKey on each image in your WIM, hard-coding the default key into the images.

#23
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts
@ MrJinje, i knew about the scripts from MDL but i still don't get the point user will still need to enter their own key to activate eventually same as they need to select what version so it will never be totally unattended install.

#24
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,032 posts
  • OS:none specified
  • Country: Country Flag

@ MrJinje, i knew about the scripts from MDL but i still don't get the point user will still need to enter their own key to activate eventually same as they need to select what version so it will never be totally unattended install.

I'm sure he has his reasons, likely it is about saving time. I can definitely tell that his installation is freezing halfway through and wasting his end-users time.

Instead of booting directly to the desktop, his users are getting a pop-up to enter their product key, then being forced to wait another 4-5 minutes while the installation completes. It could be even longer if he is installing Office or other apps during first login.
_______________________________________________________

@OP, Yet another method might be to run this VBS script using your XML. With a little editing you can simply kill the annoying window. Call this VBS 'asynchronously' from your "oobeSystem" pass in your autounattend.xml

Set WshShell = Wscript.CreateObject("WScript.Shell")
Do While Not Wshshell.AppActivate ("TitleOfPopUpWindowGoesHere")
Wscript.sleep 1000
Loop
Wshshell.AppActivate "TitleOfPopUpWindowGoesHere"
Wshshell.SendKeys "%{F4}"

Original script and background info here..

Edited by MrJinje, 06 May 2010 - 07:21 AM.


#25
maestrodellaves

maestrodellaves

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x64
  • Country: Country Flag
midiboy, this is my autounattend.xml <OOBE>:

<OOBE>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Other</NetworkLocation>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>false</SkipUserOOBE>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 
      </OOBE>

In your xml, paste <SkipMachineOOBE>true</SkipMachineOOBE> and not erase <SkipAutoActivation>true</SkipAutoActivation> :thumbup

My complete xml:

<?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="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>es-ES</UILanguage>
      </SetupUILanguage>
      <InputLocale>040a:0000040a</InputLocale>
      <UserLocale>es-AR</UserLocale>
      <UILanguage>es-ES</UILanguage>
      <SystemLocale>es-AR</SystemLocale>
    </component>
    <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">
      <UserData>
        <Organization>x7aUe2010o1x64</Organization>
        <FullName>x7aUe2010o1x64</FullName>
        <AcceptEula>true</AcceptEula>
      </UserData>
      <ImageInstall>
        <OSImage>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
    </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">
      <AutoLogon>
        <Password>
          <Value>
          </Value>
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>1</LogonCount>
        <Username>Administrator</Username>
      </AutoLogon>
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Other</NetworkLocation>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>false</SkipUserOOBE>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 
      </OOBE>
      <UserAccounts>
        <AdministratorPassword>
          <Value />
        </AdministratorPassword>
      </UserAccounts>
    </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">
      <ComputerName>x7aUe2010o1x64</ComputerName>
    </component>
    <component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
      <SkipAutoActivation>true</SkipAutoActivation>
    </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:F:/Users/Carlos/Desktop/DVD/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by maestrodellaves, 08 May 2010 - 12:05 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN