“Would You like to Install This Device Software?” – How to avoid this popup for package silent install

Ever get this when trying to create an MSI from an exe, or MST from an MSI?

Usually this happens when a separate driver install is triggered in the exe, or as a custom action in the msi, and the driver is untrusted.
To get around this you’ll need extract the driver files and certificate to avoid this message and make your package a silent install with PSADT.

Follow the Lumenera example below:

Install Adobe Reader first before capture. This is a required pre-req condition for the application. You’ll get this warning:

Use Repackager to create an MSI.

Save the msi.

For this particular app, run the installer again on a fresh VM but do not proceed past first window. Go to your userprofile – Appdata – Local – Temp folder and extract the driver install files. For other apps, you’ll need to figure out where the driver files are copied to. Copy these files and folder to the PSADT SupportFiles folder.

DPInst64.exe was included in the driver folder so just running it will produce the popup (if you don’t have dpinst64.exe then just install the app again and let it’s install create the certificate.)

To avoid this, you must proceed and have the program create a certificate.

Run certmgr.msc and navigate to Trusted Publishers>Certificates>”Lumenera Corporation”. Right click the cert and export it. Leave all questions at default.

Copy the cert to PSADT SupportFiles folder. Adding the cert before installing the drivers is all handled in the PSADT script.

PSADT script:

##*===============================================
##* INSTALLATION
##*===============================================
Execute-MSI -Action 'Install' -Path "$dirFiles\Infinity_Software.msi"

## Import certificate and install drivers

Get-ChildItem -Path "$dirSupportFiles\Drivers\Lumenera.cer" | Import-Certificate -CertStoreLocation Cert:\LocalMachine\TrustedPublisher

Execute-Process -Path 'PnPutil.exe' -Parameters "/a `"$dirSupportFiles\Drivers\lucaminf.inf`""
##*===============================================
##* UNINSTALLATION
##*===============================================
Execute-MSI -Action Uninstall -Path '{<APP_GUID>}'

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.