-
-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathInstall.ps1
More file actions
18 lines (15 loc) · 782 Bytes
/
Install.ps1
File metadata and controls
18 lines (15 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#Requires -RunAsAdministrator
#Requires -Version 5.1
if (-not (Test-Path -Path $PSScriptRoot\Office\Data\*\stream.x64.x-none.dat))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "There aren't neccessary Office files to install. Please do not move Install.ps1 from where all files are." -Verbose
}
if (-not (Test-Path -Path $PSScriptRoot\Config.xml))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "There is no Config.xml in $PSScriptRoot." -Verbose
}
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "Installing downloaded components..." -Verbose
Start-Process -FilePath "$PSScriptRoot\setup.exe" -ArgumentList "/configure `"$PSScriptRoot\Config.xml`"" -Wait