• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended
HPIA

I have been working to automate a silent install of updates, ordered by non-restart and then restart, using Powershell.

 

Upon executing hp-hpia-5.3.1.exe /s in a user session, HPIA files get put into C:\SWSetup\sp155835, but then not only does the GUI of HPIA open, but an Explorer window to c:\swsetup\sp155835 opens up! Does HP understand what silent means?

 

I am using c:\swsetup\sp155835\hpimageassistant.exe /operation:analyze /action:download... after, but of course this operation can't proceed until HPIA is finished being unzipped, which is held up by the fact I have to -wait for the installer to finish, including those swawned windows being closed. Advising the user to close these defeats the purpose of scripting this!

 

Am I missing a switch to stop HPIA "helpfully" opening up the GUI, or do I have to introduce more code to kill both the GUI and the window, or figure out how to launch them in a console-less session?

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

For the current version (5.3.1), this kills at least HP Image Assistant GUI that appears after the installer runs, which is the only thing that prevents scripted use of the cmd line version post that, until closed. I am going to just refocus the script window over the File Explorer window to the cmd/hui file, as the PC is restarted at conclusion of the rest of my script.

 

[system.collections.arraylist]$ToKillWindows = @("hpimageassistant.dll")

 

do
{

  foreach($ToKillWindow in $ToKillWindows)
  {
    $Process = get-process -name $ToKillWindow -erroraction silentlycontinue

 

    if($Process)
    {
      try
      {
        stop-process $Process
      }
      catch
      {
        #Do logging here
      }

 

     $i++

    }

 

    start-sleep -seconds 5

  }

}
until($i -eq $ToKillWindows.count)

View solution in original post

10 REPLIES 10
HP Recommended

Hi @Megabyte24 

 

I think it lacks the commando at the end

/silent

 

see examples in the manual on page 24

HP Image Assistant User Guide

- if I can help solve your question or issue, please click on ACCEPT AS SOLUTION or click the YES button if my answer was helpful.
HP Recommended

Sorry, I think there is some confusion here. My issue is at the stage of unpacking HPIA from hp-hpia-5.3.1.exe . The commands, which is the next step (doing analysis/downloading the updates), on page 24, respect the /silent argument.

 

hp-hpia-5.3.1.exe doesn't respect /s totally (if doesn't bring up a GUI wizard for installation of HPIA, but does produce those two other windows, presuming at the end of unpacking HPIA.

HP Recommended

to unpack the HPIA I don't believe there is a silent command

- if I can help solve your question or issue, please click on ACCEPT AS SOLUTION or click the YES button if my answer was helpful.
HP Recommended

hp-hpia-5.3.1 produces a GUI wizard to install HPIA, then launches HPIA

hp-hpia-5.3.1 /s produces a File Explorer window of C:\SWSetup\sp155835 (full with files that would indicate to me to be done after finishing unpacking HPIA), and then launches the HPIA.

HP Recommended

I understand, I don't think it is possible to silent it doesn't make sense to silent. The application when unpacked should also check for updates.

- if I can help solve your question or issue, please click on ACCEPT AS SOLUTION or click the YES button if my answer was helpful.
HP Recommended

"It doesn't make sense to silent it"?!?! Yes it does. I want it to install silently, then use the /silent switch of the command to actually do the analysing/downloading/installing to handle what presumably is the reason for the GUI to appear. Why have a /s switch that clearly changes the operation of the installer (for one of the silent operations), then a /silent switch to run HPIA on the command line, if the intention was to ONLY use the gui???

 

Either have a /s switch that ACTUALLY makes the HPIA installer silent, and keep the /silent switch on hpimageassistant.exe (which ironically ACTUALLY operates silently), or remove them both!

HP Recommended

but the application only needs to be unpacked once, there is no sense to repeat the same ones several times, once unpacked you can use your silent command

- if I can help solve your question or issue, please click on ACCEPT AS SOLUTION or click the YES button if my answer was helpful.
HP Recommended

I don't have any network storage to store the unpacked HPIA to use on the 100's of PCs I need to run this on, but the principle remains. Don't have a /s (silent) tag and not make it COMPLETELY silent. If a programmer needs to launch the GUI, they have a way to do this, easily. Users of HPIA have no easy way to prevent windows popping up that don't adhere to commonly held understanding of what silent means.

HP Recommended

I use HPIA and I don't know any command that allows that, if you can do it please share with us.

- if I can help solve your question or issue, please click on ACCEPT AS SOLUTION or click the YES button if my answer was helpful.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.