Scripting Question

Silent install with Powershell.

10/30/2017 8696 views

I'm trying to make a silent install of a AMD driver with Powershell, but for some reason, I always get the AMD installation screen.
My arguments seem to be all right because I do not have to click anywhere and the installation completes by itself.
Is there any way to install it without any windows poping up? I can install 7zip silently the same way without any problem.

I am using the following Powershell code:
Set-ExecutionPolicy Unrestricted
$Logpath = 'C:\powershell.log'

function Install_app


$exe_to_execute = 'C:\Setup.exe'
$argument  = '/unattended_install:"..\Packages\Drivers\Display\W76A_INF;..\Packages\Drivers\amdkmpfd\W764a;..\Packages\Apps\ACP64;..\Packages\Apps\AppEx;..\Packages\Apps\CCC2;..\Packages\Apps\CIM;..\Packages\Apps\VC12RTx64\" /autoaccept_all /force_hide_first_run /force_close_when_done /on_reboot_message:no'

$process = Start-Process  -FilePath $exe_to_execute  -ArgumentList $argument  -Wait -PassThru -NoNewWindow 

# Loop until process exits
do {start-sleep -Milliseconds 500}
until ($process.HasExited)
# Log results
$(Get-Date).ToString() + "  Exit code " + $process.ExitCode |  Out-File $Logpath -Append 



0 Comments   [ + ] Show comments


All Answers


You didn't say what version of Windows you are using.  I ran into this recently with a driver install in Windows 7 for another product.  How is the driver signed?  If using a SHA256 or higher certificate, you will need to install a couple of hotfixes prior to installing your driver:

This one removes the Untrusted Publisher dialog box you may be seeing:


This one adds support for SHA-2 Code Signing Support for Windows 7 and Server 2008 R2:


Answered 11/06/2017 by: kalucas
Senior Yellow Belt

Hi, in fact my script is working fine. It has to be run with the system account otherwise you get interactive windows.
It was for windows 7 64 bits.

Answered 11/06/2017 by: Portafreak
White Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