Get started

Install SANAD Backup

Download and verify the setup program, run it, and install SANAD Backup silently or with msiexec for managed deployments.

Download and check the file

Each release on the Download page offers two files:

File Use it when
SanadSetup-<version>.exe Almost always. The setup program installs SANAD Backup and, when it is missing, the WebView2 Runtime.
Sanad.Setup-<version>.msi You deploy with msiexec or Group Policy and install the WebView2 Runtime yourself.

Before you run a file, compare its SHA-256 checksum with the value on the Download page. In PowerShell, in the folder where you saved the file:

Get-FileHash .\SanadSetup-<version>.exe -Algorithm SHA256

The Hash value must be the same as the website's value. PowerShell shows the letters in upper case and the website in lower case; case does not matter. If it does not, delete the file and download it again. A matching checksum proves that the file is the one published on the website; it does not prove who published it.

Windows SmartScreen

When a release is not code-signed, Windows SmartScreen can say that it protected your PC from an unrecognised app. If the checksum matches, choose More info, then Run anyway.

Run the setup program

You need administrator rights. Close the SANAD Backup desktop app first if it is open.

  1. Double-click SanadSetup-<version>.exe.
  2. The Install SANAD Backup page shows the version and the parts it installs for every user of the computer: the desktop app, the web dashboard (Windows service), the backup service (Windows service) and the command-line tool. It also reminds you that your databases, settings, backup catalogue and backups in %ProgramData%\Sanad are kept when you upgrade or uninstall. When the WebView2 Runtime is missing, the page says that setup will download and install it. SANAD Backup is free software under the MIT License; setup asks you to accept nothing.
  3. Choose Install and confirm the Windows prompt for administrator rights.
  4. The progress page shows Installing SANAD Backup. Setup stops the SANAD Backup services and starts them again, so avoid upgrading while a backup is running.
  5. When the page says SANAD Backup is installed:
    • Choose Open SANAD Backup to start the desktop app with administrator rights, then choose the administrator's password — see First sign-in.
    • The page shows the web dashboard's address.
    • If it asks for a restart, choose Restart when convenient.

If setup cannot finish, the page says SANAD Backup was not installed and links to the setup log. Either nothing was changed or the previous version was put back.

The WebView2 Runtime

The desktop app displays its pages with the Microsoft Edge WebView2 Runtime. Setup looks for a copy installed for the whole computer. When there is none, it runs Microsoft's installer, which it carries, to download the runtime and install it for all users before it installs SANAD Backup.

  • No internet access on the server? On another computer, download Microsoft's Evergreen Standalone Installer (x64) from the WebView2 download page, install it on the server, then run SANAD Backup setup again.
  • A server that never runs the desktop app? Install without the runtime by adding SKIPWEBVIEW2=1 to the setup command. The web dashboard and both services work without it; the desktop app cannot start until the runtime is installed.
  • Uninstalling SANAD Backup never removes the WebView2 Runtime, because other applications use it too.

What gets installed where

Location What it holds
C:\Program Files\Sanad\desktop\ The desktop app, with a SANAD Backup shortcut in the Start menu.
C:\Program Files\Sanad\service\ The backup service: Windows service Sanad, "SANAD Backup Service".
C:\Program Files\Sanad\web\ The web dashboard: Windows service SanadWeb, "SANAD Backup Web Dashboard", on http://localhost:5080 unless you chose other addresses.
C:\Program Files\Sanad\cli\ The command-line tool Sanad.CLI.exe, added to the system PATH for prompts opened after the installation.
%ProgramData%\Sanad\ Your data: SANAD Backup's database of connections, jobs and history, the logs and the staging folder.

Both services start automatically with Windows, restart after a failure, and run as Local System unless you choose another account. Setup starts them at the end of the installation. SANAD Backup appears once in the list of installed apps, as "SANAD Backup".

Install from the command line

The setup program accepts these options. SanadSetup-<version>.exe /? shows them in a window.

Option Meaning
/quiet No user interface.
/passive Progress only, no questions.
/norestart Never restart the computer. Always add it to /quiet or /passive: without it, a required restart happens automatically.
/log <file> Write the setup log to this file. Without it, the log goes to your %TEMP% folder.
/repair Repair the installed version. Use the setup program of that same version.
WEBURLS=<addresses> The web dashboard's listen addresses. Default http://localhost:5080. Separate several addresses with a semicolon.
SERVICEACCOUNT=<account> The account both services run as. Default LocalSystem.
SKIPWEBVIEW2=1 Do not install the WebView2 Runtime.

Command Prompt:

start /wait SanadSetup-<version>.exe /quiet /norestart /log "%TEMP%\sanad-setup.log"
echo %ERRORLEVEL%

PowerShell, with the dashboard on another port:

$setup = Start-Process .\SanadSetup-<version>.exe -ArgumentList '/quiet /norestart WEBURLS=http://localhost:5090' -Wait -PassThru
$setup.ExitCode
Exit code Meaning
0 Installed.
3010 Installed; restart the computer to finish.
1602 Cancelled.
1618 Another installation was in progress. Wait for it to finish, then run setup again.
Any other value Failed. The log explains why.

The service account

  • LocalSystem (the default) needs nothing else.
  • NT AUTHORITY\NetworkService or NT AUTHORITY\LocalService also work. Give that account read and write access to %ProgramData%\Sanad. Put the value in quotes: SERVICEACCOUNT="NT AUTHORITY\NetworkService".
  • A group managed service account (DOMAIN\name$) works once it holds the "Log on as a service" right.
  • An ordinary domain user account cannot be used, because setup has no way to take its password.

Scheduled backups run as this account, so it is also the account that signs in to SQL Server with Windows Authentication and that reaches network shares.

Setup remembers WEBURLS and SERVICEACCOUNT. Upgrades and repairs keep the values of the previous installation unless you pass new ones.

Install with msiexec or Group Policy

The MSI installs the same parts and accepts the same WEBURLS and SERVICEACCOUNT properties. It does not install the WebView2 Runtime: deploy that separately to the computers that run the desktop app.

msiexec /i Sanad.Setup-<version>.msi /qn /norestart WEBURLS=http://localhost:5080 /l*v "%TEMP%\sanad-msi.log"

msiexec returns the same exit codes as the setup program (0, 3010, 1602, 1618). As with the setup program, always combine /qn with /norestart. For Group Policy software installation, assign the MSI to computers; the default values, or the values remembered from an earlier installation, then apply.

Next: First sign-in.