Find Applicable Updates Using Package Scanner

3/21/2011

Package Scanner is a tool that allows you to examine a running installation of Windows Embedded Standard 7, or an offline Standard 7 image, and compare that information with one or more downloaded updates to see which updates are applicable to the scanned image.

This functionality can be used for devices that do not have Internet connectivity and thus cannot run Windows Update. It is also useful for devices whose updates need to be carefully monitored or selected.

In addition to listing which updates are applicable, you can use Package Scanner to create a configuration set and answer file for those updates that can then be applied to the image by using Deployment Image Servicing and Management (DISM).

You can also use an exclusion file to exclude some update folders or files from the scan. For more information, see Package Scanner Technical Reference.

Ff794914.note(en-US,WinEmbedded.1001).gifNote:
If you use DISM to apply the resulting updates to a running Standard 7 installation, you might be prompted to reboot your device to finish the installation.

  • You have access either to the device currently running Standard 7 or access to a Windows Imaging WIM file containing a Standard 7 image that you want to check updates for and have mounted that WIM file to access its contents.
  • You have access to one or more downloaded updates in either .CAB or .MSU formats.
  • You have installed Standard 7 Toolkit on a development computer.
Ff794914.note(en-US,WinEmbedded.1001).gifNote:
If you need to access Package Scanner on a network share or on a device without network capability, the correct files and directory structure are required for Package Scanner to function. For more information, see CopyPkgScn Command-Line Options.

  • If you are running Package Scanner on the device you want to scan, the following example will scan the currently running operating system and then look for applicable updates in the c:\updatepackages folder:

    pkgscn /Find-Updates /Package-Path:c:\updatepackages
    
Ff794914.note(en-US,WinEmbedded.1001).gifNote:
When running Package Scanner, it is assumed that your Windows root directory is \Windows, but this can be overridden by using the /image parameter. For more information, see Package Scanner Technical Reference.
  • If you want to use an exclusion file to limit which updates are scanned, the following example scans the currently running operating system and looks for applicable updates in the c:\updatepackages folder, which are not excluded by myexclusionfile.txt:
    Pkgscn /Find-Updates /Package-Path:c:\updatepackages /ExclusionFile:c:\myexclusionfile.txt
    
  • If you are running Package Scanner from another system on an offline Standard 7 image mounted as d:\mount, the following example will scan the mounted image:
    pkgscn /Find-Updates /Image:d:\mount /Package-Path:c:\updatepackages
    

  • If you are running Package Scanner on the device you want to scan, the following example will scan the currently running operating system and then look for applicable updates in the c:\updatepackages folder. It will then create a configuration set and answer file in the directory c:\updateconfigset:

    pkgscn /Find-Updates /Package-Path:c:\updatepackages /ConfigSetDir:c:\updateconfigset
    
  • If you want to use an exclusion file to limit which updates are scanned, the following example scans the currently running operating system and looks for applicable updates in the c:\updatepackages folder, which are not excluded by myexclusionfile.txt. It will then create a configuration set and answer file in the directory c:\updateconfigset:

    Pkgscn /Find-Updates /Package-Path:c:\updatepackages /ExclusionFile:c:\myexclusionfile.txt /ConfigSetDir:c:\updateconfigset
    
  • If you are running Package Scanner from another system on an offline Standard 7 image that has been mounted as d:\mount, the following example will scan the mounted image and create a configuration set and answer file in the directory c:\updateconfigset:

    pkgscn /Find-Updates /Image:d:\mount /Package-Path:c:\updatepackages /ConfigSetDir:c:\updateconfigset
    
Show: