Jump to content

Jim Brisse

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Jim Brisse

  1. With VirtualBox 4.3.8-92456 (older versions too) you need to create an .ISO using WinToolkit and boot VirtualBox from it, looks like it's not reading the .xml. Here's a working Autounattend.xml:

    <?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend">    <servicing></servicing>    <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>en-us</UILanguage>            </SetupUILanguage>            <UILanguage>en-US</UILanguage>            <UILanguageFallback>en-US</UILanguageFallback>            <InputLocale>en-US</InputLocale>            <SystemLocale>en-US</SystemLocale>            <UserLocale>en-US</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">            <UserData>                <ProductKey>                    <Key>D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV</Key>                    <WillShowUI>OnError</WillShowUI>                </ProductKey>                <AcceptEula>true</AcceptEula>                <FullName>Valued Customer</FullName>            </UserData>            <ImageInstall>                <OSImage>                    <InstallFrom>                        <MetaData wcm:action="add">                            <Key>/IMAGE/NAME</Key>                            <Value>Windows 7 ULTIMATE</Value>                        </MetaData>                    </InstallFrom>                </OSImage>            </ImageInstall>            <Display>                <ColorDepth>32</ColorDepth>                <HorizontalResolution>1920</HorizontalResolution>                <RefreshRate>60</RefreshRate>                <VerticalResolution>1080</VerticalResolution>            </Display>            <DiskConfiguration>                <WillShowUI>Always</WillShowUI>            </DiskConfiguration>        </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>                    <PlainText>false</PlainText>                </Password>                <Username>Valued Customer</Username>                <LogonCount>99999</LogonCount>                <Enabled>true</Enabled>            </AutoLogon>            <Display>                <ColorDepth>32</ColorDepth>                <HorizontalResolution>1920</HorizontalResolution>                <RefreshRate>60</RefreshRate>                <VerticalResolution>1080</VerticalResolution>            </Display>            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <Order>1</Order>                    <CommandLine>%Systemdrive%\WPI\WPI.exe</CommandLine>                    <Description>Program Installation</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <Order>2</Order>                    <CommandLine>fsutil behavior set EncryptPagingFile 1</CommandLine>                    <Description>Encrypt the Pagefile</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <Order>3</Order>                    <CommandLine>%Systemdrive%\Finsh_Install\Windows7_Setup.exe</CommandLine>                    <Description>System Setup</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <Order>4</Order>                    <CommandLine>%Systemdrive%\Finsh_Install\Finsh_Install.exe</CommandLine>                    <Description>System Setup</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <Order>5</Order>                    <CommandLine>powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</CommandLine>                    <Description>High performance Power Plan</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <Order>6</Order>                    <CommandLine>%Systemdrive%\Finsh_Install\Cleanup.exe</CommandLine>                    <Description>Cleanup</Description>                    <RequiresUserInput>false</RequiresUserInput>                </SynchronousCommand>            </FirstLogonCommands>            <OOBE>                <HideEULAPage>true</HideEULAPage>                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>                <NetworkLocation>Home</NetworkLocation>                <ProtectYourPC>2</ProtectYourPC>            </OOBE>            <UserAccounts>                <LocalAccounts>                    <LocalAccount wcm:action="add">                        <Password>                            <PlainText>false</PlainText>                        </Password>                        <DisplayName>Valued Customer</DisplayName>                        <Group>Administrators</Group>                        <Name>Valued Customer</Name>                    </LocalAccount>                </LocalAccounts>            </UserAccounts>            <VisualEffects>                <FontSmoothing>ClearType</FontSmoothing>            </VisualEffects>            <WindowsFeatures>                <ShowInternetExplorer>true</ShowInternetExplorer>                <ShowMediaCenter>false</ShowMediaCenter>                <ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>            </WindowsFeatures>            <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>            <RegisteredOrganization />            <RegisteredOwner>Valued Customer</RegisteredOwner>            <ShowWindowsLive>false</ShowWindowsLive>            <TimeZone>Central Standard Time</TimeZone>        </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">            <UILanguage>en-US</UILanguage>            <UILanguageFallback>en-US</UILanguageFallback>            <UserLocale>en-US</UserLocale>            <InputLocale>0409:00000409</InputLocale>        </component>    </settings>    <settings pass="specialize">        <component name="Microsoft-Windows-IE-InternetExplorer" 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">            <SearchScopes>                <Scope wcm:action="add">                    <ScopeDefault>true</ScopeDefault>                    <ScopeDisplayName>Google</ScopeDisplayName>                    <ScopeKey>SearchProvider1</ScopeKey>                    <ScopeUrl>http://www.google.com</ScopeUrl>                </Scope>            </SearchScopes>            <StartPages>                <StartPage wcm:action="add">                    <StartPageUrl>http://www.google.com</StartPageUrl>                    <StartPageKey>1</StartPageKey>                </StartPage>            </StartPages>            <BlockPopups>yes</BlockPopups>            <DisableFirstRunWizard>false</DisableFirstRunWizard>            <FavoritesDelete>false</FavoritesDelete>            <FavoritesOnTop>false</FavoritesOnTop>            <FilterLevel>Medium</FilterLevel>            <Home_Page>http://www.google.com</Home_Page>            <NoDial>true</NoDial>            <PlaySound>false</PlaySound>            <SuggestedSitesEnabled>false</SuggestedSitesEnabled>        </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">            <UILanguage>en-US</UILanguage>            <UILanguageFallback>en-US</UILanguageFallback>            <UserLocale>en-US</UserLocale>            <InputLocale>en-US</InputLocale>        </component>        <component name="Microsoft-Windows-Security-SPP-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>        <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>99999</LogonCount>                <Username>Valued Customer</Username>            </AutoLogon>            <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>            <ComputerName>WIN7</ComputerName>            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>            <TimeZone>Central Standard Time</TimeZone>            <RegisteredOrganization />            <RegisteredOwner>Valued Customer</RegisteredOwner>            <ShowWindowsLive>false</ShowWindowsLive>            <ProductKey>D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV</ProductKey>            <Display>                <ColorDepth>32</ColorDepth>                <HorizontalResolution>1920</HorizontalResolution>                <RefreshRate>60</RefreshRate>                <VerticalResolution>1080</VerticalResolution>            </Display>        </component>    </settings>    <settings pass="generalize">        <component name="Microsoft-Windows-SharedAccess" 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">            <EnableICS>false</EnableICS>        </component>    </settings>    <settings pass="offlineServicing">        <component name="Microsoft-Windows-LUA-Settings" 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">            <EnableLUA>false</EnableLUA>        </component>    </settings></unattend>

    Copy and paste as requried,

  2. This works using Autounattend.xml, gather all you tweeks into one .reg file and create a WinRAR SFX

     

    Create SFX

     

    Compression: Store

    Place SFX script commands in tab commands:

     

    ----- START SFX SCRIPT ------

    ;The comment below contains SFX script commands
    Setup=regedit.exe /S Win7_Setup.reg
    TempMode
    Silent=1
    Overwrite=1

    ----- END SFX SCRIPT ------

     

    Create a folder called $oem$ within that folder create another called $1 put your SFX in the $1 folder then put the $oem$ in the sources folder

     

    <--- Autounattend.xml Script--->

     

        <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">
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                    <Order>1</Order>    
                    <CommandLine>fsutil behavior set EncryptPagingFile 1</CommandLine>
                    <Description>Encrypt the Pagefile</Description>
                    </SynchronousCommand>    
                    <SynchronousCommand wcm:action="add">
                    <Order>2</Order>    
                    <CommandLine>%Systemdrive%\WPI\WPI.exe</CommandLine>
                    <Description>Program Installation</Description>
                    </SynchronousCommand>    
                    <SynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <CommandLine>%Systemdrive%\Win7_Setup.exe</CommandLine>
                    <Description>Registry Settings</Description>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <CommandLine>shutdown /r /f /t 60 /c "This system will restart in 60 seconds..."</CommandLine>
                    <Description>Reboot System</Description>
                    </SynchronousCommand>
                </FirstLogonCommands>

     

    <---End Autounattend.xml Script--->

     

    Your Settings are applied at first logon with a reboot

  3. Thiersee I found something that you can use, It's not my work but I've used it in the past, I just had to remember which computer I kept it on...

     

    MSP patch files

     

    An MSP-file contains a patch to be applied to a MSI-file (or an AIP).

     

    A patch is usually an update to a new version of a software product.

     

    A typical example for MSP-files are updates for Adobe Reader.

     

    Creating a patch file is an alternative to creating a new MSI-file.

     

    A patch from an MSP-file can be applied to an already installed software product by double-clicking the MSP-file, or by issuing the command
    msiexec /p patch.msp REINSTALL=ALL REINSTALLMODE=omus  (the options are important, otherwise it only updates the locally cached copy of the MSI-file).

     

    It is possible let windows installer install an MSI-file plus one or more MSP-files in one step with a command like this:
    msiexec /I package.msi PATCH="c:\directory\patch.msp"

     

    It is not possible to do specify an MSP-file when deploying software with GPO, like it can be done with MST files.

     

    It is possible to slipstream one or more patches from MSP-files into an MSI file and to deploy that with GPO. Slipstreaming requires these steps:

    extract the MSI file into an empty directory with the command:  msiexec /qb /a "%msi%" TARGETDIR="%aip%"

    apply the patch from the MSP-file with the command: msiexec /qb /a "%msi%" /p "%msp%"

     

    Notes:
    The result is not a self-contained MSI-file, but an AIP (Administrative Installation Point).
    If you don't want to enter commands manually, see my BAT-script below
    replace %aip% with the full path to an empty directory (will become the AIP).
    replace %msi% and %msp% with the path to those files (don't know if this must also be the full path).
    do the second step inside the AIP-directory.
    do all as admin or it may fail (for example when trying to do this for Adobe Reader).
    to apply a MSP-file to an AIP instead to a MSI, run only the second command inside the AIP-directory.

     

    If you don't want to do this manually, use my batch ApplyMSP.bat. Simply create a new directory, copy the MSI-file, the MSP-file and this BAT-file there.
    Then double-click on the BAT. It will display the name of the MSI-file and of the MSP-file that it has found. Then it asks if the MSI is an MSI or an AIP.
    I used this to slipstream Adobe Reader versions 10.0.1 and 10.0.2.

     

    ----- START SCRIPT ------

     

    @echo off

    rem ---------------------------------------------------------------------------
    rem
    rem Description:
    rem    Creates slipstreamed updated AIP
    rem    by applying a patch from a MSP-file either to a
    rem    MSI-file or to an administrative installation point (AIP).
    rem
    rem Use:
    rem    1. create new directory
    rem    2. copy AIP or MSI-file there
    rem    3. copy MSP-file there as well
    rem    4. copy this batch there as well and execute it
    rem
    rem Notes:
    rem - must be run with admin rights (if patching Adobe Reader 10)
    rem - should be run on PC where Adobe Reader was never installed
    rem - if patching MSI-file will create directory AIP and put all output there
    rem - installation does not need just the new MSI-file. Copy the whole AIP path!
    rem - resulting MSI-file should be renamed to reflect new version number
    rem
    rem For more info and newer version of this:
    rem http://www.klaus-hartnegg.de/gpo/msp.html
    rem
    rem ---------------------------------------------------------------------------

    rem Verify that we have admin rights
    "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" >nul 2>&1
    if errorlevel 1 echo ** WARNING: this may require admin-rights

    set error=

    rem Search MSI- and MSP-file
    call :search msi
    set msi=%rc%
    if not %error%.==. goto error
    call :search msp
    set msp=%rc%
    if not %error%.==. goto error

    echo.
    echo ------------------------------------------------
    echo Will patch MSI-file
    echo    %msi%
    echo.
    echo with patch from MSP-file
    echo    %msp%
    echo ------------------------------------------------
    echo.
    echo Do you want me to apply the patch to a MSI-file,
    echo or to an Administrative Installation Point (AIP)?
    echo.
    echo Note: If you select MSI, I will extract the MSI-file
    echo to a new AIP, otherwise I will use the existing AIP.
    echo.
    echo Please enter MSI, AIP, or Q to quit.
    set /p type="Reply: "
    echo.
    if %type%.==msi. goto doMSI
    if %type%.==MSI. goto doMSI
    if %type%.==aip. goto doAIP
    if %type%.==AIP. goto doAIP
    if %type%.==q. goto end
    if %type%.==Q. goto end
    echo ** ERROR: unknown reply %type%
    goto error

    :doMSI
    if exist AIP\NUL goto dupeaip
    mkdir AIP
    cd AIP
    set aip=%CD%
    echo ** Extracting MSI-file to AIP %aip%
    msiexec /qb /a "%msi%" TARGETDIR="%aip%"
    if errorlevel 1 goto err1
    echo ** Searching extracted MSI-file in AIP
    call :search msi
    set msi=%rc%
    if not %error%.==. goto error
    echo ** Found MSI-file in AIP: %msi%

    :doAIP
    echo ** Applying patch from MSP-file
    msiexec /qb /a "%msi%" /p "%msp%"
    if errorlevel 2 goto err2
    echo ** SUCCESS
    pause
    start explorer /e,.

    goto end

    :search
    set rc=
    for %%i in (*.%1) do set rc=%%i
    if "%rc%."=="." goto no%1
    set dupe=
    for %%i in (*.%1) do if not "%%i"=="%rc%" set dupe=1
    if not %dupe%.==. goto dupe%1
    set dupe=
    set rc=%CD%\%rc%
    if not exist "%rc%" goto whoops
    goto:eof

    :nomsi
    echo ** ERROR: no MSI-file found
    set error=1
    goto end

    :dupemsi
    echo ** ERROR: more than one MSI-file found
    set error=1
    goto end

    :nomsp
    echo ** ERROR: no MSP-file found
    set error=1
    goto end

    :dupemsp
    echo ** ERROR: more than one MSP-file found
    set error=1
    goto end

    :whoops
    echo ** UNKNOWN ERROR
    set error=1
    goto end

    :dupeaip
    echo ** ERROR: directory AIP already exists
    goto error

    :err1
    echo ** ERROR: extraction of MSI-file to AIP failed
    goto error

    :err2
    echo ** ERROR: applying patch failed
    goto error

    :error
    pause
    :end

     

    ----- END SCRIPT ------

     

    Save as ApplyMSP.bat

  4. Create WinRAR SFX

     

    Compression: Store
    Place SFX script commands in tab commands:

     

    ----- START SFX SCRIPT ------

    ;The comment below contains SFX script commands
    Setup=msiexec /p <msp file name> .msp REINSTALL=ALL REINSTALLMODE=omus /qn
    TempMode
    Silent=1
    Overwrite=1

    ----- END SFX SCRIPT ------

     

    Why apply an .msp to Adobe?

     

    Read: http://www.mockbox.net/server-stuff/configmgr-sccm/302-install-adobe-reader-x-1001-using-sccm?hitcount=0

     

    Download Adobe Customization Wizard XI: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5515

  5. Nope, not through that Wintoolkit feature. If you want a simple solution, there isn't one. Best suggestion - make a silent addon via a .7z installer that includes that folder and a simple .batch files that has admin privileges.

     

    That's true if you use Wintoolkit, how about just using an $oem$ folder? No need to make this complicated, create folder called $oem$ within that folder create another called $1 and put what ever files or folders you need on your %SystemDrive% in it, put the $oem$ folder in your Win 7 sources folder, that's it.

×
×
  • Create New...