I have a script working fine with msi but it doesn't work with exe installer. Need professional advise and help
The first part of script create a folder and unzip the zipped folder which contain setup.exe
But the rest part of script running 3 installers didn't work , just hanging. If I manually run each installer at PS console, it is ok but I want them to run in sequence , silently and remotely with GPO that has already enabled PSRemoting. GPO also set up to load the files (unzipped)in local C:\test folder:
# install msi and exe Installer$installer = 'c:\test'
$exe = @('$installer\dellDriver\dellver1.02\setup','$installer\dellDriver\firmDriver_Win7_64Bit')
$msi = @('$installed\Installer_Win7')
#foreach ($exefile in $exe)
{
start-process -FilePath "c:\test\dellDriver\dellver1.02\\Setup.exe" /s
Start-Process -FilePath "c:\test\dellDriver\firmDriver_Win7_64Bit.exe" /s
Start-Sleep 120
Start-Process -FilePath "c:\test\Installer_Win7.msi" -ArgumentList "/qn" -wait
}