Deploying via Intune with MSI Installer

Prev Next

Deploying via Intune with MSI Installer

Introduction

The Microsoft Intune - MSI Installer is a Windows-based deployment package that enables you (IT administrators) to install and manage the HP Insights Windows Application (also referred to as Windows Agent) across enterprise-managed devices using Microsoft Intune. It is designed to simplify the deployment, update, and management of the HP Insights Windows Application.

This article covers a step-by-step to deploy the Windows Agent using MSI Installer and enroll devices using Microsoft Intune:

  1. Provide the UPN suffixes to the designated HP Service Expert or Business Partner.
  2. Obtain the Company PIN.
    1. Log in to WXP and click Settings > Preferences.
    2. On the Preferences tab, scroll to the Company PIN section and copy the pin.
  3. Download the HP Insights Windows Application (MSI Installer)
  4. Convert the HP Insights Windows Application (MSI Installer) with the Microsoft Win32 Content Prep Tool
  5. Create HP Insights Windows Application (MSI Installer) in Microsoft Intune.

Target Audience

IT Adminstrators who want to set up and manage the Workforce Experience Platform using cloud-based tools from Intune through silent installation parameters and configuration management tools provided by MSI.

Prerequisites

  • User must have Admin role in Microsoft Azure.
    • The admin's email is displayed in the Primary User UPN.
  • The admin's device must be added the Company Portal, a free app from Microsoft.

Download the HP Insights Windows Application (MSI Installer)

  1. Download the HP Insights Windows Application MSI installer and dependencies.
  2. Save the contents of the .zip file to a location accessible by Intune.

Note: There are two .zip files: HPInsights.zip for 32-bit and 64-bit platforms and HPInsights-arm64.zip for ARM64 platforms. The HPInsights-arm64.zip file includes an additional VC++ redistributable (ARM64). Based on the target platform, use the contents of the appropriate .zip file.

  1. VC++ redistributable (x86)
  2. VC++ redistributable (x64)
  3. VC++ redistributable (ARM64)
  4. HP Insights Analytics Client dependencies
  5. HP Insights Analytics Client package
  6. HP Insights Manager Application

Note: The HP Insights Analytics Client - Dependencies package cannot be installed on non-HP manufactured PCs, including virtual machines.

Convert the Workforce Experience Platform for Windows Application (MSI Installer) with the Microsoft Win32 Content Prep Tool

  1. Download the Win32 Content Prep Tool here.
  2. Save or download the IntuneWinAppUtil.exe to a local folder along with the MSI and .exe files downloaded earlier.
  3. Open an Admin command prompt and run the following commands individually to convert the installers to IntuneWin format. Replace [folder name] with the local folder where the files are downloaded. (Ensure each downloaded .exe or .msi installer file is saved in a separate folder. Also, note that the input and output folder names must be different, otherwise, an installation error will occur):
    1. IntuneWinAppUtil.exe -c [folder name] -s VC_redist.x86.exe -o [folder name]
    2. IntuneWinAppUtil.exe -c [folder name] -s VC_redist.x64.exe -o [folder name]
    3. IntuneWinAppUtil.exe -c [folder name] -s VC_redist.arm64.exe -o [folder name]
      Note: Use this command only if the target deployment is on ARM devices.
    4. IntuneWinAppUtil.exe -c [folder name] -s HPInsightsAnalytics.msi -o [folder name]
    5. IntuneWinAppUtil.exe -c [folder name] -s HPInsights.msi -o [folder name]
  4. After the files are successfully converted, the following IntuneWin files are created will appear:
    1. VC_redist.x86.intunewin
    2. VC_redist.x64.intunewin
    3. VC_redist.arm64.intunewin
      Note: Use this command the target deployment is on ARM devices.
    4. HPInsightsAnalyticsDependencies.intunewin
    5. HPInsightsAnalytics.intunewin
    6. HPInsights.intunewin

Creating Applications in Microsoft Intune

First application: Create VC++ redistributable (x86) Application

  1. Sign in to the Azure portal. The Home page is displayed.
  2. Go to Microsoft Intune Admin Center.
  3. Select Client Apps, then go to Apps.
  4. Click Add and select Windows App (Win32).
  5. Click Select app package file, then select VC_redist.x86.intunewin
  6. Click OK.
  7. On the App Information page:
    • Enter Microsoft as the Publisher.
    • Click Next.
  8. On the Program page:
    • Install command: vc_redist.x86.exe /install /quiet
    • Uninstall command: vc_redist.x86.exe /uninstall /quiet
    • Device restart behavior: No specific action
    • Leave all other settings as default.
  9. On the Requirements page:
    • Operating system architecture:
      • Select Yes. Specify the systems the app can be installed on.
      • Select Install on x86 system
      • Select Install on x64 system
      • Select **Install on ARM64 system **
        Note: Select this option only if the target devices are on ARM platform
      • Select Minimum operating system as per target environment. For example: Windows 10 1607
  10. On the Detection Rules page:
    • Rules format: Manually Configure Detection Rules
    • Click Add
    • Rule Type: Registry
      • Key path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86
      • Detection method: Key Exists
      • Associated with a 32-bit app on 64-bit clients: Yes
  11. Click Next until the end.
  12. Click Create.

