Commands for installing MarkText 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 MarkText.MarkText -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MarkText.MarkText -e --silentwinget uninstall --id MarkText.MarkText -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
marktext-win-x64-0.23.0-setup.exe /SCustom folder
marktext-win-x64-0.23.0-setup.exe /S /D=C:\Apps\marktext- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\80b8d59a-8e25-5f52-8f55-48f4c6ccbd23
64-bit · EXE (NSIS) · All users
Silent install
marktext-win-x64-0.23.0-setup.exe /SCustom folder
marktext-win-x64-0.23.0-setup.exe /S /D=C:\Apps\marktext- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\80b8d59a-8e25-5f52-8f55-48f4c6ccbd23
ARM64 · EXE (NSIS) · Current user
Silent install
marktext-win-arm64-0.23.0-setup.exe /SCustom folder
marktext-win-arm64-0.23.0-setup.exe /S /D=C:\Apps\marktext- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\80b8d59a-8e25-5f52-8f55-48f4c6ccbd23
ARM64 · EXE (NSIS) · All users
Silent install
marktext-win-arm64-0.23.0-setup.exe /SCustom folder
marktext-win-arm64-0.23.0-setup.exe /S /D=C:\Apps\marktext- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\80b8d59a-8e25-5f52-8f55-48f4c6ccbd23
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-marktext.ps1
$url = 'https://github.com/marktext/marktext/releases/download/v0.23.0/marktext-win-x64-0.23.0-setup.exe'
$sha256 = '49BF66035F92072CE7DD8FA2F88B91F7036D674C05F872355A2D6E366FC53964'
$file = Join-Path $env:TEMP 'marktext-win-x64-0.23.0-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-marktext.ps1
$url = 'https://github.com/marktext/marktext/releases/download/v0.23.0/marktext-win-x64-0.23.0-setup.exe'
$sha256 = '49BF66035F92072CE7DD8FA2F88B91F7036D674C05F872355A2D6E366FC53964'
$file = Join-Path $env:TEMP 'marktext-win-x64-0.23.0-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-marktext.ps1
$url = 'https://github.com/marktext/marktext/releases/download/v0.23.0/marktext-win-arm64-0.23.0-setup.exe'
$sha256 = '215FE896F23498A6C4E1E1E159D825D69582BA31288FEAA64067A26E4C787509'
$file = Join-Path $env:TEMP 'marktext-win-arm64-0.23.0-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-marktext.ps1
$url = 'https://github.com/marktext/marktext/releases/download/v0.23.0/marktext-win-arm64-0.23.0-setup.exe'
$sha256 = '215FE896F23498A6C4E1E1E159D825D69582BA31288FEAA64067A26E4C787509'
$file = Join-Path $env:TEMP 'marktext-win-arm64-0.23.0-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait