This PowerShell module is included as part the Virtual Engine App-V 5.0 PowerShell modules download. For installation details, please refer to the Installing the New App-V 5 PowerShell Modules post. Note: This module requires PowerShell 3.0 and the Microsoft .Net Framework 4.5.

Description

This function saves an XML file containing information from the AppxManifest.xml, PackageHistory.xml, StreamMap.xml and FilesystemMetadata.xml files in the specified App-V 5.0 .APPV package.

Syntax

Save-AppV5FileXmlPackage [-AppV] <String> [[-FilePath] <String>] [<CommonParameters>] 

Parameters

-AppV <String>
The source App-V 5.0 package/archive .APPV file

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-FilePath <String>
The target directory to save the generated AppV5Package.xml file to

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Examples

Saves information the AppxManifest.xml, PackageHistory.xml, StreamMap.xml and FilesystemMetadata.xml files within an App-V 5.0 .APPV package as a single c:\temp\AppV5Package.xml file.

C:\PS>Save-AppV5FileXmlPackage -AppV c:\package.appv -FilePath c:\temp\

Code Snippet

C:\PS> Save-AppV5FileXmlPackage -Appv C:\GoogleChrome_v23.0.1271.91\GoogleChrome_v23.0.1271.91.appv | Get-Content

<AppV5>
<Package IgnorableNamespaces="appv" xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:appv="http://schemas.microsoft.com/appv/2010/manifest">
<Identity Name="Reserved" Publisher="CN=Reserved" Version="0.0.0.1" appv:PackageId="b6299ba1-bb16-4ed5-b50c-c4ec5843d9a9" appv:VersionId="d8121602-53f6-4e7a-9c95-b4530c2f7111" />
<Properties>
<DisplayName>GoogleChrome_v23.0.1271.91</DisplayName>
<PublisherDisplayName>Reserved</PublisherDisplayName>
<Description>Reserved</Description>
<Logo>Reserved.jpeg</Logo>
<appv:AppVPackageDescription>Created on Win7 32bit Sequencer</appv:AppVPackageDescription>
</Properties>
<Resources>
<Resource Language="en-us" />
</Resources>
<Prerequisites>
<OSMinVersion>6.1</OSMinVersion>
<OSMaxVersionTested>6.1</OSMaxVersionTested>
<appv:TargetOSes SequencingStationProcessorArchitecture="x86" />
</Prerequisites>
<appv:Extensions>
<appv:Extension Category="AppV.AppPath">
<appv:AppPath>
<appv:Name>chrome.exe</appv:Name>
<appv:ApplicationPath>[{AppVPackageRoot}]\chrome.exe</appv:ApplicationPath>
<appv:PATHEnvironmentVariablePrefix>[{AppVPackageRoot}]</appv:PATHEnvironmentVariablePrefix>
<appv:ApplicationId>[{AppVPackageRoot}]\chrome.exe</appv:ApplicationId>
</appv:AppPath>
</appv:Extension> ....

Archives

Categories