# MathPoint を Windows の PowerPoint と Word に入れる。使い方: irm https://mcp.tex64.com/mathpoint/install.ps1 | iex $ErrorActionPreference = 'Stop' $dir = Join-Path $env:LOCALAPPDATA 'MathPoint' New-Item -ItemType Directory -Force -Path $dir | Out-Null $manifest = Join-Path $dir 'manifest.xml' Invoke-WebRequest -UseBasicParsing -Uri 'https://mcp.tex64.com/mathpoint/addin/manifest.prod.xml' -OutFile $manifest $key = 'HKCU:\Software\Microsoft\Office\16.0\WEF\Developer' if (-not (Test-Path $key)) { New-Item -Path $key -Force | Out-Null } New-ItemProperty -Path $key -Name $manifest -Value $manifest -PropertyType String -Force | Out-Null Write-Host 'MathPoint を入れました。PowerPoint / Word を開き直し、ホーム → アドイン → MathPoint を開いてください。' Write-Host 'Installed. Reopen PowerPoint or Word, then open Home > Add-ins > MathPoint.'