From cf750f5cd1873c7f019d17664a40e2cdf9d2e857 Mon Sep 17 00:00:00 2001 From: MertBasar0 Date: Sun, 1 Nov 2026 02:19:15 +0300 Subject: [PATCH 1/4] fix(setup): a silent uninstall deletes the local WSL gateway --- DEVELOPMENT.md | 5 +++-- README.md | 2 +- docs/SETUP.md | 2 +- installer.iss | 10 ++++++++-- .../OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs | 3 ++- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 2296853c74..89621a8a6b 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -581,8 +581,9 @@ Consequences to expect while both are installed: "Setup has detected that OpenClaw Companion is currently running". Quit the Store app before installing or uninstalling the Inno build. - Inno uninstall asks whether to also remove the local WSL gateway. **No** is the - default and keeps it. A silent uninstall (`/SILENT`, `/VERYSILENT`) always - removes the gateway. + default and keeps it. A silent uninstall (`/SILENT`, `/VERYSILENT`), which is what + `winget uninstall` runs by default, also keeps it unless `/RemoveLocalGateway=yes` + is passed. To make the Store build the one that runs, quit the Inno build and launch the Store entry, or uninstall the Inno build. diff --git a/README.md b/README.md index 565cb408f8..60d31048e5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ See [choosing a gateway on first launch](https://docs.openclaw.ai/platforms/wind ## Uninstall -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall, including the default `winget uninstall`, leaves them in place. To remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed are preserved. Choosing **Yes** also removes the removed gateway's own identity directory under `%APPDATA%\OpenClawTray\gateways\`. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually for a fully clean uninstall. See [docs/SETUP.md](docs/SETUP.md#uninstalling) for details, including the headless `--uninstall --confirm-destructive` CLI path used for testing. diff --git a/docs/SETUP.md b/docs/SETUP.md index b8cc649822..8d8e260363 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -192,7 +192,7 @@ OpenClaw Companion checks for updates automatically and shows a notification whe ## Uninstalling -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall (`/SILENT`, `/VERYSILENT`), including the default `winget uninstall`, leaves them in place; to remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed (including per-gateway keys at `%APPDATA%\OpenClawTray\gateways\\device-key-ed25519.json`) are preserved. Choosing **Yes** also removes the removed gateway's own identity directory. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually if you want a fully clean uninstall. diff --git a/installer.iss b/installer.iss index da9e9b6d25..b7a1b0c681 100644 --- a/installer.iss +++ b/installer.iss @@ -556,8 +556,14 @@ begin if UninstallSilent() then begin - LocalGatewayCleanupRequested := True; - Log('Silent uninstall: local gateway cleanup will run automatically.'); + // Nobody can answer the dialog below, and package managers uninstall silently by default. + // Removing the WSL gateway is unrecoverable, so an unattended caller has to ask for it. + LocalGatewayCleanupRequested := + CompareText(ExpandConstant('{param:RemoveLocalGateway|no}'), 'yes') = 0; + if LocalGatewayCleanupRequested then + Log('Silent uninstall: /RemoveLocalGateway=yes requested local gateway cleanup.') + else + Log('Silent uninstall: preserving the {#MyDistroName} WSL distro and generated state. Pass /RemoveLocalGateway=yes to remove them.'); end else begin diff --git a/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs b/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs index 51e3a49a58..3f5b6ce7a9 100644 --- a/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs +++ b/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs @@ -95,7 +95,8 @@ public void Installer_RemovesGeneratedAppStateOnlyAfterGatewayCleanup() Assert.Contains("[Code]", iss); Assert.Contains("Uninstall-LocalGateway.ps1", iss); Assert.Contains("UninstallSilent()", iss); - Assert.Contains("LocalGatewayCleanupRequested := True", iss); + Assert.DoesNotContain("LocalGatewayCleanupRequested := True", iss); + Assert.Contains("{param:RemoveLocalGateway|no}", iss); Assert.Contains("{#MyDistroName} WSL distro", iss); Assert.Contains("MB_YESNO or MB_DEFBUTTON2", iss); Assert.Contains("ExpandConstant('{sys}\\WindowsPowerShell\\v1.0\\powershell.exe')", iss); From fdc548c1c95089b8f1de34fffe06466877ba4590 Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Tue, 1 Dec 2026 20:53:31 -0800 Subject: [PATCH 2/4] docs(setup): note older uninstallers still remove the gateway silently Uninstallers from v2026.11.3 and older, including the current WinGet package, still delete the local WSL gateway on a silent uninstall. Add that caveat and fix stale wording in wipe_openclaw_state.py and HARD-CLEAN.md. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .agents/skills/uninstall/HARD-CLEAN.md | 2 +- DEVELOPMENT.md | 4 +++- README.md | 2 +- docs/SETUP.md | 2 +- scripts/wipe_openclaw_state.py | 6 +++--- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.agents/skills/uninstall/HARD-CLEAN.md b/.agents/skills/uninstall/HARD-CLEAN.md index 4c85f6d1e5..4302ebf89c 100644 --- a/.agents/skills/uninstall/HARD-CLEAN.md +++ b/.agents/skills/uninstall/HARD-CLEAN.md @@ -374,7 +374,7 @@ teardown or uninstall: the remaining state may be needed for recovery. 3. **Remove only the approved installed apps.** Use `Remove-AppxPackage -Package -ErrorAction Stop` for the current user, Gateway before Companion. For Win32, run the reviewed registered uninstaller interactively; - silent Inno uninstall can remove WSL without a separate prompt. Wait for actual + silent Inno uninstall from v2026.11.3 or older removes WSL without a prompt. Wait for actual unregistration, not just launcher exit, since Inno can hand off to a temp process. Cancellation, timeout, or a remaining registration is not success. Let Windows remove package data; never manually delete WindowsApps or Packages diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 89621a8a6b..67c3112344 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -583,7 +583,9 @@ Consequences to expect while both are installed: - Inno uninstall asks whether to also remove the local WSL gateway. **No** is the default and keeps it. A silent uninstall (`/SILENT`, `/VERYSILENT`), which is what `winget uninstall` runs by default, also keeps it unless `/RemoveLocalGateway=yes` - is passed. + is passed. Uninstallers from v2026.11.3 and older, including the one the current + WinGet package runs, still remove it silently; uninstall those interactively and + choose **No** to keep it. To make the Store build the one that runs, quit the Inno build and launch the Store entry, or uninstall the Inno build. diff --git a/README.md b/README.md index 60d31048e5..63df37df60 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ See [choosing a gateway on first launch](https://docs.openclaw.ai/platforms/wind ## Uninstall -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall, including the default `winget uninstall`, leaves them in place. To remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall, including the default `winget uninstall`, leaves them in place. To remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Uninstallers from v2026.11.3 and older, including the one the current WinGet package runs, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed are preserved. Choosing **Yes** also removes the removed gateway's own identity directory under `%APPDATA%\OpenClawTray\gateways\`. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually for a fully clean uninstall. See [docs/SETUP.md](docs/SETUP.md#uninstalling) for details, including the headless `--uninstall --confirm-destructive` CLI path used for testing. diff --git a/docs/SETUP.md b/docs/SETUP.md index 8d8e260363..9b343a96cf 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -192,7 +192,7 @@ OpenClaw Companion checks for updates automatically and shows a notification whe ## Uninstalling -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall (`/SILENT`, `/VERYSILENT`), including the default `winget uninstall`, leaves them in place; to remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall (`/SILENT`, `/VERYSILENT`), including the default `winget uninstall`, leaves them in place; to remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Uninstallers from v2026.11.3 and older, including the one the current WinGet package runs, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed (including per-gateway keys at `%APPDATA%\OpenClawTray\gateways\\device-key-ed25519.json`) are preserved. Choosing **Yes** also removes the removed gateway's own identity directory. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually if you want a fully clean uninstall. diff --git a/scripts/wipe_openclaw_state.py b/scripts/wipe_openclaw_state.py index 325c66a803..0c7fcc1b54 100644 --- a/scripts/wipe_openclaw_state.py +++ b/scripts/wipe_openclaw_state.py @@ -37,8 +37,8 @@ its sandbox account, profile, and listeners; removing the package first would delete clawctl and the only record of that account. * Win32 uninstall entries (HKCU/HKLM Uninstall keys), e.g. the Inno - "OpenClaw Companion[ (Dev)]" installer. Inno uninstallers run silently, - which also removes their local WSL gateway. An entry whose uninstaller + "OpenClaw Companion[ (Dev)]" installer. Inno uninstallers run silently; current ones + keep their local WSL gateway, which this script unregisters below. An entry whose uninstaller file is gone is deleted directly. - WSL distros OpenClawGateway and OpenClawGateway-Dev (wsl --unregister: permanently destroys their filesystems). Inventory comes from the HKCU Lxss @@ -460,7 +460,7 @@ def uninstall_win32(app: SimpleNamespace) -> bool: print(f" could not delete {app.where}: {exc}") return not win32_app_registered(app) elif is_inno_uninstaller(exe): - cmd = f"{cmd} {INNO_SILENT_ARGS}" # silent Inno uninstall also removes its WSL gateway (installer.iss) + cmd = f"{cmd} {INNO_SILENT_ARGS}" # silent Inno uninstall keeps its WSL gateway; distros are unregistered below print(f" running uninstaller for {app.name}: {cmd}") try: subprocess.run(cmd, shell=True, timeout=UNINSTALL_WAIT_SECONDS) From 9849d1ee57e38a91e4da914442c302632b25dbd6 Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Tue, 1 Dec 2026 21:00:17 -0800 Subject: [PATCH 3/4] docs(setup): cover pre-releases in the older-uninstaller caveat Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .agents/skills/uninstall/HARD-CLEAN.md | 2 +- DEVELOPMENT.md | 6 +++--- README.md | 2 +- docs/SETUP.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.agents/skills/uninstall/HARD-CLEAN.md b/.agents/skills/uninstall/HARD-CLEAN.md index 4302ebf89c..86e80779b8 100644 --- a/.agents/skills/uninstall/HARD-CLEAN.md +++ b/.agents/skills/uninstall/HARD-CLEAN.md @@ -374,7 +374,7 @@ teardown or uninstall: the remaining state may be needed for recovery. 3. **Remove only the approved installed apps.** Use `Remove-AppxPackage -Package -ErrorAction Stop` for the current user, Gateway before Companion. For Win32, run the reviewed registered uninstaller interactively; - silent Inno uninstall from v2026.11.3 or older removes WSL without a prompt. Wait for actual + silent Inno uninstall from v2026.11.3 or v2026.11.12-alpha.1 and earlier pre-releases removes WSL without a prompt. Wait for actual unregistration, not just launcher exit, since Inno can hand off to a temp process. Cancellation, timeout, or a remaining registration is not success. Let Windows remove package data; never manually delete WindowsApps or Packages diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 67c3112344..b8d6c399ae 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -583,9 +583,9 @@ Consequences to expect while both are installed: - Inno uninstall asks whether to also remove the local WSL gateway. **No** is the default and keeps it. A silent uninstall (`/SILENT`, `/VERYSILENT`), which is what `winget uninstall` runs by default, also keeps it unless `/RemoveLocalGateway=yes` - is passed. Uninstallers from v2026.11.3 and older, including the one the current - WinGet package runs, still remove it silently; uninstall those interactively and - choose **No** to keep it. + is passed. Uninstallers from earlier releases, including v2026.11.3 (which the + current WinGet package runs) and pre-releases up to v2026.11.12-alpha.1, still + remove it silently; uninstall those interactively and choose **No** to keep it. To make the Store build the one that runs, quit the Inno build and launch the Store entry, or uninstall the Inno build. diff --git a/README.md b/README.md index 63df37df60..a900d4424b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ See [choosing a gateway on first launch](https://docs.openclaw.ai/platforms/wind ## Uninstall -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall, including the default `winget uninstall`, leaves them in place. To remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Uninstallers from v2026.11.3 and older, including the one the current WinGet package runs, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall** (or use **Add or Remove Programs** in Control Panel). You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall, including the default `winget uninstall`, leaves them in place. To remove them unattended, run `unins000.exe /VERYSILENT /NORESTART /RemoveLocalGateway=yes` from the install folder. Uninstallers from earlier releases, including v2026.11.3 (which the current WinGet package runs) and pre-releases up to v2026.11.12-alpha.1, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed are preserved. Choosing **Yes** also removes the removed gateway's own identity directory under `%APPDATA%\OpenClawTray\gateways\`. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually for a fully clean uninstall. See [docs/SETUP.md](docs/SETUP.md#uninstalling) for details, including the headless `--uninstall --confirm-destructive` CLI path used for testing. diff --git a/docs/SETUP.md b/docs/SETUP.md index 9b343a96cf..53bb8f12b8 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -192,7 +192,7 @@ OpenClaw Companion checks for updates automatically and shows a notification whe ## Uninstalling -Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall (`/SILENT`, `/VERYSILENT`), including the default `winget uninstall`, leaves them in place; to remove them unattended, run `unins000.exe /VERYSILENT /RemoveLocalGateway=yes`. Uninstallers from v2026.11.3 and older, including the one the current WinGet package runs, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. +Go to **Settings → Apps → Installed apps**, find **OpenClaw Companion**, and click **Uninstall**. Alternatively, use **Add or Remove Programs** in the Control Panel. You'll be asked whether to also remove the local WSL gateway; choose **Yes** to unregister its WSL distro and generated state, or **No** to leave the gateway and that state in place. A silent uninstall (`/SILENT`, `/VERYSILENT`), including the default `winget uninstall`, leaves them in place; to remove them unattended, run `unins000.exe /VERYSILENT /NORESTART /RemoveLocalGateway=yes` from the install folder. Uninstallers from earlier releases, including v2026.11.3 (which the current WinGet package runs) and pre-releases up to v2026.11.12-alpha.1, still remove the gateway on a silent uninstall; to keep it with those versions, uninstall interactively and choose **No**. Your settings file at `%APPDATA%\OpenClawTray\settings.json` is not removed automatically, and device identity files for gateways unrelated to the one you removed (including per-gateway keys at `%APPDATA%\OpenClawTray\gateways\\device-key-ed25519.json`) are preserved. Choosing **Yes** also removes the removed gateway's own identity directory. Root operator and node tokens are preserved only while an external gateway record remains; otherwise they are cleared, even if another local or loopback gateway record remains. Delete `%APPDATA%\OpenClawTray\` manually if you want a fully clean uninstall. From e79aabe34422069ac8fddf497639f5ca034da86b Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Tue, 1 Dec 2026 21:12:01 -0800 Subject: [PATCH 4/4] docs(setup): clarify the older-uninstaller caveat and pin the opt-in comparison Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .agents/skills/uninstall/HARD-CLEAN.md | 2 +- tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.agents/skills/uninstall/HARD-CLEAN.md b/.agents/skills/uninstall/HARD-CLEAN.md index 86e80779b8..8505e7db5f 100644 --- a/.agents/skills/uninstall/HARD-CLEAN.md +++ b/.agents/skills/uninstall/HARD-CLEAN.md @@ -374,7 +374,7 @@ teardown or uninstall: the remaining state may be needed for recovery. 3. **Remove only the approved installed apps.** Use `Remove-AppxPackage -Package -ErrorAction Stop` for the current user, Gateway before Companion. For Win32, run the reviewed registered uninstaller interactively; - silent Inno uninstall from v2026.11.3 or v2026.11.12-alpha.1 and earlier pre-releases removes WSL without a prompt. Wait for actual + silent Inno uninstall from an earlier release (v2026.11.3 and older, or pre-releases up to v2026.11.12-alpha.1) removes WSL without a prompt. Wait for actual unregistration, not just launcher exit, since Inno can hand off to a temp process. Cancellation, timeout, or a remaining registration is not success. Let Windows remove package data; never manually delete WindowsApps or Packages diff --git a/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs b/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs index 3f5b6ce7a9..08f1832ae4 100644 --- a/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs +++ b/tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs @@ -96,7 +96,7 @@ public void Installer_RemovesGeneratedAppStateOnlyAfterGatewayCleanup() Assert.Contains("Uninstall-LocalGateway.ps1", iss); Assert.Contains("UninstallSilent()", iss); Assert.DoesNotContain("LocalGatewayCleanupRequested := True", iss); - Assert.Contains("{param:RemoveLocalGateway|no}", iss); + Assert.Contains("CompareText(ExpandConstant('{param:RemoveLocalGateway|no}'), 'yes') = 0", iss); Assert.Contains("{#MyDistroName} WSL distro", iss); Assert.Contains("MB_YESNO or MB_DEFBUTTON2", iss); Assert.Contains("ExpandConstant('{sys}\\WindowsPowerShell\\v1.0\\powershell.exe')", iss);