Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $WRInstalled = 0
- If (Test-Path "C:\Program Files (x86)") {
- If (Test-Path 'C:\Program Files (x86)\Webroot\WRSA.exe') {
- Write-Host "Webroot 32-bit is installed on this 64-bit machine"
- $WRInstalled = 1
- }
- If (Test-Path 'C:\Program Files\Webroot\WRSA.exe') {
- Write-Host "Webroot 64-bit is installed on this 64-bit machine"
- $WRInstalled = 1
- }
- } Else {
- If (Test-Path 'C:\Program Files\Webroot\WRSA.exe') {
- Write-Host "Webroot 32-bit is installed on this 32-bit machine"
- $WRInstalled = 1
- }
- }
- If (!($WRInstalled)) {
- Write-Host "Webroot is not installed on this machine"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement