適用於:
- Windows 10
- Windows 11
App-V 封裝加速器會自動排序大型且複雜的應用程式。 此外,當您套用 App-V 封裝加速器時,您不需要手動安裝應用程式來建立虛擬化套件。
建立封裝加速器
安裝 App-V 序列器。 如需安裝排序器的詳細資訊,請參閱 如何安裝排序器。
若要開啟 Windows PowerShell 主控台,請選取 [開始],然後輸入 PowerShell。 以滑鼠右鍵按一下 Windows PowerShell,並選取 \[以系統管理員身分執行\]。
確定有 App-V 套件可從安裝媒體或安裝檔案建立加速器。 您也可以選擇性地使用讀我檔案供加速器的使用者參考。
輸入 New-AppvPackageAccelerator Cmdlet。
使用封裝加速器 Cmdlet 需要下列參數:
InstalledFilesPath 指定應用程式安裝路徑。
Installer 會指定應用程式安裝程式媒體的路徑。
InputPackagePath 會指定 App-V 套件的路徑。
Path 指定套件的輸出目錄。
下列範例 Cmdlet 示範如何使用 App-V 套件和安裝媒體建立封裝加速器:
New-AppvPackageAccelerator -InputPackagePath <path to the .appv file> -Installer <path to the installer executable> -Path <directory of the output path>您也可以將下列選用參數與 New-AppvPackageAccelerator Cmdlet 搭配使用:
AcceleratorDescriptionFile 會指定使用者建立套件加速器指示的路徑。 封裝加速器指示是 .txt 或 .rtf 描述檔案,將包含在封裝加速器所建立的套件中。