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:
- Provide the UPN suffixes to the designated HP Service Expert or Business Partner.
- Obtain the Company PIN.
- Log in to WXP and click Settings > Preferences.
- On the Preferences tab, scroll to the Company PIN section and copy the pin.
- Download the HP Insights Windows Application (MSI Installer)
- Convert the HP Insights Windows Application (MSI Installer) with the Microsoft Win32 Content Prep Tool
- 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)
- Download the HP Insights Windows Application MSI installer and dependencies.
- 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.
- VC++ redistributable (x86)
- VC++ redistributable (x64)
- VC++ redistributable (ARM64)
- HP Insights Analytics Client dependencies
- HP Insights Analytics Client package
- 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
- Download the Win32 Content Prep Tool here.
- Save or download the IntuneWinAppUtil.exe to a local folder along with the MSI and .exe files downloaded earlier.
- 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):
IntuneWinAppUtil.exe -c [folder name] -s VC_redist.x86.exe -o [folder name]IntuneWinAppUtil.exe -c [folder name] -s VC_redist.x64.exe -o [folder name]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.IntuneWinAppUtil.exe -c [folder name] -s HPInsightsAnalytics.msi -o [folder name]IntuneWinAppUtil.exe -c [folder name] -s HPInsights.msi -o [folder name]
- After the files are successfully converted, the following IntuneWin files are created will appear:
VC_redist.x86.intunewinVC_redist.x64.intunewinVC_redist.arm64.intunewin
Note: Use this command the target deployment is on ARM devices.HPInsightsAnalyticsDependencies.intunewinHPInsightsAnalytics.intunewinHPInsights.intunewin
Creating Applications in Microsoft Intune
First application: Create VC++ redistributable (x86) Application
- Sign in to the Azure portal. The Home page is displayed.
- Go to Microsoft Intune Admin Center.
- Select Client Apps, then go to Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
VC_redist.x86.intunewin - Click OK.
- On the App Information page:
- Enter Microsoft as the Publisher.
- Click Next.
- 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.
- Install command:
- 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
- Operating system architecture:
- 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
- Key path:
- Click Next until the end.
- Click Create.
Second Application - Create VC++ Redistributable (x64) Application
This is only for 64-bit Microsoft Windows
- Sign in to the Azure portal and go to Microsoft Intune.
- Select Client Apps, then go to Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
VC_redist.x64.intunewin. - Click OK.
- On the App Information page:
- Enter Microsoft as the Publisher.
- Click Next.
- 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.
- Install command:
- 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
- Operating system architecture:
- 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
- Key path:
- Click Next until the end.
- Click Create.
Third Application - Create VC++ Redistributable (ARM64) Application
This is only for 64-bit Microsoft Windows
- Sign in to the Azure portal and click Microsoft Intune.
- Select Client Apps, then click Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
VC_redist.arm64.intunewin - Click OK.
- On the App Information page:
- Enter "Microsoft" as the Publisher.
- Click Next.
- On the Program page:
- Install command:
vc_redist.arm64.exe /install /quiet - Uninstall command:
vc_redist.arm64.exe /uninstall /quiet - Device restart behavior: No specific action
- Leave all other settings as default.
- Install command:
- On the Requirements page:
- Operating system architecture: ARM64
- Minimum OS: Windows 10 1609 (or whichever version is oldest)
- 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\ARM64
- Detection method: Key Exists
- Associated with a 32-bit app on 64-bit clients: No
- Click Next until the end.
- Click Create.
Fourth Application - Create HP Insights Analytics Client Dependencies Application
- Select Client Apps, then go to Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
HPInsightsAnalyticsDependencies.intunewin. - Click OK.
- On the App Information page:
- Enter HP Inc. as the Publisher.
- Click Next.
- On the Program page:
- Install command:
msiexec /i "HPInsightsAnalyticsDependencies.msi" /q /norestart - Device restart behavior: No specific action
- Leave all other settings as default.
- Install command:
- 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
- Operating system architecture:
- On the Detection Rules page:
- Rules format: Manually Configure Detection Rules
- Click Add
- Rule Type: MSI
- Leave all settings as default.
- Click Next until the end.
- 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
- Select Client Apps, then go to Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
HPInsightsAnalytics.intunewin. - Click OK.
- On the App Information page:
- Enter HP Inc. as the Publisher.
- Click Next.
- 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.
- Install command:
- 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
- Operating system architecture:
- On the Detection Rules page:
- Rules format: Use a custom detection script
- Script file: Create
HPInsightsAnalytics-Detection-Script-Intune.ps1and add below contents in it and save on local drive. UploadHPInsightsAnalytics-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
- On the Dependencies page:
- Click Add.
- Select:
VC_redist.x64.intunewinHPInsightsAnalyticsDependencies.intunewin
- Ensure Automatically Install is set to Yes.
- Assign the app to the targeted Assignment Groups.
- Click Next until the end.
- Click Create.
Sixth Application - Create and Assign HP Insights Application
- Select Client Apps, then go to Apps.
- Click Add and select Windows App (Win32).
- Click Select app package file, then select
HPInsights.intunewin. - Click OK.
- On the App Information page:
- Enter HP Inc. as the Publisher.
- Click Next.
- 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.
- If Tray icon is required: include
- 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
- Operating system architecture:
- Specify the Detection rules:
- Rules format: Use a custom detection script
- Script file: Create
HPInsights-Detection-Script-Intune.ps1and add below contents in it and save on local drive. UploadHPInsights-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
- 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.
- Assign the app to the targeted Assignment Groups.
- Click Next until the end.
- 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:
- In the Assignments Section, Click Edit.
- In the Assignments tab:
- Go to the Required section and select Add group, Add all users, Add all devices depending on the deployment strategy and target.
- For Silent Installation, click Show all toast notifications under End user notifications.
- In the End user notifications, Select Hide all toast notifications and click OK.
- Click Review + save.
- 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.