# My Talks for PowerPoint on Windows. # Run: right-click > Run with PowerShell. Quit PowerPoint first. param([switch]$Uninstall) $ErrorActionPreference = 'Stop' $dir = Join-Path $env:LOCALAPPDATA 'My Talks' $file = Join-Path $dir 'mytalks.xml' $key = 'HKCU:\Software\Microsoft\Office\16.0\WEF\Developer' if ($Uninstall) { if (Test-Path $key) { Remove-ItemProperty -Path $key -Name $file -ErrorAction SilentlyContinue } Remove-Item $file -ErrorAction SilentlyContinue Write-Host 'Removed My Talks.' exit } New-Item -ItemType Directory -Force -Path $dir | Out-Null @' 174dba14-3012-45d6-8d09-0b1d357e2e28 1.1.0.0 My Talks en-US https://my-talk.app 960 540 Restricted '@ | Set-Content -Path $file -Encoding UTF8 New-Item -Path $key -Force | Out-Null New-ItemProperty -Path $key -Name $file -Value $file -PropertyType String -Force | Out-Null Write-Host 'Installed My Talks. Open PowerPoint, then Insert > Add-ins > My Add-ins > Developer Add-ins.'