Second Application - Create VC++ Redistributable (x64) Application

This is only for 64-bit Microsoft Windows

  1. Sign in to the Azure portal and go to Microsoft Intune.
  2. Select Client Apps, then go to Apps.
  3. Click Add and select Windows App (Win32).
  4. Click Select app package file, then select VC_redist.x64.intunewin.
  5. Click OK.
  6. On the App Information page:
    • Enter Microsoft as the Publisher.
    • Click Next.
  7. On the Program page:
    • Install command: vc_redist.x64.exe /install /quiet
    • Uninstall command: vc_redist.x64.exe /uninstall /quiet
    • Device restart behavior: No specific action
    • Leave all other settings as default.
  8. On the Requirements page:
    • Operating system architecture:
      • Select Yes. Specify the systems the app can be installed on.
      • Select Install on x64 system
      • Select Install on ARM64 system
        Note: Select this option only if target devices are on ARM platform.
      • Select Minimum operating system as per target environment. For example: Windows 10 1607
  9. On the Detection Rules page:
    • Rules format: Manually Configure Detection Rules
    • Click Add
    • Rule Type: Registry
      • Key path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\_Microsoft\VisualStudio\14.0\VC\Runtimes\x64
      • Detection method: Key Exists
      • Associated with a 32-bit app on 64-bit clients: No
  10. Click Next until the end.
  11. Click Create.

Third Application - Create VC++ Redistributable (ARM64) Application

This is only for 64-bit Microsoft Windows

  1. Sign in to the Azure portal and click Microsoft Intune.
  2. Select Client Apps, then click Apps.
  3. Click Add and select Windows App (Win32).
  4. Click Select app package file, then select VC_redist.arm64.intunewin
  5. Click OK.
  6. On the App Information page:
    1. Enter "Microsoft" as the Publisher.
    2. Click Next.
  7. On the Program page:
    1. Install command: vc_redist.arm64.exe /install /quiet
    2. Uninstall command: vc_redist.arm64.exe /uninstall /quiet
    3. Device restart behavior: No specific action
    4. Leave all other settings as default.
  8. On the Requirements page:
    1. Operating system architecture: ARM64
    2. Minimum OS: Windows 10 1609 (or whichever version is oldest)
  9. On the Detection Rules page:
    1. Rules format: Manually Configure Detection Rules
    2. Click Add
    3. Rule Type: Registry
      1. Key path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\ARM64
      2. Detection method: Key Exists
      3. Associated with a 32-bit app on 64-bit clients: No
  10. Click Next until the end.
  11. Click Create.

Fourth Application - Create HP Insights Analytics Client Dependencies Application

  1. Select Client Apps, then go to Apps.
  2. Click Add and select Windows App (Win32).
  3. Click Select app package file, then select HPInsightsAnalyticsDependencies.intunewin.
  4. Click OK.
  5. On the App Information page:
    • Enter HP Inc. as the Publisher.
    • Click Next.
  6. On the Program page:
    • Install command: msiexec /i "HPInsightsAnalyticsDependencies.msi" /q /norestart
    • Device restart behavior: No specific action
    • Leave all other settings as default.
  7. On the Requirements page:
    • Operating system architecture:
      • Select Yes. Specify the systems the app can be installed on.
      • Select Install on x64 system
      • Select Install on ARM64 system
        Note: Select this option only if target devices is on ARM platform
    • Select Minimum operating system as per target environment. For example: Windows 10 1607
  8. On the Detection Rules page:
    • Rules format: Manually Configure Detection Rules
    • Click Add
    • Rule Type: MSI
    • Leave all settings as default.
  9. Click Next until the end.
  10. Click Create.

Note: This package cannot be installed on non-HP manufactured PCs, including virtual machine.

