Boxsync silent install...

Topics: Archive - Deployment Scripts
Jul 18, 2014 at 4:02 PM
Probably could use some tweaking..

*===============================================

* INSTALLATION

$installPhase = "Installation"

*===============================================

 If ($psArchitecture -eq "x64") { execute-process -FilePath "vcredist_x64.exe" -Arguments "/install /quiet /norestart"  -ContinueOnError $true}
 ElseIf ($psArchitecture -eq "x86") { execute-process -FilePath "vcredist_x86.exe" -Arguments "/install /quiet /norestart"  -ContinueOnError $true}

 execute-process -filepath "dotNetFx40_Full_x86_x64.exe" -arguments '/q /norestart /msioptions "SKIP_PENDINGREBOOT_CHECK=1"'  -ContinueOnError $true
If ($psArchitecture -eq "x64") { Execute-MSI -Action Install -path "SyncMSI64.msi" -parameters "/Q" }
ElseIf ($psArchitecture -eq "x86") { Execute-MSI -Action Install -path "SyncMSI32.msi" -parameters "/Q" }

*===============================================

* POST-INSTALLATION

$installPhase = "Post-Installation"

*===============================================

start-sleep -s 10
Stop-Process -processname boxsync*