--- title: "通过Intune搭配ZIP包部署(.msi)" slug: "deploying-via-intune-with-zip-package" description: "Streamline HP Insights Windows Application deployment with Microsoft Intune using the MSI Installer. Follow our step-by-step guide for IT administrators." updated: 2026-08-03T17:59:18Z published: 2026-08-03T17:59:18Z canonical: "learn.workforceexperience.hp.com/deploying-via-intune-with-zip-package" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.workforceexperience.hp.com/llms.txt > Use this file to discover all available pages before exploring further. # 通过Intune搭配ZIP包部署(.msi) ## 简介 Microsoft Intune - MSI 安装包是一款基于 Windows 的部署包,允许您(IT 管理员)通过 Microsoft Intune 在企业管理设备上安装和管理 HP Insights Windows 应用程序(也称为 Windows 代理)。它旨在简化HP Insights Windows应用程序的部署、更新和管理。 本文介绍了使用MSI Installer部署Windows代理并使用Microsoft Intune注册设备的逐步流程: 1. 将 [UPN后缀](/wxp/docs/zh-cn/obtaining-the-user-principal-name-domain-suffix) 提供给指定的惠普服务专家或业务合作伙伴。 2. 获取公司密码。 1. 登录WXP,点击 **设置** > **偏好设置**。 2. 在 **偏好设置** 标签中,滚动到 **公司PIN** 部分并复制PIN码。 3. [下载HP Insights Windows应用程序(ZIP包(.msi))](/wxp/docs/zh-cn/automatic-enrollment-of-windows-devices-using-microsoft-intune-msi-installer#download-the-hp-insights-windows-application-msi-installer) 4. [使用 Microsoft Win32 内容准备工具转换 HP Insights Windows 应用程序(ZIP 包 (.msi))](/wxp/docs/zh-cn/automatic-enrollment-of-windows-devices-using-microsoft-intune-msi-installer#convert-the-workforce-experience-platform-for-windows-application-msi-installer-with-the-microsoft-win32-content-prep-tool) 5. [在Microsoft Intune中创建HP Insights Windows应用程序(ZIP包(.msi))。](/wxp/docs/zh-cn/automatic-enrollment-of-windows-devices-using-microsoft-intune-msi-installer#create-applications-in-microsoft-intune) ### 目标受众 希望通过 Intune 通过 MSI 提供的静默安装参数和配置管理工具,搭建和管理 Workforce Experience Platform 的 IT 管理员。 ### 前提条件 - 用户必须在 Microsoft Azure 中拥有管理员角色。 - 管理员的邮箱显示在主用户UPN中。 - 管理员的设备必须添加到公司门户,这是Microsoft提供的免费应用。 ## 下载HP Insights Windows应用程序 - ZIP包(.msi) 1. 下载 [HP Insights Windows应用ZIP包(.msi)](/wxp/docs/zh-cn/windows-application-msi-installer) 及其依赖。 2. 将.zip文件内容保存到Intune可访问的位置。有两个.zip文件: `x86 Zip Package (.msi)` => `HPInsights.zip` 代表 32 位和 64 位 Intel 平台,= `ARM64 Zip Package (.msi)` > `HPInsights-arm64.zip` 代表 Arm64 平台。 **英特尔封装** **臂包** - VC++ 可再分发(x86) - VC++ 可重新分发(x64) - HP Insights Analytics 客户端依赖 - HP Insights Analytics 客户端包 - HP Insights Manager 应用程序 - VC++ 可重新分发(Arm64) - HP Insights Analytics 客户端依赖 - HP Insights Analytics 客户端包 - HP Insights Manager 应用程序 **注意**:HP Insights Analytics 客户端 - 依赖软件包不能安装在非 HP 制造的 PC,包括虚拟机上。 ## 使用 Microsoft Win32 内容准备工具转换 Windows 版 WXP 应用`ZIP Package (.msi)` 1. [点击这里](https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool)下载Win32内容准备工具。 2. 保存或下载到 `IntuneWinAppUtil.exe` 本地文件夹 `C:\Tool` 。 ### 第1节:为Intel设备部署创建Intune包(Intel Package) 1. 解压 **HPInsights.zip** 并将内容放入本地文件夹 `C:\Intune\IntelPkgs\` 。 - VC_redist.x86.exe - VC_redist.x64.exe - HPInsightsAnalyticsDependencies.msi - HPInsights.msi - HPInsightsAnalytics.msi 2. 打开管理员命令提示符。 3. 进入 `C:\Intune\` 文件夹,依次执行以下命令,将安装程序转换为 Intune 格式: - `C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s VC_redist.x86.exe -o C:\Intune\Output\IntelPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s VC_redist.x64.exe -o C:\Intune\Output\IntelPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsightsAnalyticsDependencies.msi -o C:\Intune\Output\IntelPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsightsAnalytics.msi -o C:\Intune\Output\IntelPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsights.msi -o C:\Intune\Output\IntelPkgsIntune` 4. 文件成功转换后,会创建以下 IntuneWin 文件,它们将出现在 `C:\Intune\Output\IntelPkgsIntune`: - `VC_redist.x86.intunewin` - `VC_redist.x64.intunewin` - `HPInsightsAnalyticsDependencies.intunewin` - `HPInsightsAnalytics.intunewin` - `HPInsights.intunewin` 5. **为英特尔设备创建 Intune 应用**:在下面列出的第一应用到第六应用部分,使用文件夹中的 `IntelPkgsIntune` Intune 软件包创建 Intune 应用程序。 6. **英特尔设备部署指南**:请参阅下方“ **Intune应用通用部署步骤** ”部分,以部署在上述步骤中创建 **的Intune应用。** ### 第2节:创建用于部署在Arm设备上的Intune包(Arm包) 1. 解压 **HPInsights.zip** 并将内容放入本地文件夹 `C:\Intune\ArmPkgs\` 。 - `VC_redist.arm64.exe` - `HPInsightsAnalyticsDependencies.msi` - `HPInsights.msi` - `HPInsightsAnalytics.msi` 2. 打开管理员命令提示符。 3. 进入 `C:\Intune\` 文件夹,依次执行以下命令,将安装程序转换为Intune格式: - `C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s VC_redist.arm64.exe -o C:\Intune\Output\ArmPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsightsAnalyticsDependencies.msi -o C:\Intune\Output\ArmPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsightsAnalytics.msi -o C:\Intune\Output\ArmPkgsIntune` - `C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsights.msi -o C:\Intune\Output\ArmPkgsIntune` 4. 文件成功转换后,会创建以下 IntuneWin 文件。他们将出现在 `C:\Intune\Output\ArmPkgsIntune`: - `VC_redist.arm64.intunewin` - `HPInsightsAnalyticsDependencies.intunewin` - `HPInsightsAnalytics.intunewin` - `HPInsights.intunewin` 5. 为 **Arm 设备创建 Intune 应用**:在文件夹中使用 `ArmPkgsIntune` Intune 包,创建 Intune 应用,从第三应用到第六应用部分如下所示。 6. Arm设备**部署指南**:请参阅下方“**Intune中应用的通用部署步骤**”部分,以部署在上述步骤中创建**的Intune**应用。 ## 在 Microsoft Intune 中创建应用程序 ### 首次应用:创建 VC++ 可分发(x86)应用程序 1. 登录 [Azure门户](https://portal.azure.com)。主 **页显示** 出来。 2. 访问 **Microsoft Intune 管理中心**。 3. **选择客户端应用**,然后进入**应用**。 4. 点击**添加**并选择**Windows应用(Win32)。** 5. 点击 **选择应用包文件**,然后选择 `VC_redist.x86.intunewin` 6. 点击 **确定**。 7. 在 **应用信息** 页面: - 于是, **Microsoft** 作为 **发布者**登场。 - 点击 **下一步**。 8. 在 **节目单** 页面: - **安装命令**: `vc_redist.x86.exe /install /quiet` - **卸载命令**: `vc_redist.x86.exe / /quiet` - **设备重启行为**:无特定操作 - 其他设置保持默认。 9. 在 **需求** 页面: - **操作系统架构**: - 选择 **“是**”。指定应用可以安装在哪些系统上。 - 选择 **安装在x86系统上** - 选择 **在x64系统上安装** - 根据目标环境选择 **最小操作系统** 。例如:Windows 10 1607。 10. 在 **检测规则** 页面: - **规则格式**:手动配置检测规则 - 点击 **添加** - **规则类型**:注册 - **关键路径**: `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86` - **检测方法**:密钥存在 - **与64位客户端上的32位应用关联**:是的 11. 点击 **“下一页** ”直到结束。 12. 点击 **创建**。 ### 第二个应用 - 创建 VC++ 可重分发(x64)应用程序 这仅适用于64位Microsoft Windows 1. 登录 [Azure门户](https://portal.azure.com) ,进入 **Microsoft Intune**。 2. **选择客户端应用**,然后进入**应用**。 3. 点击**添加**并选择**Windows应用(Win32)。** 4. 点击 **选择应用包文件**,然后选择 `VC_redist.x64.intunewin`。 5. 点击 **确定**。 6. 在 **应用信息** 页面: - 于是, **Microsoft** 作为 **发布者**登场。 - 点击 **下一步**。 7. 在 **节目单** 页面: - **安装命令**: `vc_redist.x64.exe /install /quiet` - **卸载命令**: `vc_redist.x64.exe /uninstall /quiet` - **设备重启行为**:无特定操作 - 其他设置保持默认。 8. 在 **需求** 页面: - **操作系统架构**: - 选择 **“是**”。指定应用可以安装在哪些系统上。 - 选择 **在x64系统上安装** - 根据目标环境选择 **最小操作系统** 。例如:Windows 10 1607 9. 在 **检测规则** 页面: - **规则格式**:手动配置检测规则 - 点击 **添加** - **规则类型**:注册 - **关键路径**: `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64` - **检测方法**:密钥存在 - **与32位应用在64位客户端关联**:否 10. 点击 **“下一页** ”直到结束。 11. 点击 **创建**。 ### 第三个应用程序 - 创建 VC++ 可分发(Arm64)应用程序 这仅适用于64位Microsoft Windows 1. 登录 [Azure门户](https://portal.azure.com) ,点击 **Microsoft Intune**。 2. 选择 **客户端** 应用,然后点击 **应用**。 3. 点击**添加**并选择**Windows应用(Win32)。** 4. 点击 **选择应用包文件**,然后选择 `VC_redist.arm64.intunewin` 5. 点击 **确定**。 6. 在 **应用信息** 页面: 1. 于是, **Microsoft** 作为 **发布者**登场。 2. 点击 **下一步**。 7. 在 **节目单** 页面: 1. **安装命令**: `vc_redist.arm64.exe /install /quiet` 2. **卸载命令**: `vc_redist.arm64.exe /uninstall /quiet` 3. **设备重启行为**:无特定操作 4. 其他设置保持默认。 8. 在 **需求** 页面: 1. **操作系统架构**:Arm64 2. **最低操作系统**:Windows 11 24H2(或更高版本) 9. 在 **检测规则** 页面: 1. **规则格式**:手动配置检测规则 2. 点击 **添加** 3. **规则类型**:注册 1. **关键路径**: `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\ARM64` 2. **检测方法**:密钥存在 3. **与32位应用在64位客户端关联**:否 10. 点击 **“下一页** ”直到结束。 11. 点击 **创建**。 ### 第四个应用——创建HP Insights分析客户端依赖应用 1. 登录 [Azure门户](https://portal.azure.com) ,点击 **Microsoft Intune**。 2. **选择客户端应用**,然后进入**应用**。 3. 点击**添加**并选择**Windows应用(Win32)。** 4. 点击 **选择应用包文件**,然后选择 `HPInsightsAnalyticsDependencies.intunewin`。 5. 点击 **确定**。 6. 在 **应用信息** 页面: - 于是, **惠普公司** 成为 **了出版商**。 - 点击 **下一步**。 7. 在 **节目单** 页面: - **安装命令**: `msiexec /i "HPInsightsAnalyticsDependencies.msi" /q /norestart` - **设备重启行为**:无特定操作 - 其他设置保持默认。 8. 在 **需求** 页面: - **操作系统架构**: **注意**:只有当目标设备在Arm平台上时才选择此选项。 - 点击 **“是**”。指定应用可以安装在哪些系统上。 - 选择 **在x64系统上安装** - 根据目标环境选择 **最小操作系统** 。例如:Windows 10 1607。 - 点击 **在Arm64系统上安装** - 根据目标环境选择最小操作系统。例如:Windows 11 24H2。 9. 在 **检测规则** 页面: - **规则格式**:手动配置检测规则 - 点击 **添加** - **规则类型**:MSI - 其他设置保持默认。 10. 点击 **“下一页** ”直到结束。 11. 点击 **创建**。 **注意**:该软件包无法安装在非惠普制造的个人电脑上,包括虚拟机。 ### 第五个应用——创建并分配HP Insights分析应用 1. 登录 [Azure门户](https://portal.azure.com) ,点击 **Microsoft Intune**。 2. **选择客户端应用**,然后进入**应用**。 3. 点击**添加**并选择**Windows应用(Win32)。** 4. 点击 **选择应用包文件**,然后选择 `HPInsightsAnalytics.intunewin` 5. 点击 **确定**。 6. 在 **应用信息** 页面: - 于是, **惠普公司** 成为 **了出版商**。 - 点击 **下一步**。 7. 在 **节目单** 页面: - **安装命令**: `msiexec /i HPInsightsAnalytics.msi /qn /l*v ta-log.txt` - **设备重启行为**:无特定操作 - 其他设置保持默认。 8. 在 **需求** 页面: - **操作系统架构**: **注意**:只有当目标设备在Arm平台上时才选择此选项。 - 选择 **“是**”。指定应用可以安装在哪些系统上。 - 选择 **在x64系统上安装** - 根据目标环境选择 **最小操作系统** 。例如:Windows 10 1607 - 选择 **安装在Arm64系统上** - 根据目标环境选择最小操作系统。例如:Windows 11 24H2 9. 在 **检测规则** 页面: - **规则格式**:使用自定义检测脚本 - **脚本文件**:在脚本文件中创建 `HPInsightsAnalytics-Detection-Script-Intune.ps1` 并添加内容,保存到本地硬盘。上传 `HPInsightsAnalytics-Detection-Script-Intune.ps1` ```plaintext $logPath = "C:\Temp " $logFile = "$logPath\HPInsightsAnalytics-Detection-Script-Intune.log" # Ensure log directory exists if (!(Test-Path $logPath)) {    New-Item -ItemType Directory -Path $logPath -Force | Out-Null } function Write-Log {    param (        [string]$message    )    $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"    "$timestamp - $message" | Out-File -FilePath $logFile -Append -Encoding utf8 } $serviceName = "HpTouchpointAnalyticsService" Write-Log "Script started. Checking service: $serviceName" # Get service via CIM $service = Get-CimInstance Win32_Service -Filter "Name='$serviceName'" -ErrorAction SilentlyContinue if ($null -eq $service) {    Write-Log "Service not found."    exit 1 } Write-Log "Service found. State: $($service.State)" # Check if service is running if ($service.State -ne "Running") {    Write-Log "Service is not running."    exit 1 } # Extract executable path $exePath = $service.PathName -replace '"','' Write-Log "Executable path: $exePath" # Get Program Files path $programFiles = [Environment]::GetFolderPath("ProgramFiles") Write-Log "Program Files path: $programFiles" # Check path condition if ($exePath -like "$programFiles*") {    Write-Log "Service is installed under Program Files. Detection = SUCCESS"    exit 0 } else {    Write-Log "Service is NOT under Program Files. Detection = FAILED"    exit 1 } ``` - 确保以下选项设置为 **“否**”: - 在64位客户端上运行脚本作为32位进程 - 强制脚本签名检查 - 静默运行脚本 1. 在 **依赖** 页面上: - 点击 **添加**。 - 选择: - `VC_redist.x64.intunewin` (选择用于英特尔) - `HPInsightsAnalyticsDependencies.intunewin` - `VC_redist.arm64.intunewin` (选择适用于Arm64设备) - 确保自动 **安装** 设置为 **“是**”。 2. 将应用分配给目标 **分配组**。 3. 点击 **“下一页** ”直到结束。 4. 点击 **创建**。 ### 第六个应用程序——创建并分配HP Insights应用程序 1. 登录 [Azure门户](https://portal.azure.com) ,点击 **Microsoft Intune**。 2. **选择客户端应用**,然后进入**应用**。 3. 点击**添加**并选择**Windows应用(Win32)。** 4. 点击 **选择应用包文件**,然后选择 `HPInsights.intunewin`。 5. 点击 **确定**。 6. 在 **应用信息** 页面: - 于是, **惠普公司** 成为 **了出版商**。 - 点击 **下一步**。 7. 在 **节目单** 页面: - **如果需要托盘图标**:包含 `HIDETRAY=True` - **安装命令** (无托盘图标): `msiexec /i HPInsights.msi CPIN=<Enter-Company-PIN> HIDETRAY=True /qn /l*v tm-log.txt /norestart` - **设备重启行为**:无特定操作 - 其他设置保持默认。 8. 在 **需求** 页面: - **操作系统架构**: **注意**:只有当目标设备在Arm平台上时才选择此选项。 - 选择 **“是**”。指定应用可以安装在哪些系统上。 - 选择 **在x64系统上安装** - 根据目标环境选择 **最小操作系统** 。例如:Windows 10 1607 - 选择 **安装在ARM64系统上** - 根据目标环境选择 **最小操作系统** 。例如:Windows 11 24小时2 9. 具体说明 **检测规则**: - **规则格式**:使用自定义检测脚本 - **脚本文件**: - [点击这里](https://ftp.hp.com/pub/caps-softpaq/HP_DaaS/DaaS%20Client%20Scripts/GPO/Install/HP-Insights-Installation-Scripts.zip)下载HP Insights应用安装PowerShell脚本文件。 - 提取下载内容`HP-Insights-Installation-Scripts.zip`。它会包含`hp-insights-detection-and-remediation-script-intune.ps1`并打开脚本,并用实际的公司PIN码和**保存**码替换**ENTER_COMPANY_PIN**。 - 上传 `hp-insights-detection-and-remediation-script-intune.ps1` - 请确保以下选项为“否” - 在64位客户端上运行脚本作为32位进程 - 强制脚本签名检查并静默运行脚本 10. 在 **依赖** 页面上: - 点击 **添加** - 选择以下内容: - `VC_redist.x86.intunewin` (针对英特尔设备选择) - `VC_redist.x64.intunewin` (针对英特尔设备选择) - `VC_redist.arm64.intunewin` (选择适用于Arm64设备) - 确保自动 **安装** 设置为 **“是**”。 11. 将应用分配给目标 **分配组**。 12. 点击 **“下一页** ”直到结束。 13. 点击 **创建**。 **注**: - HP Insights Analytics 客户端 - 依赖软件包不能安装在非 HP 制造的 PC,包括虚拟机上。 - 在第6步使用实际的公司PIN码。 ### Intune 应用的一般部署步骤 1. 根据第1节和第2节,逐一创建Intune应用程序。 2. 在 **分配** 部分,选择 **编辑** 选项。 3. 在 **“分配”** 标签页: 1. 进入 **“必需** ”部分,选择 **添加组**、 **添加所有用户**、 **添加所有设备** ,具体取决于部署策略和目标。 4. 对于**静默安装**,请点击终端**用户通知**下的**“显示所有吐司通知**”。 5. 在 **终端用户通知**中,选择 **隐藏所有吐司通知** 并点击 **确定**。 6. 点击 **复习+保存**。 7. 在 **“评测+保存** ”标签页中,点击 **保存**。 **注意**:IT管理员需要根据目标设备和操作系统平台,首先部署到六个应用。 **重要提示**: 如果客户或IT管理员执行严格的PowerShell执行策略(如AllSigned、RemoteSigned或其他受限执行策略),本文提到的脚本(**HPInsightsAnalytics-Detection-Script-Intune.ps1** 和 **wxp-insights-detection-and-remediation-script.ps1**)必须在部署前进行数字签名。 在这样的环境中: - IT管理员必须用批准的代码签名证书签署提供的PowerShell卸载脚本。 - 在配置Intune或SCCM中的应用部署时,必须使用签名脚本。 - IT管理员必须确保对应的代码签名证书(或其发出的CA证书)存在于所有目标设备上本地**计算机**证书存储下的**可信根认证机构**或**可信发布者**存储中。 - 未能满足这些要求可能导致系统执行策略阻挡卸载脚本。 关于卸载,请参阅文章《 [用SCCM或Microsoft Intune卸载HP Insights Windows代理](/wxp/docs/zh-cn/uninstalling-the-hp-insights-windows-agent-with-sccm-or-microsoft-intune) ### 联系我们 如需帮助,请 [创建支持案件](https://learn.workforceexperience.hp.com/docs/zh-cn/creating-a-support-case) 或发送邮件 `support@wxp.hp.com`。