Fifth Application - Create and Assign HP Insights Analytics Application

  1. Select Client Apps, then go to Apps.
  2. Click Add and select Windows App (Win32).
  3. Click Select app package file, then select HPInsightsAnalytics.intunewin.
  4. Click OK.
  5. On the App Information page:
    • Enter HP Inc. as the Publisher.
    • Click Next.
  6. On the Program page:
    • Install command: msiexec /i HPInsightsAnalytics.msi /qn /l*v ta-log.txt
    • Device restart behavior: No specific action
    • Leave all other settings as default.
  7. On the Requirements page:
    • Operating system architecture:
      • Select Yes. Specify the systems the app can be installed on.
      • Select Install on x64 system
      • Select Install on ARM64 system
        Note: Select this option only if the target devices are on ARM platform.
      • Select Minimum operating system as per target environment. For example: Windows 10 1607
  8. On the Detection Rules page:
    • Rules format: Use a custom detection script
    • Script file: Create HPInsightsAnalytics-Detection-Script-Intune.ps1 and add below contents in it and save on local drive. Upload HPInsightsAnalytics-Detection-Script-Intune.ps1
$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
}
  • Ensure the following are set to No:
    • Run script as 32-bit process on 64-bit clients
    • Enforce script signature check
    • Run script silently
  1. On the Dependencies page:
    • Click Add.
    • Select:
      • VC_redist.x64.intunewin
      • HPInsightsAnalyticsDependencies.intunewin
    • Ensure Automatically Install is set to Yes.
  2. Assign the app to the targeted Assignment Groups.
  3. Click Next until the end.
  4. Click Create.

Sixth Application - Create and Assign HP Insights Application

  1. Select Client Apps, then go to Apps.
  2. Click Add and select Windows App (Win32).
  3. Click Select app package file, then select HPInsights.intunewin.
  4. Click OK.
  5. On the App Information page:
    • Enter HP Inc. as the Publisher.
    • Click Next.
  6. On the Program page:
    • If Tray icon is required: include HIDETRAY=True
    • Install command (no Tray icon):
      msiexec /i HPInsights.msi CPIN=<Enter-Company-PIN> HIDETRAY=True /qn /l*v tm-log.txt /norestart
    • Device restart behavior: No specific action
    • Leave all other settings as default.
  7. On the Requirements page:
    • Operating system architecture:
      • Select Yes. Specify the systems the app can be installed on.
      • Select Install on x64 system
      • Select Install on ARM64 system
        Note: Select this option only if the target devices is on ARM platform
    • Select Minimum operating system as per target environment. For example: Windows 10 1607
  8. Specify the Detection rules:
    • Rules format: Use a custom detection script
    • Script file: Create HPInsights-Detection-Script-Intune.ps1 and add below contents in it and save on local drive. Upload HPInsights-Detection-Script-Intune.ps1
$service = Get-Service -Name "hpLHAgent" -ErrorAction SilentlyContinue
if ($null -eq $service) {
    exit 1
}
exit 0
  • Ensure the below options are selected as No
    • Run script as 32-bit process on 64-bit clients
    • Enforce script signature check and run script silently
  1. On the Dependencies page:
    • Click Add
    • Select the following:
      • VC_redist.x86.intunewin (for 32-bit OS)
      • VC_redist.x64.intunewin (for 64-bit OS)
      • VC_redist.arm64.intunewin (for ARM64 OS)
    • Ensure Automatically Install is set to Yes.
  2. Assign the app to the targeted Assignment Groups.
  3. Click Next until the end.
  4. Click Create.

Note:

  • The HP Insights Analytics Client - Dependencies package cannot be installed on non-HP manufactured PCs, including virtual machines.
  • Use the actual company pin in step 6.

General Deployment Steps for an Application in Intune:

  1. In the Assignments Section, Click Edit.
  2. In the Assignments tab:
    1. Go to the Required section and select Add group, Add all users, Add all devices depending on the deployment strategy and target.
  3. For Silent Installation, click Show all toast notifications under End user notifications.
  4. In the End user notifications, Select Hide all toast notifications and click OK.
  5. Click Review + save.
  6. In the Review + save tab, click Save.

Note: IT Administrator needs to deploy above application first to six based on target devices, target devices operating system platform.

Important:

If the customer or IT Administrator is enforcing strict PowerShell execution policies (such as AllSigned, RemoteSigned, or other restricted execution policies), the scripts mentioned in this article (HPInsightsAnalytics-Detection-Script-Intune.ps1 and HPInsights-Detection-Script-Intune.ps1) must be digitally signed before deployment.
In such environments:

  • The IT Administrator must sign the provided PowerShell uninstall script with an approved code-signing certificate.
  • The signed script must be used when configuring the application deployment in Intune or SCCM.
  • The IT Administrator must ensure that the corresponding code-signing certificate (or its issuing CA certificate) is present in the Trusted Root Certification Authorities or Trusted Publishers store under the Local Computer certificate store on all target devices.
  • Failure to meet these requirements may result in the uninstall script being blocked by the system execution policy.

Contact Us

For any assistance, create a support case or email support@wxp.hp.com.