Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Arch = Get-WmiObject -Class Win32_Processor | Select AddressWidth
- $32 = test-path "C:\Program Files\Microsoft Office\Office15\lync.exe"
- $64 = test-path "C:\Program Files (x86)\Microsoft Office\Office15\lync.exe"
- $Install = "\\afs01v\Software\Lync_2013\x86\setup.exe"
- if (($Arch.AddressWidth -eq "32") -and ($32 -eq $true))
- {
- Write-Output "Lync 2013 is already installed, continuing logon. Please wait..."
- }
- elseif (($Arch.AddressWidth -eq "64") -and ($64 -eq $true))
- {
- Write-Output "Lync 2013 is already installed, continuing logon. Please wait..."
- }
- else
- {
- Write-Output "Lync 2013 is not installed, silently installing. Please wait..."
- & $Install
- }
Advertisement
Add Comment
Please, Sign In to add comment