joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Windows 8 Confirm Popup on Install [SOLVED] #156

Closed Skarlso closed 9 years ago

Skarlso commented 9 years ago

Hey Guys.

Upon windows 8 install, I noticed that before the setup, there is a frigging pop which waits for you to click on Next to continue. Everything after that works excellent.

Does anyone have any idea how to avoid that frigging pop-up? This is before anything start. Just a windows which says => you are about to install... bla. Like I have to be told that?? Damn it. :)

Anyhow. Any ideas?

Thank you!! Gergely.

EDIT:

Got the bastard. It's a "Select The operating system you would like to install" dialogue which is not escaped / disabled in the answer file.

http://misheska.com/blog/2013/07/27/windows-8-automated-install-settings/

Skarlso commented 9 years ago

Fixed it.

Needed to amend the answer file because my operating system was named differently.

This is I had to edit, in case somebody is bumping into this as well:

                <InstallFrom>
                    <MetaData wcm:action="add">
                        <Key>/IMAGE/NAME</Key>
                        <Value>Windows 8.1 Pro N</Value> <----- THIS HERE
                    </MetaData>
                </InstallFrom>
dsudduth commented 9 years ago

Thanks @Skarlso, your follow up helped me out.

Skarlso commented 9 years ago

You are most welcome. Glad I could help out. :)

larytet commented 6 years ago

+1 - similar problem

I wonder how can I do this automatically - mount the ISO, figure out the OS name, patch the Autounattend.xml

This https://github.com/larytet/auto-win/blob/master/autounattend/Autounattend-win10-64-bios.xml works fine for both Win 8.1 and Win 10 and does not contain IMAGE/NAME key at all. Can something like this be reproduced?

This patch works, for example


diff --git a/answer_files/81/Autounattend.xml b/answer_files/81/Autounattend.xml
index 19ebbde..fab34df 100644
--- a/answer_files/81/Autounattend.xml
+++ b/answer_files/81/Autounattend.xml
@@ -58,12 +58,6 @@
                     </InstallTo>
                     <WillShowUI>OnError</WillShowUI>
                     <InstallToAvailablePartition>false</InstallToAvailablePartition>
-                    <InstallFrom>
-                        <MetaData wcm:action="add">
-                            <Key>/IMAGE/NAME</Key>
-                            <Value>Windows 8 Enterprise</Value>
-                        </MetaData>
-                    </InstallFrom>
                 </OSImage>
             </ImageInstall>
         </component>