Test an installer in a fresh sandbox
sandbox_install_testRuns a one-shot installer test in a fresh Windows Sandbox: snapshot, install, optionally test, uninstall, snapshot, report added or leftover files, registry, services, autoruns, tasks, processes.
Instructions
One shot: boot a fresh sandbox, snapshot, run the installer silently, snapshot, optionally run a test script, uninstall using what the installer registered in Add/Remove Programs, snapshot again, destroy the sandbox. Reports exactly what the install added (files, registry, services, autoruns, scheduled tasks, processes left running) and what the uninstaller left behind. If an installer hangs (usually a dialog waiting for a click), it is screenshotted and its controls are listed. Fails if a sandbox is already running.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"installer": "<installer>"
},
"name": "sandbox_install_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Installer arguments. .msi already gets /qn /norestart; for .exe pass the silent switch (/S, /VERYSILENT, /quiet...). | |
| keep | No | ||
| test | No | Host .ps1 run after install. Gets $env:SBX_INSTALL_DIR, SBX_PROGRAM, SBX_OUT. Non-zero exit = fail. | |
| exclude | No | Extra noisy paths to ignore in the snapshots. | |
| network | No | on (default): normal internet. firewall: guest firewall blocks outbound (code running as admin could undo it). off: no network adapter at all (strongest isolation; the agent talks over shared folders, a bit slower). | |
| installer | Yes | Host path to a .msi, .exe, .ps1, .cmd or .bat installer. | |
| uninstall | No | "auto" (default), "none", or an uninstall command line to run instead. | |
| timeoutSec | No | Per installer/uninstaller run (default 600). | |
| uninstallArgs | No | Auto mode: appended to the registered UninstallString when there is no QuietUninstallString, e.g. /S. | |
| failOnLeftovers | No |