When sequencing an application it’s handy to have a template with some common file and registry exclusions to save on the cleanup work afterwards.

Copy the xml content below into a text file and save with a .appvt extension. Load this template into the App-V Sequencer before packaging an application.

To load this template launch the Sequencer and select File > Load Template.

Template Code

<?xml version="1.0" encoding="utf-8"?>

<SequencerTemplate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<AllowMU>false</AllowMU>

<AppendPackageVersionToFilename>true</AppendPackageVersionToFilename>

<AllowLocalInteractionToCom>false</AllowLocalInteractionToCom>

<AllowLocalInteractionToObject>false</AllowLocalInteractionToObject>

<FullVFSWriteMode>false</FullVFSWriteMode>

<ExcludePreExistingSxSAndVC>false</ExcludePreExistingSxSAndVC>

<FileExclusions>

<string>[{CryptoKeys}]</string>

<string>[{Common AppData}]\Microsoft\Crypto</string>

<string>[{Common AppData}]\Microsoft\Search\Data</string>

<string>[{Cookies}]</string>

<string>[{History}]</string>

<string>[{Cache}]</string>

<string>[{Local AppData}]</string>

<string>[{LocalAppDataLow}]</string>

<string>[{Personal}]</string>

<string>[{Profile}]\Local Settings</string>

<string>[{Profile}]\NTUSER.DAT.LOG1</string>

<string>[{Profile}]\NTUSER.DAT.LOG2</string>

<string>[{Recent}]</string>

<string>[{Windows}]\Debug</string>

<string>[{Windows}]\Logs\CBS</string>

<string>[{Windows}]\Temp</string>

<string>[{Windows}]\WinSxS\ManifestCache</string>

<string>[{Windows}]\WindowsUpdate.log</string>

<string>[{AppVPackageDrive}]\$Recycle.Bin</string>

<string>[{AppVPackageDrive}]\System Volume Information</string>

<string>[{AppData}]\Microsoft\AppV</string>

<string>[{Local AppData}]\Temp</string>

<string>[{ProgramFilesX64}]\Microsoft Application Virtualization\Sequencer</string>

<string>REGISTRY\USER\Software\Microsoft\EventSystem</string>

<string>[{Windows}]\CSC</string>

<string>[{Windows}]\Prefetch</string>

<string>[{Windows}]\repair</string>

<string>[{System}]\appmgmt</string>

<string>[{AppVSystem32Catroot}]</string>

<string>[{System}]\CCM</string>

<string>[{System}]\config</string>

<string>[{System}]\dllcache</string>

<string>[{System}]\wbem</string>

<string>[{Windows}]\Tasks</string>

</FileExclusions>

<RegExclusions>

<string>REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Cryptography</string>

<string>REGISTRY\MACHINE\SOFTWARE\Microsoft\Cryptography</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Streams</string>

<string>REGISTRY\MACHINE\SOFTWARE\Microsoft\AppV</string>

<string>REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\AppV</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\AppV</string>

<string>REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\AppV</string>

<string>REGISTRY\USER\Software\Microsoft\SystemCertificates</string>

<string>REGISTRY\USER\SOFTWARE\Microsoft\Tracing</string>

<string>REGISTRY\USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings</string>

<string>REGISTRY\USER\Software\Microsoft\Windows\CurrentVersion\Run</string>

<string>REGISTRY\USER\Software\Microsoft\Windows\CurrentVersion\Runonce</string>

<string>REGISTRY\USER\Software\Microsoft\Windows\CurrentVersion\Uninstall</string>

<string>REGISTRY\USER\SOFTWARE\Policies</string>

<string>REGISTRY\MACHINE\Hardware</string>

<string>REGISTRY\MACHINE\SAM</string>

<string>REGISTRY\MACHINE\Security</string>

<string>REGISTRY\MACHINE\Software\Microsoft\EventSystem</string>

<string>REGISTRY\MACHINE\SOFTWARE\Microsoft\Rpc</string>

<string>REGISTRY\MACHINE\Software\Microsoft\SystemCertificates</string>

<string>REGISTRY\MACHINE\SOFTWARE\Microsoft\Tracing</string>

<string>REGISTRY\MACHINE\SOFTWARE\Microsoft\WBEM</string>

<string>REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings</string>

<string>REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Run</string>

<string>REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Runonce</string>

<string>REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall</string>

<string>REGISTRY\MACHINE\SOFTWARE\Policies</string>

<string>REGISTRY\MACHINE\System\CurrentControlSet\Control\TimeZoneInformation</string>

<string>REGISTRY\MACHINE\System\CurrentControlSet\Services\DHCP</string>

<string>REGISTRY\MACHINE\System\CurrentControlSet\Services\Eventlog</string>

</RegExclusions>

<TargetOSes />

</SequencerTemplate>

Leave a Reply

Your email address will not be published. Required fields are marked *