I'm trying to launch setup.exe from an HP OfficeJet Scanner driver (which doesn't appear to have any silent switches). Yes i could (should?) probably strip out the .cat .inf and other junk and stage with pnputil and try to install the driver and then awkwardly install the .MSI files buried inside afterwards, but in this instance i'd like to try to understand why setup.exe is not working. Besides i don't know what else i'm missing by not using it and i really don't understand WHY it's not working.
The idea is to have the installation popup on screen and have the user complete the steps in the wizard under NTAUTH\System via intune win32 package.
The script works perfectly when run as a local administrative user, however does NOT run interactively when run via NTAUTH\system, so they cannot interact with the prompt.
I've tried with and without ShellExecute, seems to make no difference.
Have reverted to PSADT3 and i cannot get it to work with Execute-Process + ServiceUI.exe either... i have tried with Start-Process cmdlet as well, no dice.
weirdly i CAN get serviceUI.exe -Process:Explorer.exe Setup.exe to work!... but because the Setup.exe needs to wait for child processes to complete, it terminates almost immediately, and although at that point i DO technically have an interactive process the user could follow... the install has failed detection at this point in intune.
I have also tried a wrapper powershell: ServiceUI.exe -Process:Explorer.exe Powershell.exe -command "Start-process -FilePath '.\setup.exe' -Wait" ... and that for some reason that also fails.
There's a few more things i've tried as well but i am at my wits end here..
Not sure if i can link here, but the drivers are here: https://support.hp.com/us-en/drivers/hp-officejet-pro-8120e-all-in-one-printer-series/model/2101446611?sku=405U3B
Can anyone get this working in a win32 app package?... are there options i'm missing trying with Start-ADTProcess or something that would allow this to work? I've added -WaitforChildProcesses and whilst that allows it to work with the local admin perfectly, for some reason, it just doesn't become interactive when launched via NTAUTH\System ...
I have also tried adding -DeployMode Interactive, but that doesn't seem to work either...
It's specifically the scanner driver "HP Universal Scan - Full Feature Software and Driver" with file (which is extracted naturally before you can reach setup.exe) :
Full_Webpack-63.6.6364-SJ0001_Full_Webpack.exe
please help!... ![]()