Commands for installing Visual Subst 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 ntwind.VisualSubst -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ntwind.VisualSubst -e --silentwinget uninstall --id ntwind.VisualSubst -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
VSubst_6.2-setup.exe /SCustom folder
VSubst_6.2-setup.exe /S /D=C:\Apps\visual-subst32-bit · EXE (NSIS) · All users
Silent install
VSubst_6.2-setup.exe /SCustom folder
VSubst_6.2-setup.exe /S /D=C:\Apps\visual-substPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-visual-subst.ps1
$url = 'https://www.ntwind.com/files/VSubst_6.2-setup.exe'
$sha256 = '23A5BFC2BEA7ADE14227F13DA7C03A6CE2FAFD542080D78387C51B535DA85E8D'
$file = Join-Path $env:TEMP 'VSubst_6.2-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-visual-subst.ps1
$url = 'https://www.ntwind.com/files/VSubst_6.2-setup.exe'
$sha256 = '23A5BFC2BEA7ADE14227F13DA7C03A6CE2FAFD542080D78387C51B535DA85E8D'
$file = Join-Path $env:TEMP 'VSubst_6.2-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