# Detect-BIOSUpdate.ps1
# Exit 0 = Installed; Exit 1 = Not installed

$ErrorActionPreference = 'SilentlyContinue'

# --- Version Tag (update this per BIOS release) ---
$TagFile = 'C:\ProgramData\BIOSUpdateLog\success.tag'

if (Test-Path -LiteralPath $TagFile) {
    Write-Host "Detection: BIOS update tag found ($TagFile)"
    exit 0
} else {
    Write-Host "Detection: BIOS update tag missing ($TagFile)"
    exit 1
}
