froogdocs
Dashboard

DocsSandboxes

Windows apps (Wine)

Sandboxes can run many Windows programs on the desktop with Wine. Watch them with froog desktop; agents drive them with the computer tools (screenshots, clicks, keys). Install once, then snapshot.

Install Wine. Save as install-wine.sh and run it in the background (several minutes):

$ froog exec my-box --detach -- bash -s < install-wine.sh
$ froog logs my-box JOB -f
set -e
. /etc/os-release
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -qO /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
# WineHQ's packages for this release; the distribution's own Wine if it has none yet
if sudo wget -qNP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/$ID/dists/$VERSION_CODENAME/winehq-$VERSION_CODENAME.sources"; then
  sudo apt-get update -qq
  sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --install-recommends winehq-stable
else
  sudo apt-get update -qq
  sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq wine
fi
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends cabextract p7zip-full mesa-vulkan-drivers
sudo wget -qO /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
sudo chmod +x /usr/local/bin/winetricks
bash ~/.froog/desktop/desktop.sh >/dev/null      # the desktop, display :1
export DISPLAY=:1
WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i  # skip the Wine Mono prompt
winetricks -q corefonts vcrun2022
wine --version

Add .NET with winetricks -q dotnet48, Direct3D with winetricks -q dxvk (CPU only, no GPU: light 3D). On Omarchy, use pacman (multilib) instead.

Install and start a program. Anything that opens a window needs DISPLAY=:1:

# in the sandbox (froog ssh my-box)
export DISPLAY=:1
curl -fsSLo /tmp/7z.exe https://www.7-zip.org/a/7z2501-x64.exe
wine /tmp/7z.exe /S
wine start /unix "$HOME/.wine/drive_c/Program Files/7-Zip/7zFM.exe"
  • Silent installs: /S (NSIS), /VERYSILENT (Inno Setup), msiexec /i app.msi /qn (MSI). A winget manifest's InstallerUrl is the vendor link.
  • C:\ is ~/.wine/drive_c; Z:\ is /.
  • Pre-accept licence prompts in the registry, e.g. wine reg add 'HKCU\Software\Sysinternals\Process Explorer' /v EulaAccepted /t REG_DWORD /d 1 /f.

Set up once, start many: froog snapshot my-box --name wine-apps, then froog new task-1 --from wine-apps. Restart programs after a stop or fork.

Which programs run. None verified on froog yet. Good first tries: Notepad++, 7-Zip, WinMerge, HxD, IrfanView, Process Explorer, LTspice. Programs with kernel drivers (anti-cheat, hardware tools, some VPNs) won't run. See Wine's AppDB.

ProblemFix
wineboot never finishesWINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i
Cannot open displayexport DISPLAY=:1 and start the desktop
unimplemented function msvcp140.dll…winetricks -q vcrun2022
Exits at once with init_sys_streamsStart it with wine start /unix
Windows blank, "Not Responding"Answer modal dialogs with keys, not close_window
Old game changes resolutionwine reg add 'HKCU\Software\Wine\X11 Driver' /v UseXRandR /t REG_SZ /d N /f

Install only software you're licensed to use. Don't copy Windows system files into Wine.