Page 1 of 1

HP Support Assistant Package

Published: October 28, 2021 - 6:07 PM
by Pierre Baridon
Hello,

has anyone here ever worked on a package to deploy "HP Support Assistant" (an update/support tool for HP workstations)?

I'm having some difficulty with the package. Installation with an administrator account is no problem, however, with the local system account at boot, some dependencies fail to install.

Thanks!

Pierre

Re: HP Support Assistant Package

Published: February 3, 2022 - 12:14 AM
by Eddy
Good evening,

could you share your script?
I'm not particularly familiar with Python.
After trying several scripts, an error occurs every time...

Thanks in advance

, Eddy

Re: HP Support Assistant Package

Published: June 9, 2022 - 5:25 PM
by Pierre Baridon
Good morning,

Here is the first draft of my script:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
import time

"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
CommandVendor = 'wmic systemenclosure get manufacturer'
CommandModel = 'wmic COMPUTERSYSTEM get Model'

Vendor = str(run(CommandVendor))
Model = str(run(CommandModel))



def install():
    # Declaring local variables

    print ("Fabricant : ", Vendor)
    print ("Model : ", Model)



    if Vendor.find('HP') != -1 :

        print("Installation Prerequis")


        print("Installation de HP Support Assistant sur machine HP")

        # Installing the software
        print("Installing: %s" % control.package)
        #install_exe_if_needed('InstallHPSA.exe',
        #    silentflags='/S /v/qn',
        #    key='',
        #    min_version=control.get_software_version(),
        #)
        install_exe_if_needed('setup.exe',
            silentflags='-s',
            key='',
            min_version=control.get_software_version(),
        )

    else:
        print("Pas un materiel HP")    


def uninstall():
    print("désinstallation de HP Support Assistant")
    run ('"' + makepath(programfiles32,'HP','HP Support Framework','UninstallHPSA.exe') + r'" /S /v/qn')

Re: HP Support Assistant Package

Published: June 10, 2022 - 09:39
by florentR2
Hello,
I've noticed that HPIA doesn't necessarily require installation.
You can simply retrieve the folder from a PC where it's installed. I chose this solution and then set up a scheduled task that launches HPIA tasks via the command line.

Re: HP Support Assistant Package

Published: June 22, 2022 - 5:03 PM
by Pierre Baridon
florentR2 wrote: June 10, 2022 - 9:39 AM Hello,
I noticed that HPIA doesn't necessarily require installation.
You can simply retrieve the folder from a PC where it's installed. I chose this solution and then set up a scheduled task that launches HPIA tasks via the command line.
Good morning,
Do you have any documentation/examples for launching tasks via the CLI?

Re: HP Support Assistant Package

Published: June 22, 2022 - 5:08 PM
by florentR2
There's a CLI section in the documentation: https://ftp.hp.com/pub/caps-softpaq/cmi ... rGuide.pdf