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

Windows 8 automated - couple issues installing apps


  • Please log in to reply
4 replies to this topic

#1
GreenEnvy

GreenEnvy
  • Member
  • 9 posts
  • Joined 20-November 06

I've used custom widows image CD's for several years now (XP and 7), I prefer them at work vs using prebuilt images for each model.

I've done this for Win8/8.1 as well, but have a couple of questions. I'll describe what I did and then whats not working:

 

-Started with Win 8.1 Pro ISO file

-added $OEM$\$1 folder and subfolders to the image for all the apps I want to install and any drivers needed

-Added autounattend.xml to the root of the ISO

 

My autounattend is attached.

 

Basically what I'm doing is:

-Installing Win8.1 pro using a placeholder key

-Installing several apps (office, java, adobe reader, and more) using the runsynchronous command during the oobe pass

-creating a user called "admin" with password and making it part of administrator group

-setting admin to autologin twice

-I have UAC disabled in autounattend

-I set the "ConsentPromptBehaviorAdmin" to 0 in registry using one of the runsynchronous commands above

-Script file extracts the OEM Win8/8.1 key from the BIOS and activates Windows with it.

-Drivers copy over to local disk during install and are installed

 

This is all mostly working, with a couple of issues:

 

-A few apps, like Java, Adobe Reader, and Chrome, prompt for permission to run, which is annoying. It's not an elevation request, but just permission to run. How can I prevent this?

-I exported "program defaults" from another machine which has all the horrid Metro apps bypassed for most uses. I import this file and it says successful but the users defaults don't update to take these settings

-Drivers aren't installing. They do copy to the hard drive, but nothing installs. I'm assuming it is recursive, but am I wrong? I've added this to 3 different passes as I don't know which is right. I've also added that driver path to the registry, and if i right click a device in device manager after install that is missing driver and hit update, it does find the driver in that path. So it's just not looking there during install.

 

Any thoughts?

 

EDIT - my attached failed with an SQL error, so posting code here:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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">
            <OEMInformation>
                <Manufacturer>myORG</Manufacturer>
                <SupportHours>8-5</SupportHours>
                <SupportPhone>x1234</SupportPhone>
                <SupportURL>helpdesk@myorg.org</SupportURL>
            </OEMInformation>
            <ComputerName>*</ComputerName>
            <RegisteredOrganization>myOrg</RegisteredOrganization>
            <RegisteredOwner>myORG - IT</RegisteredOwner>
            <TimeZone>Eastern Standard Time</TimeZone>
        </component>
    </settings>
    <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>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </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>
                <ProductKey>
                    <WillShowUI>OnError</WillShowUI>
                    <Key>REMOVED</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </component>
        <component name="Microsoft-Windows-PnpCustomizationsWinPE" 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">
            <DriverPaths>
                <PathAndCredentials wcm:keyValue="14aa9a2e" wcm:action="add">
                    <Path>%SYSTEMDRIVE%\AppInstall\Drivers</Path>
                </PathAndCredentials>
            </DriverPaths>
        </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>REMOVED=</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>2</LogonCount>
                <Username>Admin</Username>
            </AutoLogon>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>REMOVED=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Admin</Description>
                        <DisplayName>Admin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Admin</Name>
                    </LocalAccount>
                </LocalAccounts>
                <AdministratorPassword>
                    <Value>REMOVED=</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
            </UserAccounts>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <RegisteredOwner>myORG - IT</RegisteredOwner>
            <TimeZone>Eastern Standard Time</TimeZone>
            <RegisteredOrganization>myORG</RegisteredOrganization>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>7ZIP</Description>
                    <Order>2</Order>
                    <CommandLine>msiexec -I %SYSTEMDRIVE%\Appinstall\7zip\7z920-x64.msi /q INSTALLDIR=&quot;%ProgramFiles%\7-Zip&quot;</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>DefaultApps</Description>
                    <Order>13</Order>
                    <CommandLine>Dism /Online /Import-DefaultAppAssociations:%SYSTEMDRIVE%\Appinstall\Misc\DefaultAppAssociations.xml</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>DefaultApps</Description>
                    <Order>14</Order>
                    <CommandLine>%SYSTEMDRIVE%\AppInstall\Win8.1\ActivateOemWin8.bat</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Office</Description>
                    <Order>12</Order>
                    <CommandLine>&quot;%SYSTEMDRIVE%\Appinstall\Office\Setup.exe&quot;</CommandLine>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Icons</Description>
                    <Order>11</Order>
                    <CommandLine>Copy %SYSTEMDRIVE%\Appinstall\Misc\Icons\*.* &quot;%systemdrive%\Users\Public\Desktop\&quot;</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>RegFixes</Description>
                    <Order>1</Order>
                    <CommandLine>reg import %SYSTEMDRIVE%\Appinstall\Misc\RegFixes.reg</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Shoretel</Description>
                    <Order>9</Order>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\Shoretel\ShoretelCommunicator14-2\ShoretelCommunicator14-2.exe /S /v&quot;/qn REBOOT=reallysuppress&quot;</CommandLine>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>.Net 3.5</Description>
                    <Order>8</Order>
                    <CommandLine>DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:%SYSTEMDRIVE%\Appinstall\sxs /NoRestart</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>VLC</Description>
                    <Order>7</Order>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\VLC\vlc-2.0.1-win32.exe /L=1033 /S</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>ESET</Description>
                    <Order>6</Order>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\ESET\ESET-Win64.exe /quiet REBOOT=&quot;ReallySuppress&quot;</CommandLine>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Chrome</Description>
                    <Order>5</Order>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\Chrome\ChromeStandaloneSetup.exe /silent /install</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Java</Description>
                    <Order>4</Order>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\Java\jre-7u67-windows-i586.exe /s /v &quot;/qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1&quot;</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>InfraRecorder</Description>
                    <Order>3</Order>
                    <CommandLine>msiexec -I %SYSTEMDRIVE%\Appinstall\Infra\ir053_x64.msi /quiet /qn</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>10</Order>
                    <Description>Adobe Reader</Description>
                    <CommandLine>%SYSTEMDRIVE%\Appinstall\AdobeReader\AdbeRdr11008_en_US.exe /sAll /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <settings pass="offlineServicing">
        <component name="Microsoft-Windows-LUA-Settings" 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">
            <EnableLUA>false</EnableLUA>
        </component>
        <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="778">
                    <Path>%SYSTEMDRIVE%\AppInstall\Drivers</Path>
                </PathAndCredentials>
            </DriverPaths>
        </component>
    </settings>
    <settings pass="auditSystem">
        <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="777">
                    <Path>%SYSTEMDRIVE%\AppInstall\Drivers</Path>
                </PathAndCredentials>
            </DriverPaths>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/unattended/windows8prox64/sources/install.wim#Windows 8 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Edited by GreenEnvy, 22 August 2014 - 11:16 AM.



