Skip to content

Install on Windows

dxcufgb edited this page Oct 30, 2026 · 1 revision

Install on Windows

Before you start

  • Git for Windows, installed for all users. The service runs as LOCAL SERVICE and cannot use a per-user install.
  • The GitHub token.
  • The installer brings its own Node.js.

Install

Run foundry-world-backup-X.Y.Z-setup.exe from the latest release. Administrator rights are asked for.

The wizard asks for:

  • the Foundry user data folder (it guesses C:\Users\<you>\AppData\Local\FoundryVTT),
  • the GitHub token,
  • the admin page port (8484),
  • automatic updates,
  • the admin page password,
  • the notification e-mail settings.

It then runs scripts\install-service.ps1, which

  • copies the code to C:\Program Files\FoundryWorldBackup and Node.js to C:\Program Files\FoundryWorldBackup-Node,
  • writes env, config.json and admin.json to C:\ProgramData\FoundryWorldBackup (administrators, SYSTEM and LOCAL SERVICE only), the git copies to C:\ProgramData\FoundryWorldBackup\state, logs to ...\logs\service.log,
  • gives LOCAL SERVICE read access to the worlds folder (inherited by new worlds; -GrantAccess repeats that),
  • registers the scheduled task FoundryWorldBackup (at boot, under LOCAL SERVICE), the FoundryWorldBackup-UpdateNow task for "Update now" and, if asked, the daily FoundryWorldBackup-Update task (SYSTEM),
  • opens the admin port in Windows Firewall for domain and private networks.

Running the installer again upgrades the code and keeps every setting.

Silent install

Secrets go only through the environment:

set FOUNDRY_BACKUP_GITHUB_TOKEN=...
set FOUNDRY_BACKUP_ADMIN_PASSWORD=...
foundry-world-backup-X.Y.Z-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /FOUNDRYDATA=C:\Users\me\AppData\Local\FoundryVTT [/ADMINPORT=8484 /AUTOUPDATE=1 /NOTIFYEMAILS=... /SMTPHOST=... /SMTPPORT=... /SMTPSECURITY=... /SMTPUSER=... /SMTPFROM=...]

The switches in brackets are optional.

Uninstall

Uninstall through Apps & features. A silent uninstall keeps the settings, token and state; /DELETEDATA=1 removes them.

Without the wizard

Unpack foundry-world-backup-windows.zip and run .\scripts\install-service.ps1 -FoundryData <folder> from an elevated PowerShell (-SetAdminPassword, -SetNotify, -GrantAccess, -RenewAdminCert, -AutoUpdate, -Check, -UpdateNow, -Uninstall).

Clone this wiki locally