How to fix the ErrorCode: 1653(0x675) Microsoft Office Professional 2013 encounters during setup (PowerShell)
Introduction
This script shows how to fix the ErrorCode: 1653(0x675) Microsoft Office Professional 2013 encounters during setup.
Scenarios
Many customers come across an issue that Microsoft Office 2013 will encountered an error when during setup. This script is trying to fix that issue..
Script
Step 1: Right Click the script and select Run with PowerShell.
Step 2: Then there will be a dialog.
Here are some code snippets for your references
Write-Host “Try to fix registry values...” -ForegroundColor Green
$path1= "HKCU:\Software\Policies\Microsoft\Windows\Installer"
$path2 = "HKLM:\Software\Policies\Microsoft\Windows\Installer"
if(Test-Path -Path $path1)
{
Remove-ItemProperty -Path $path1 -Name DisableRollback -ErrorAction SilentlyContinue
}
if(Test-Path -Path $path2)
{
Remove-ItemProperty -Path $path2 -Name DisableRollback -ErrorAction SilentlyContinue
}
Write-Host “Try to fix registry values...” -ForegroundColor Green $path1= "HKCU:\Software\Policies\Microsoft\Windows\Installer" $path2 = "HKLM:\Software\Policies\Microsoft\Windows\Installer" if(Test-Path -Path $path1) { Remove-ItemProperty -Path $path1 -Name DisableRollback -ErrorAction SilentlyContinue } if(Test-Path -Path $path2) { Remove-ItemProperty -Path $path2 -Name DisableRollback -ErrorAction SilentlyContinue }
Windows 8
Microsoft All-In-One Script Framework is an automation script sample library for IT Professionals. The key value that All-In-One Script Framework is trying to deliver is Scenario-Focused Script Samples driven by IT Pros' real-world pains and needs. The team is monitoring all TechNet forums, IT Pros' support calls to Microsoft, and script requests submitted to TechNet Script Repository. We collect frequently asked IT scenarios, and create script samples to automate the tasks and save some time for IT Pros. The team of All-In-One Script Framework sincerely hope that these customer-driven automation script samples can help our IT community in this script-centric move.