I have a silent uninstall & install script that I need to run. My question is how do I/can I run them both so it uninstalls the old version of the Software followed by installing the new version silently in the backgroup on the user machine? My eventual goal is to deploy the silent scripts via Group Policy in AD to about 80-100 users. Script is below, thank you!
SILENT UNINSTALL: Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq "SOFTWARE NAME"} | foreach-object -process {$_.Uninstall()}
SILENT INSTALL:
$arguments="/quiet"
Start-Process "\\SOMELOCATION\SOFTWARE.msi" $arguments
- See more at: http:/