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 extracts the specified (case-sensitive) file from an App-V 5.0 compressed .APPV package/archive.

Syntax

Save-AppV5File [-AppV] <String> [-File] <String> [[-FilePath] <String>] [-Overwrite] [<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

-File <String>

The source CASE-SENSITIVE filename within the App-V 5.0 package/archive .APPV file to extract. Note: path names are specified as /

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

-FilePath <String>

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

-Overwrite [<SwitchParameter>]

Whether to overwrite the existing -OutFile if it exists

Required? false
Position? named
Default value False
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

Extracts the AppxManifest.xml file from the App-V 5.0 c:\package.APPV file and saves it as c:\temp\appxmanifest.xml.

Save-AppV5File -AppV c:\package.APPV -File AppxManifest.xml -FilePath c:\temp\

Extracts the StreamMap.xml file from the App-V 5.0 c:\package.appv file and saves it as c:\temp\streammap.xml and overwrites any existing file.

Save-AppV5File -AppV c:\package.appv -File StreamMap.xml -FilePath c:\temp\ -Overwrite

Extracts the install.log file from the “Root/” directory within the c:\package.appv App-V 5.0 .APPV file, saving it as c:\temp\install.log.

Save-AppV5File -AppV c:\package.appv -File "Root/install.log" -FilePath c:\temp\

Code Snippet

C:\PS> Save-AppV5File -Appv c:\package.appv -File Registry.dat -FilePath c:\Registry.dat

Directory: C:\

Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 27/11/2012 16:35 524288 Registry.dat

C:\PS> REG LOAD HKLM\APPV c:\Registry.dat
The operation completed successfully.

C:\PS>

PowerShell _AppV_REG_LOAD

Archives

Categories