Commands for installing Google 日本語入力 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Google.JapaneseIME -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Google.JapaneseIME -e --silentwinget uninstall --id Google.JapaneseIME -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i GoogleJapaneseInput64-3.34.6260.0.msi /qn /norestartWrite a log
msiexec /i GoogleJapaneseInput64-3.34.6260.0.msi /qn /norestart /l*v "%TEMP%\google-install.log"Uninstall
msiexec /x {1D8AE4DE-0A98-4DB8-BE0C-08FBB88E1827} /qn /norestart- MSI product code
- {1D8AE4DE-0A98-4DB8-BE0C-08FBB88E1827}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8AE4DE-0A98-4DB8-BE0C-08FBB88E1827}
- UpgradeCode
- {C1A818AF-6EC9-49EF-ADCF-35A40475D156}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-google.ps1
$url = 'https://dl.google.com/release2/misc/adpwg6fqrqckyq2txworca5desoq_3.34.6260.0/GoogleJapaneseInput64-3.34.6260.0.msi'
$sha256 = '41F66033E34E10DC5420B68A78D8C1F25E86AC4077AF34264ED3E3C25647F0A1'
$file = Join-Path $env:TEMP 'GoogleJapaneseInput64-3.34.6260.0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait