Commit c087349
fix: use non-virtualized path for winsw.exe in launchpad
When node-launchpad is installed via MSIX on Windows, the `%APPDATA%` path is virtualized by the
MSIX filesystem, redirecting file writes to a package-specific location. The service management
code then cannot find `winsw.exe` at the expected standard path, causing node addition to fail
with "Failed to resolve full path of the current executable".
This changes `configure_winsw()` to place `winsw.exe` at `C:\ProgramData\antctl\winsw.exe` (via
`get_node_manager_path()`) instead of the launchpad data directory (via `dirs_next::data_dir()`).
The `C:\ProgramData` path is not subject to MSIX virtualization, so it works for both MSIX and
standalone installations.
Test results:
- All 23 node-launchpad unit tests pass
- Clippy clean with no warnings
- Change is Windows-only (#[cfg(windows)]), no impact on other platforms
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1f528cf commit c087349
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | | - | |
| 112 | + | |
105 | 113 | | |
106 | | - | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
| |||
0 commit comments