Affected versions: Windows Server 2016

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution β€” Primary Fix
  7. Solution β€” Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

MSI install on Windows Server 2016 reaches the finalisation step then rolls back, leaving target server without the application.

Environment & Reproduction

Observed when a deferred custom action returns non-zero during InstallFinalize, triggering full rollback.

msiexec /i payload.msi /qn /l*vx C:logsrollback.log

Root Cause Analysis

A custom action script or executable exits with an error after most files are copied, prompting the installer to undo all changes.

Quick Triage

Search the log for ‘Rolling back action’ and identify which custom action failed first.

Select-String -Path C:logsrollback.log -Pattern 'Rolling back action|CustomAction.*returned'

Step-by-Step Diagnosis

Re-run the failing custom action manually to capture its real error.

powershell -File C:WindowsInstallerMSI_extractpost-install.ps1
Get-EventLog -LogName Application -Source MsiInstaller -Newest 20
Illustrative mockup for windows-server-2016 β€” terminal_or_powershell
Diagnostic output for packaging/msi-rollback β€” Illustrative mockup β€” Progressive Robot

Solution β€” Primary Fix

Fix the custom action prerequisite (path, credential, registry) and re-run the install with the corrected environment.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

# Example: pre-create the missing folder the CA expects
New-Item C:ProgramDataAppService -ItemType Directory -Force
msiexec /i payload.msi /qn /l*vx C:logsrerun.log
Illustrative mockup for windows-server-2016 β€” event_or_log_viewer
Resolution for packaging/msi-rollback β€” Illustrative mockup β€” Progressive Robot

Solution β€” Alternative Approaches

Patch the MSI with a transform that disables the failing custom action when it is non-essential.

msiexec /i payload.msi TRANSFORMS=disablePostStep.mst /qn

Verification & Acceptance Criteria

Install completes without rollback and application service starts normally.

Get-Service AppService
Get-ItemProperty 'HKLM:SOFTWAREVendorApp'

Rollback Plan

Restore from system state backup if a partial change left the OS in inconsistent state.

wbadmin start systemstaterecovery -version:

Prevention & Hardening

Author custom actions with proper logging, idempotency, and rollback handlers to avoid full unwinds.

# In WiX: schedule CA in InstallExecuteSequence with rollback CA pair

Related: error 1603 fatal install, deferred CA permission failures, and ICE validation warnings.

Related tutorial: View the step-by-step tutorial for Windows Server 2016.

View all Windows Server 2016 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Microsoft Learn documentation for Windows Installer rollback semantics and custom action authoring.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.