如何使用 Setup.msi 安装 App-V Client

应用到: Application Virtualization

This topic describes how to install the App-V client by using the setup.msi program. Before you install the App-V client using the setup.msi program, you must first determine if any prerequisite software must be installed, and then you must install it. To install the prerequisite software, see the Installing Prerequisite Software section of this topic. To install the client software, see the Installing the App-V Client by Using the Setup.msi Program section of this topic.

Installing Prerequisite Software

You can use the following procedures to install the prerequisite software. You can create a command file and run the commands from the command prompt, or you can use a scripting language such as VBScript or Windows PowerShell to run the commands.

备注

The x86 versions of the following software are required for both x86 and x64 versions of the App-V client.

To install Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

  1. Download the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) software package from the Microsoft Download Center (https://go.microsoft.com/fwlink/?LinkId=119961). [模板标记值] For version 4.5 SP2 and later of the App-V client, download vcredist_x86.exe from Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update (https://go.microsoft.com/fwlink/?LinkId=169360).[模板标记值]

  2. To install silently, use the command-line option “/Q” with vcredist_x86.exe—for example, vcredist_x86.exe /Q.

  3. To install the software by using the vcredist_x86.msi file, use the command-line option “/C /T:<fullpathtofolder>” to extract the files vcredist.msi and vcredis1.cab from vcredist_x86.exe to a temporary folder. To install silently, use the command-line option /quiet—for example, msiexec /i vcredist.msi /quiet.

To install Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

重要

For version 4.6 and later of the App-V client, you must also install the Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update.

  1. Download the Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update software package from the Microsoft Download Center (https://go.microsoft.com/fwlink/?LinkId=150700).

  2. To install silently, use the command-line option “/Q” with vcredist_x86.exe—for example, vcredist_x86.exe /Q.

To install Microsoft Core XML Services (MSXML) 6.0 SP1 (x86)

  1. Download the Microsoft Core XML Services (MSXML) 6.0 SP1 (x86) software package from the Microsoft Download Center (https://go.microsoft.com/fwlink/?LinkId=63266).

  2. To install silently, use the command-line option /quiet—for example, msiexec /i msxml6_x86.msi /quiet.

To install Microsoft Application Error Reporting

When installing Microsoft Application Error Reporting, you must use the APPGUID parameter to specify the App-V product code. The product code is unique for each App-V client type and version. Select the correct product code from the following table.

重要

For App-V 4.6 SP2 and later, you no longer need to install Microsoft Application Error Reporting (dw20shared.msi). App-V now uses Microsoft Error Reporting.

Version Product Code for Desktop Client Product Code for Client for Remote Desktop Services

App-V 4.5 CU1

FE495DBC-6D42-4698-B61F-86E655E0796D

8A97C241-D92A-47DC-B360-E716C1AAA929

App-V 4.5 SP1

93468B43-C19D-44F9-8BCC-114076DB0443

0042AD3C-99A4-4E58-B5F0-744D5AD96E1C

App-V 4.5 SP2

C6FC75B9-7D86-4C44-8BDB-EAFE1F0E200D

ECF80BBA-CA07-4A74-9ED6-E064F38AF1F5

App-V 4.6 x86

9E9D30B2-2065-4FDE-B756-8F1A6EABAFC3

439FAC21-B423-41D4-8126-54F9FCB70039

App-V 4.6 x64

E569E45F-7BA6-4C7F-B6BA-3FFCBE92FC22

D2977C18-D88A-47CB-AFD8-652DD36F4D0D

App-V 4.6 x86 1

40C3258B-F9D1-46DF-AE97-72C1F86F2427

9915D911-CC73-4122-AF4F-564F89454655

App-V 4.6 x64 1

1650E31F-23B8-40B5-A60A-C5934F557E3B

7580D918-C621-49E7-9877-3CC59F9BD1DA

App-V 4.6 x86 SP1

DB9F70CD-29BC-480B-8BA2-C9C2232C4553

1354855A-2298-4C73-9022-EF0686C65991

App-V 4.6 x64 SP1

342C9BB8-65A0-46DE-AB7A-8031E151AF69

B2C6C8D5-FE76-4056-A326-EE5D633EA175

1 App-V “Languages” release.

备注

If you need to find the product code, you can use the Orca.exe database editor or a similar tool to examine Windows Installer files to find the value of the ProductCode property. For more information about using Orca.exe, see Windows Installer Development Tools (https://go.microsoft.com/fwlink/?LinkId=150008).

  1. Locate the Microsoft Application Error Reporting install program, dw20shared.msi, which can be found in the Support\Watson folder on the release media.

  2. To install the software, run the following command:

         msiexec /i dw20shared.msi APPGUID={valuefromtable} REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus

Installing the App-V Client by Using the Setup.msi Program

Use the following procedure to install the App-V client. Ensure that any necessary prerequisite software has been installed. [模板标记值] For version 4.6 and later of the App-V client, the setup.msi program checks the system and if prerequisite software is not installed, it generates an error message indicating that installation cannot continue. [模板标记值]

To install the Application Virtualization Client by Using Setup.msi

  1. Make sure you are logged on with an account that has administrator rights on the computer.

  2. Open a Command Prompt window by using elevated rights, and then change the directory to the folder that contains the setup files. When installing version 4.6 or a later version of the App-V client, you must use the correct installer for the computer’s operating system, 32-bit or 64-bit. The installation will fail and an error message will be displayed if you use the wrong installer.

  3. Enter the install command string at the command prompt. Alternatively, you can create a command file and run it from the command prompt. You can also use a scripting language such as VBScript or Windows PowerShell to run the command.

  4. The following command-line example shows how setup.msi can be used with a number of optional parameters. For more information about these parameters, see Application Virtualization Client 安装程序命令行参数.

    msiexec.exe /i "setup.msi" SWICACHESIZE="10240" SWIPUBSVRDISPLAY="Production System" SWIPUBSVRTYPE="HTTP /secure" SWIPUBSVRHOST="PRODSYS" SWIPUBSVRPORT="443" SWIPUBSVRPATH="/AppVirt/appsntype.xml" SWIPUBSVRREFRESH="on" SWIGLOBALDATA="D:\AppVirt\Global" SWIUSERDATA="^% LOCALAPPDATA^%\Windows\Application Virtualization Client" SWIFSDRIVE="S" /q

    重要

    • The Windows Installer switch "/q" is used to make this a silent installation.

    • The "%" characters in "%HomeDrive%" must be preceded by the "^" escape character. Otherwise, the Windows command shell sets the value to that of the user who is performing the installation.

    • To turn on installation logging, use the msiexec switch /l*v filename.log.

另请参阅

其他资源

如何使用命令行安装客户端

-----
你可以在 TechNet 库中了解有关 MDOP 的详细信息,在 TechNet Wiki 上搜索疑难解答,或者在 FacebookTwitter 上与我们联系。 请将关于 MDOP 文档的建议和意见发送到 MDOPdocs@microsoft.com。