# Silent Install Calibre# https://calibre-ebook.com/download# Path for the workdir
$workdir ="c:\installer\"
# Check if work directory exists if not create itIf(Test-Path-Path $workdir -PathTypeContainer){Write-Host"$workdir already exists"-ForegroundColorRed}
ELSE
{New-Item-Path $workdir -ItemType directory }# Download the installer
$source ="https://calibre-ebook.com/dist/win32"
$destination ="$workdir\calibre.msi"Invoke-WebRequest $source -OutFile $destination
# Start the installation
msiexec.exe /i "$workdir\calibre.msi"/q
# Wait XX Seconds for the installation to finishStart-Sleep-s 35# Remove the installer
rm -Force $workdir\c*
I made a install script for Calibre to do a Silent install.
UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists
Improvements are welcome!
For Windows 7 please change
To
Since Powershell in Windows 7 does not support the Invoke-WebRequest