# Silent Install Dropbox # Download URL: https://www.dropbox.com/downloading?full=1&os=win# Path for the workdir
$workdir ="c:\ictwebsolution\"
# 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://www.dropbox.com/download?full=1&plat=win"
$destination ="$workdir\dropbox.exe"Invoke-WebRequest $source -OutFile $destination
# Start the installationStart-Process-FilePath"$workdir\dropbox.exe"-ArgumentList"/S"# Wait XX Seconds for the installation to finishStart-Sleep-s 60# Remove the installer
rm -Force $workdir\dropbox*
I made a install script for Dropbox to do a Silent install.
UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists
Improvements are welcome!
Change the version if needed in the Source URL: https://www.dropbox.com/downloading?full=1&os=win
For Windows 7 please change
To
Since Powershell in Windows 7 does not support the Invoke-WebRequest
Please let the user Log Off and On again after the installation of dropbox, then Dropbox wil auto start.