That is true of course, and I understand your point, but I just figured that since for a computer running a 64-bit OS the "<FirstLogonCommands>" for BOTH "x86" AND "amd64" sections will get processed, it made sense to put the 32-bit programs in the "x86" section and the 64-bit programs in the "amd64" section. No? I realize that there will be a few exceptions to this rule, but in general I thought that was the best way. If I am incorrect, could you please give me some examples?
Yes, you are right, it make sens!
But, however we can choose to install 32-bit programs on 64-bit OS!
We must adapt the batch files to suit your needs using "<FistLogonCommands>" for both "x86" and "amd64", with this particular Autounattend.xml file, because all passes are executed!
About Adobe Flash Player, we can install on 32-bit OS or 64-bit OS.
Like this, on Windows 7 64-bit OS, I can install Office 2007 32-bit version, Java 32-bit version, IE9 32-bit version, etc.
We are free to install what we want with the batch files.
*Edit: About dual arch programs
Actually I just thought of an example that requires programs to be listed in both "x86" and "amd64" batches, assuming that the batches are set up to only be run for 32-bit and 64-bit OS's respectively - dual arch installers such as Adobe Flash. Since it is now only provided as a dual arch installer it should go in both the "x86" section and in the "amd64" section, with the "IF" tests set up to make sure that the installer is only run once. As an alternative, you could have two different sections within your 32-bit batch for 32-bit vs 64-bit OS installations to utilize. You could even get fancy and have three different sections - an "all" section at the beginning which would get run for any installation, then your "IF" tests would split it into 32-bit only and 64-bit only sections. The batch called from the "amd64" section would then truly only need to be 64-bit programs to be used in 64-bit OS. Right?
If I well understand the dual architecture programs are used on different CPU and OS.
- on a computer with cpu x86 the 32-bit program will be installed
- on a computer with cpu x64 and OS 64-bit, 32-bit and/or 64-bit programs could be installed
- on a computer with cpu x64 and OS 32-bit, the 32-bit program will be installed
But using the batch file you improved, all seems to work fine!
Edited by myselfidem, 13 June 2012 - 07:40 PM.