Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

calling many MSI files in a row

$
0
0

I am trying to run 7 installers in a row and so far I can't get it to work.  

Start-Process"\\Server\Share\Acme13.exe"
Start-Sleep-s 1
Start-Process-FilePath msiexec /i "\\Server\Share\\1_AcmeClient_Setup.msi"/qb! ADDLOCAL=ALL /l*v "c:\logs\1_AcmeCleint13.log"-Wait
Start-Sleep-s 1
copy "\\Server\Share\\*.pbd""C:\Program Files\Acme1302"/Y


Start-Process msiexec /i "\\Server\Share\2_SQLSysClrTypes.msi"/qb! ADDLOCAL=ALL /l*v "c:\logs\2_SQLSysClrTypes13.log"-Wait
Start-Process msiexec /i "\\Server\Share\3_AcmeReports_Setup.msi"/qb! ADDLOCAL=ALL /l*v "c:\logs\3_AcmeReports_Setup.log"-Wait
Start-Process msiexec /i "\\Server\Share\4_AcmeFormEditorLibrary.msi"/qb! ADDLOCAL=ALL /l*v "c:\logs\4_AcmeEditorLibrary.log"-Wait
Start-Process msiexec /i "\\Server\Share\5_ReportViewer.msi"/qb! ADDLOCAL=ALL /l*v "c:\logs\5_ReportViewer.log"-Wait
Start-Process msiexec /i "\\Server\Share\6_sqlncli.msi"/qb! IACCEPTSQLNCLILICENSETERMS=YES /l*v "c:\logs\6_sqlncli.log"-Wait
How do you call many .MSI files and have it wait for each one to end before you start the next one?


Viewing all articles
Browse latest Browse all 6937

Trending Articles