How to remove advertisement from MSFN

#2
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 739 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

1. Install your apps from a batch file (postinstall.cmd) listed in your autounattend with the silent switch for each one, that way there will be no prompt.
   ie:  AdobeXL silent that I use is "%~dp0\apps\AdobeReaderXL\setup.exe" /sAll /re /OWNERSHIP_STATE=1 /msi UPDATE_MODE=0 DISABLE_CACHE=1

 

2. For your drivers just use the built in utility PnPutil.exe to install all your drivers from the inf files.

@echo off&color a && Title, [ MULTI PnP INF INSTALLER - ~DosProbie ]
::============================================+
:: Put all Pnf, Infs, Cat, Sys files etc. together in same directory!

:: Run Batch From Current Directory 
cd %~dp0

:: Scan and Echo .inf files during install
for /f "delims=" %%a in ('dir/b *.inf') do (
echo == Installing PnP Drivers == "%%a"

:: Install Delay
ping -n 4 localhost 1>nul

:: Windows Plug & Play Installer
start "" %~dp0pnputil -i -a %%a
)
cls
echo. * DONE *

Edited by DosProbie, 23 August 2014 - 07:15 PM.

  • MAVERICKS CHOICE likes this

#3
GreenEnvy

GreenEnvy
  • Member
  • 9 posts
  • Joined 20-November 06

As a followup, I moved all the install stuff to setupcomplete.cmd instead. Then the installers run as SYSTEM rather than the user, so no confirmation prompts.

 

See my post for more info:

 

http://www.msfn.org/...oem-activation/



#4
bito007

bito007
  • Member
  • 2 posts
  • Joined 28-September 14
  • OS:Windows 8.1 x64
  • Country: Country Flag

Hi GreenEvny,

 

First of all, thanks for posting such a great post, which somewhat helped me in my Windows 8.1 unattended installation. Though, I'm little bit confused over some parameters inside your unattended xm file regarding Apps installation from the network share.

 

At the bottom of your unattended xml file, you have the following:

 

<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="3345678">
                    <Credentials>
                        <Domain>MyCompany</Domain>
                        <Password>banana</Password>
                        <Username>pxeuser</Username>
                    </Credentials>
                    <Path>\\10.2.0.30\Apps\Drivers</Path>
                </PathAndCredentials>
            </DriverPaths>
        </component>

 

What I'm confused about is the path? It's pointing to your server and then up to the drivers folder where I believe your have "InstallWin8apps.bat". Then in your Setupcomplete.cmd, you added the following:

 

net use z: \\srv-updates\apps /user:mycompany\pxeuser bannana
z:\InstallWin8apps.bat

 

My question is why your network drive is not mapped up to \\srv-updates\Apps\Drivers as opposed to net use z:\\srv-updates\apps due to the reason that you mentioned this in your path "<Path>\\10.2.0.30\Apps\Drivers</Path>". Isn't your mapped folder on the network suppose to be same as you mentioned in the Path location?

 

I've got a same setup as yours and I need to have my client pulled the apps from the network share during unattended installation like you did, but I'm confused about all that. Could you please shed some light on this particular settings in details for me to implement it. Just so you know, I myself was using Synchronouscommands settings one by one in my unattended file to execute the apps from the server which makes it little bit disorganized. I like the way you did, but please explain me little so I can understand these things before implementing myself.

 

Hope to hear from you.

 

Thanks



#5
GreenEnvy

GreenEnvy
  • Member
  • 9 posts
  • Joined 20-November 06

Hi bito,

The section in the XML is there to try and inject drivers into the installation (NIC, video card, fingerprint reader, etc..).

Setupcomplete is calling InstallWin8Apps.bat, which in turn is installing apps.

 

My directory structure on the shared folder is something like this:

 

\\server\apps:

[office]

[chrome]

[firefox]

[Drivers]

[Adobe]

InstallWin8Apps.bat

 

So Drivers is a subfolder of the apps share.

I could reference Z:\drivers in the installwin8apps.bat if needed, since it's in that same location.

 

I never did get the drivers to work using the XML settings, which is why I wrote the script for finding unknown devices and adding drivers, and run it from the installwin8apps 






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users