Windows 安装
本页由仓库原文构建生成。技术正文保留原文;版本要求、授权与限制以正文为准。
Watt entry (1.6.7+): with Node.js >=18 use
npm install -g "sap-watt@^1.6.7", then sap-watt install.
Python >=3.10 can use python -m pip install "sap-watt>=1.6.7,<2".
The native executable, portable ZIP, Windows installer AppId and install
directory retain sap-adt during this transition; the standalone installer
does not add sap-watt. Existing configuration/credentials remain shared.
The versioned verification records below describe their stated releases.
Runtime / npm: CLI 1.6.5 verified locally on 2026-11-22. The Windows x64 runtime
was built with Windows Python 3.12 through WSL interop, then installed from
a locally packed npm package using Windows Node.js. SHA-256 verification,
ZIP extraction, the npm command shim, --version, --help, and synthetic
diagnostic/debugger/execution smokes passed.
Snippet execution was verified with allow_execute=true and allow_write=false;
generic creation, source writes and activation remained blocked.
This does not verify SAP connectivity.
Windows npm support starts with CLI 1.5.3. Older packages may list only
linux-x86_64; upgrade with npm install -g "sap-adt-cli@^1.5.3" and then
run sap-adt install again. The Windows ZIP and desktop installer are
available from the corresponding
GitHub Release.
Desktop installer: CLI 1.6.5 silent per-user lifecycle verified locally on Windows 11 x64, using Inno Setup 6.7.4 through WSL interop. Installation into a path containing spaces and Chinese characters, runtime startup, same-version upgrade, and uninstall passed. A synthetic configuration file was preserved. The PATH task and Start Menu shortcuts were disabled for this smoke test to avoid changing the host’s environment.
Download the unsigned CLI 1.6.5 Windows x64 installer. The installer uses the same verified runtime as the portable ZIP and npm. CLI 1.6.3 did not have a rebuilt desktop installer.
The PATH cleanup helper is separately tested with native Inno Setup code. Actual user PATH mutation, graphical wizard clicks, interactive credential configuration, elevation, and SAP connectivity are not verified. The installer is unsigned; SmartScreen or antivirus warnings may appear.
For repeatable builds from WSL, see Building on Windows from WSL.
What the installer does (when built on Windows)
Section titled “What the installer does (when built on Windows)”tools/build_runtime.pyproducesdist/runtime/windows-x86_64/sap-adt/(PyInstaller onedir).tools/build_installer.pycompilespackaging/windows/setup.isswith Inno Setup 6 intodist/installers/sap-adt-<ver>-windows-x86_64-setup.exe.
Installer behavior (per-user, no admin by default):
- copies the runtime +
configure.cmdinto%USERPROFILE%\...\sap-adt; - offers an enabled-by-default task to add the directory to user PATH;
- checks
sap-adt --versionfrom the absolute install path, and fails setup if the runtime cannot launch or returns an error; - runs
sap-adt credentials doctorfor interactive installs only; - tells the user to restart their terminal/agent;
- uninstall removes program files and the PATH entry only if this installer
added it — user config (
~/.sap-adt-cli) and keystore entries stay.
Repeatable local smoke test
Section titled “Repeatable local smoke test”With Windows Python, the built runtime, and Inno Setup’s iscc on PATH:
python tools/build_installer.pypython tools/smoke_windows_installer.pyThe smoke test refuses to overwrite an existing desktop installation.
It uses a temporary install directory and a synthetic home directory,
then verifies cleanup and unchanged user PATH. Logs are retained under
dist/installer-smoke/; it does not read real SAP credentials.
It covers same-version reinstall, not an upgrade from an older release.
For unattended installation without PATH or shortcuts:
.\sap-adt-<ver>-windows-x86_64-setup.exe /CURRENTUSER /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOICONS /TASKS=""Manual steps
Section titled “Manual steps”sap-adt configure # interactive; password entered locallysap-adt credentials doctor # backend diagnostics (no secrets)sap-adt status # local config state, not a live SAP loginKnown gaps
Section titled “Known gaps”- Interactive wizard / configuration and elevated installs need a separate verification pass; the local smoke test does not certify them.
- No code signing: SmartScreen/AV warnings cannot be “eliminated” without a signing certificate and a real Windows verification pass.
isccabsence exits 2 with a clear BLOCKED message; it never fakes output.