How aldric2023/microsoft-office-2021 works
Project Type and Purpose
• This is a script-based automation tool. It packages Office2021.zip (Office Deployment Tool + installation files) and helper batch scripts for both installation and license activation.
• Users download, extract, run install scripts, then activate Office via built-in command-line tools (ospp.vbs) pointing at an external KMS server.
Main Components
a. Local Client Environment
– Windows OS (Win10 or later)
– File system (where Office2021.zip is extracted)
– Command Prompt / PowerShell
b. Office Deployment Package
– Office2021.zip
– Install-x32.bat / Install-x64.bat (full install)
– Install-x32-basic.bat / Install-x64-basic.bat (core apps only)
c. Activation Scripts
– Activator.bat (wraps ospp.vbs commands)
– Direct command-line invocation of ospp.vbs for manual activation
d. External Service
– KMS Host (kms.msgang.com) where activation requests are directed
Relationships & Data Flows
1. User downloads Office2021.zip → Extracts to local folder
2. User runs one of the Install-*.bat scripts →
• Batch script invokes Office Deployment Tool (configuration inside zip) →
• Windows Installer fetches Office binaries →
• Office apps are installed locally
3. User triggers activation (either via Activator.bat or manual cmd lines) →
• ospp.vbs scripts read local license files, install key →
• ospp.vbs sets KMS host →
• ospp.vbs sends activation request over network to kms.msgang.com →
• Receives activation response →
• Local Office license state is updated
Architectural Patterns & Principles
• Single-Machine Automation: All steps occur on the same client machine.
• Script-driven Workflow: Separation between “Install” phase and “Activate” phase.
• External Dependency: Activation via remote KMS service.
Detailed Capture
– Break the local environment into “File System” and “Command Shell.”
– Annotate how Install-basic differs (only Word/Excel/PPT).
– Show fallback checks in scripts (“if exist … cd /d …”).
– Call out ospp.vbs commands: /inslic, /inpkey, /sethst, /act.