How hudrig0/windows-update-blocker works
Project type and purpose
• This is a lightweight, portable Windows desktop utility (no installer) whose sole purpose is to disable or re-enable Windows Update services on demand.
• Key artifacts: two executables (32-bit Wub.exe and 64-bit Wub_x64.exe) and a configuration file (Wub.ini).
File structure
• Top-level files only:
• Wub.exe (32-bit GUI/CLI tool)
• Wub_x64.exe (64-bit GUI/CLI tool)
• Wub.ini (user‐editable settings)
• README.md (documentation)
• No separate frontend/backend or third-party libraries folders—this is a single‐executable utility.
• No installation scripts or services; everything runs in user context (with elevated privileges).
Extract additional insights from the README
• The tool uses standard Windows Service APIs to change service startup types and start/stop services.
• It enumerates a predefined list of services (defined in Wub.ini or hard-coded defaults).
• User interacts via a minimal GUI: chooses “Disable Updates” or “Enable Updates,” clicks “Apply.”
• Advanced mode: shows full service list and supports custom service selections via Wub.ini.
Main components
a. User Interface Layer
• 32-bit and 64-bit executables (single binary with embedded GUI)
• Menu logic to switch between normal mode and advanced mode
b. Configuration Store
• Wub.ini defines which services are targeted and any custom overrides
c. OS Interaction Layer
• Windows Service Control Manager (SCM)
• WinAPI calls: ChangeServiceConfig, StartService, StopService, QueryServiceStatus
d. Target Windows Services
• wuauserv (Windows Update)
• bits (Background Intelligent Transfer), wuauserv dependencies, etc.
Relationships and interactions
• User → (launches) UI (Wub.exe/Wub_x64.exe)
• UI → (reads/writes) Wub.ini
• UI → (invokes) Service Control Manager via WinAPI
• SCM → (manages) Target Windows services (stop, disable, enable, start)
• Services → (state changes) reported back to UI for display
Architectural patterns and design principles
• Single-responsibility: executable only handles UI, config parsing, and service control
• Portable/zero-install: no external dependencies, runs directly under elevated user context
• Configurability: Wub.ini allows extensibility without recompiling
• Minimal layers: Presentation → Config → OS Service API → Windows Services
Detail
• An “Advanced Mode” toggle to show how the tool switches to a detailed view.
• Elevation requirement (UAC prompt) as a side note on the UI component.