Migrate from the Inno (.exe) app to the Store MSIX
Inno-to-Store MSIX migration
Problem
Users may install the Store MSIX while the Inno version of OpenClaw Companion is still installed. The packages share settings, credentials, identity, ports, and the managed WSL gateway, so they cannot safely run as separate production copies.
In this issue, Inno means the current .exe-installed, non-MSIX version of OpenClaw Companion.
The current Inno uninstall path may also remove the managed WSL gateway and its contained Node.js runtime.
What migration preserves
Migration preserves everything needed for the current Windows user to continue using OpenClaw in MSIX:
- Application settings and Local AI configuration
- Credentials, identity, and approvals
- Startup preference
- Saved gateway connection and management information
- The existing managed WSL gateway and its contained Node.js runtime
The WSL gateway remains in place and is adopted by MSIX rather than copied or recreated. Application binaries and Windows-installed Node.js are not migrated or removed.
Proposed direction
Use a user-directed handoff with an automatic migration after confirmation:
- Inno shows an Install Store version and migrate action that explains that opening the Store version will migrate the user's OpenClaw setup.
- When selected, Inno creates a same-user-protected migration-intent record before opening the Store listing.
- On launch, MSIX validates the intent and starts migration automatically. If no valid intent exists, MSIX asks the user to Migrate or choose Not now.
- After valid intent or confirmation, MSIX requests Inno to exit, verifies that it stopped, and automatically imports and validates the protected migration state.
- MSIX adopts the existing WSL gateway rather than replacing it.
- After migration succeeds, both apps keep normal production features inactive and direct the user to uninstall Inno through Windows Settings.
- The Inno uninstaller preserves the migrated state and gateway.
- MSIX verifies that Inno is gone, applies the migrated startup preference, and starts normally.
The migration-intent record remains available for safe retries and is cleaned up after migration finalization. If migration fails, Inno remains installed and the user can retry without losing recoverable state. Only one production Companion may be active during the handoff.
Implementation plan
Incomplete migration behavior must remain disabled until the full prepare, import, validation, uninstall guidance, and recovery path has been validated.
Phase 1: Inno migration foundation
- Define and version the migration-state contract.
- Create a same-user-protected migration-intent record before Inno opens the Store listing.
- Implement the Inno-side operation required to expose or export the migration state.
- Protect sensitive data so only the same Windows user can use it.
- Define a completed-migration marker that is recorded only after MSIX successfully imports and validates the state.
- Store the state and marker outside paths removed by Inno uninstall.
- With a valid marker, prevent normal Inno operation and preserve the state and gateway during uninstall.
- Without a valid marker, keep the existing uninstall behavior.
Phase 2: MSIX migration path, disabled
- Detect a supported Inno installation and stop it gracefully before migration.
- Import and validate the protected state while Inno remains installed.
- Adopt the existing managed WSL gateway without creating a replacement.
- Preserve, but do not enable, the MSIX startup preference until Inno is removed.
- Retain recoverable state after failure and record the completion marker only after successful validation.
- Clean up temporary migration data without removing the marker needed by Inno uninstall.
Validate this complete path while it remains disabled for users.
Phase 3: Migration UI and rollout
- Add the Inno Store-install action and the MSIX migration experience.
- Start migration automatically after validating Inno-recorded intent; otherwise require confirmation in MSIX.
- Add Windows Settings uninstall guidance after successful migration.
- Handle normal launch, auto-start, and
openclaw:activation consistently. - Enable migration only for supported Inno versions and matching architectures.
Migration UI states
The MSIX UI must cover:
- Migration available: If no valid Inno-recorded intent exists, explain that Inno was detected and offer Migrate to Store version and Not now actions.
- Migration in progress: Show a spinner and status message. Do not show a progress bar unless the migration operation provides meaningful live progress.
- Migration failed: Explain that Inno remains available and offer a Retry action.
- Migration complete: Explain that the setup was migrated successfully and provide an Open Installed apps action so the user can uninstall Inno.
- Inno removed: Dismiss the migration UI and enable normal MSIX operation.
Suggested completion copy:
Your OpenClaw setup was migrated successfully
To finish switching to the Store version, uninstall the previous Inno app.
Open Installed apps
Open implementation questions
- Can MSIX directly access the existing Inno settings and credentials, or must Inno export them to a protected migration file first?
- How will existing users receive the minimum migration-capable Inno release?
- How will MSIX adopt ownership of the existing WSL gateway without recreating it or losing the ability to manage and remove it?
Release validation
Validate signed x64 and ARM64 packages:
- Inno opens the correct Store listing and explains the migration.
- Valid Inno-recorded intent starts migration automatically in MSIX.
- Without valid intent, MSIX requires confirmation; Not now leaves Inno unchanged and MSIX inactive.
- MSIX migrates only after valid intent or confirmation and while Inno is not running.
- Migration preserves user state, the managed WSL gateway, and its contained Node.js.
- After migration succeeds, neither app returns to normal operation until Inno is removed.
- After Inno removal, MSIX applies the startup preference and starts with the migrated state.
- Failed, cancelled, or interrupted migration can be retried without losing recoverable state.
- Unsupported versions and architectures are blocked with clear guidance.
- Remote-gateway configurations do not require local WSL or Node.js.
- Auto-start and
openclaw:activation work after migration. - Windows Node.js remains untouched.
Support is limited to x64-to-x64 and ARM64-to-ARM64 migration.
Out of scope
- Running Inno and MSIX simultaneously
- MSIX-to-Inno migration
- Automatic Inno update or uninstall
- Backup, restore, or rollback
- Runtime-type migration
- Cross-user or cross-architecture migration
- Automatic removal of Windows Node.js
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 17, 2026, 5:20 PM ET / 21:20 UTC.
Summary The migration remains necessary. Current main provides MSIX packaging and startup support, but explicitly leaves the validated handoff and migration-aware uninstall preservation unimplemented. The revised discussion meaningfully narrows preservation to successful migration rather than changing every uninstall.
Reproducibility: not applicable. as a new migration capability. Source confirms the existing destructive silent-uninstall path and missing handoff, but no Windows migration or destructive reproduction was executed.
Root-cause cluster
Relationship: canonical
Canonical: https://github.com/openclaw/openclaw-windows-node/issues/1374
Summary: This issue owns migration; packaging and Store distribution are related dependencies with explicitly separate scope.
Members:
adjacent_distinct: https://github.com/openclaw/openclaw-windows-node/pull/1328 - Merged packaging and startup support explicitly leave migration unresolved.adjacent_distinct: https://github.com/openclaw/openclaw-windows-node/pull/1403 - Merged CI submission-asset work explicitly excludes migration.adjacent_distinct: https://github.com/openclaw/openclaw-windows-node/issues/1375 - The open distribution decision excludes this migration lifecycle.
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
- Add a screenshot or short recording showing the behavior.
- Add expected vs actual behavior.
Maintainer decision needed
| Question | Recommendation |
|---|---|
| Should the revised validate-before-uninstall handoff, with preservation authorized only by a completed migration marker, become the supported Inno-to-Store contract? | Approve the conditional handoff for staged implementation: Keep user-facing migration disabled until the protected state contract, uninstall coordination, and signed architecture-specific lifecycle validation are complete. |
Why: This chooses permanent uninstall and recovery semantics across two packages; existing packaging approval does not resolve that product and security boundary.
Next step Obtain product and security approval before splitting the cross-installer lifecycle into staged PRs; this broad, security-sensitive feature is outside automatic repair intake.
Security Needs attention: Credential and approval migration requires an explicit protection and authorization design before implementation.
Review details
Best possible solution:
Provide a staged migration wizard with protected, validated state transfer, conditional uninstall preservation, retry recovery, and startup activation only after safe Inno removal.
Do we have a high-confidence way to reproduce the issue?
Not applicable as a new migration capability. Source confirms the existing destructive silent-uninstall path and missing handoff, but no Windows migration or destructive reproduction was executed.
Is this the best way to solve the issue?
Unclear until the lifecycle contract is approved. Validating state before removal is a sound direction, but marker authorization, retry behavior, minimum versions, and mutex release must be specified.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The minimum migration-capable Inno version and its delivery path are unresolved; older silent uninstallers can still destroy the gateway.
- The protected intent, exported credentials, completion marker, and interrupted-retry semantics lack an approved security contract.
- An inactive Store migration screen could still hold the shared mutex and block Inno uninstall unless the handoff explicitly handles mutex ownership.
- Signed x64 and ARM64 migration, retained-state upgrade, and recovery behavior have not been established by the packaging evidence.
Codex review notes: model internal, reasoning medium; reviewed against 33839971e315.
Label changes
Label justifications:
P0: The migration intersects a source-confirmed destructive uninstall path that can remove the existing managed gateway and its data.impact:data-loss: Preservation must prevent gateway unregister and generated-state deletion during the package transition.impact:security: The proposed handoff transfers credentials, device identities, and approvals through persistent migration records.
Evidence reviewed
Security concerns:
- [medium] Define authority for persistent migration records The proposed intent and completion records control credential import and destructive-uninstall preservation; their validation, tamper resistance, retry lifetime, and cleanup semantics remain design questions, not established implementation defects. Confidence: 0.94
What I checked:
- Current implementation explicitly leaves migration open: DEVELOPMENT.md documents shared identity/state, first-launch-wins activation, competing startup registrations, and missing legacy-install detection and consent-based migration. This is a distinct remaining capability, not completed packaging work. (
DEVELOPMENT.md:383, 33839971e315) - Destructive uninstall path remains: EnsureLocalGatewayCleanupChoice requests cleanup automatically for silent uninstall. The helper invokes WSL unregister and removes gateway artifacts; there is no completed-migration marker check in the inspected installer. Existing source-contract tests explicitly cover this cleanup behavior. (
installer.iss:204, 33839971e315) - Gateway deletion reaches the final operation: The uninstall helper terminates and unregisters the managed distro, then removes its directory and Windows-side artifacts. Preserving a migrated gateway therefore requires changing this lifecycle deliberately. (
scripts/Uninstall-LocalGateway.ps1:676, 33839971e315) - Existing startup arbitration is not a migration workflow: OnLaunchedAsync acquires the shared mutex and forwards activation to the existing process when it cannot own it. It does not validate migration intent or wait for Inno uninstall before normal operation. (
src/OpenClaw.Tray.WinUI/App.xaml.cs:541, 33839971e315) - Related merged work preserves this issue's boundary: https://github.com/openclaw/openclaw-windows-node/pull/1328 (feat: add Microsoft Store MSIX packaging) explicitly excludes automatic migration and legacy-install detection. https://github.com/openclaw/openclaw-windows-node/pull/1403 (chore(ci): build MSIX artifacts and publish Store alpha assets) also leaves migration separate. The prepared screenshots show Dev package registration, packaged runtime, and consent UI, not an Inno-to-Store handoff.
- Latest release and current-main distinction: GitHub reports v2026.9.4 as the latest release. The inspected installer, launch, identity, and CLI-uninstall files have no delta between that tag and current HEAD. Current release documentation permits unsigned alpha submission assets while keeping Store distribution and official lifecycle acceptance gated. (
docs/RELEASING.md:194, 33839971e315)
Likely related people:
- natalie-aguinaldo: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
- Ranjesh: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
- Maintainer-only repair and merge flows require explicit commands such as
@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review. - Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Proposed revision for review
This is a draft and has not replaced the issue description yet. Please leave feedback in this thread. I’ll update the issue after the team agrees on the direction.
Inno and Store MSIX migration: user-directed handoff with shared gateway
Problem
Inno and Store MSIX ship the same production application and share saved settings, credentials, device identity, MCP port, WSL gateway, and gateway port.
Both packages may be installed during migration, but they must not run as separate copies of OpenClaw at the same time. The current Inno uninstall path can also remove the managed WSL gateway and the Node.js runtime installed inside it.
Proposed direction (needs maintainer sign-off)
Use a single-active-client, user-directed handoff:
- Exactly one production Companion runs per Windows user.
- While Inno remains installed, MSIX shows a message explaining how to switch to the Store version, then exits without starting normal OpenClaw features.
- OpenClaw guides the transition but does not uninstall the other package.
- Saved settings and credentials, the WSL gateway, its Node.js runtime, and the startup preference are preserved.
- Uninstalling OpenClaw Companion preserves the local gateway. The gateway is deleted only when the user explicitly chooses Remove Local Gateway.
- Windows Node.js is never removed automatically.
Running the production Inno and Store versions at the same time is out of scope. The existing Dev build remains the supported side-by-side testing path.
Scope
The PRs are ordered dependencies. Each is independently safe to merge, but PR 2 builds on the safe-uninstall contract from PR 1, and PR 3 builds on the dormant handoff from PR 2.
PR 1: Safe Inno uninstall
Ship an Inno release that:
- makes interactive and silent application uninstall preserve the gateway, settings, and credentials by default;
- removes only Inno-owned binaries, shortcuts, startup entries, protocol registration, and uninstall registration;
- does not recursively delete the shared
%LOCALAPPDATA%\OpenClawTrayroot; - leaves Windows Node.js untouched.
This preservation behavior is the default for the safe Inno release; it does not require a migration option or special uninstall mode.
MSIX may read and validate existing settings from older Inno versions. If the installed Inno version predates safe uninstall behavior, MSIX must ask the user to update Inno before uninstalling it. This protects both the local gateway and other generated application data.
PR 2: Dormant MSIX handoff guidance
Before normal startup, MSIX must:
- detect the exact registered production Inno installation before normal single-instance startup handling;
- require the minimum safe Inno version before directing the user to uninstall Inno;
- while Inno remains installed, show a message explaining how to switch to the Store version, then exit without starting normal OpenClaw features;
- preserve the user's startup preference;
- guide the user to exit Inno and uninstall it through Settings > Apps > Installed apps;
- leave Inno unchanged if the user chooses not to switch yet.
If MSIX is launched through an openclaw: link while Inno remains installed, it shows the same switch instructions and exits. The user retries the link after the transition is complete.
PR 3: Start MSIX with preserved data and auto-start preference
After the user removes Inno, MSIX must:
- Confirm that the Inno uninstall record and process are absent.
- Read the preserved settings, credentials, identities, approvals, Local AI configuration, and gateway records.
- If the user previously installed a local gateway through OpenClaw Companion, confirm that the
OpenClawGatewayWSL distro and its Node.js runtime still exist. - Apply the preserved startup preference to the packaged
OpenClawStartuptask. - Persist the effective Windows StartupTask state.
- Start MSIX and verify the user's saved gateway connection.
If OpenClaw Companion did not install a local gateway on this PC, do not require WSL or Node.js.
If Inno remains installed or preserved state cannot be read, MSIX shows an explanation and exits. It must not delete Inno files, remove registrations, or reprovision the gateway.
Release validation
Validate the completed migration flow with signed x64 and ARM64 packages:
- Inno uninstall preserves application data, the managed WSL gateway, and its Node.js runtime.
- MSIX remains inactive while Inno is installed.
- After user-directed Inno removal, MSIX starts with the preserved settings and credentials.
- Auto-start and
openclaw:activation behave correctly after migration. - Removing MSIX and reinstalling Inno reuses the preserved data.
- Windows Node.js remains untouched.
Initial support is limited to x64-to-x64 and ARM64-to-ARM64 migration. Other architecture combinations are blocked.
Out of scope
- Running the production Inno and Store versions at the same time
- Automatic update or uninstall of the other package
- Automated protocol forwarding or replay
- General-purpose migration journal or rollback framework
- Dedicated reverse-migration or preserved-gateway recovery UI
- Contained-to-uncontained or uncontained-to-contained runtime migration
- Automatic removal of Windows Node.js
- Cross-user gateway sharing
- Downgrade or cross-architecture migration
Definition of done
- [ ] Inno and MSIX never run as active production copies at the same time.
- [ ] User-directed uninstall in either direction preserves application data, the managed WSL gateway, its Node.js runtime, and Windows Node.js.
- [ ] After the previous package is removed, the new package starts with the preserved settings, credentials, and startup preference.
- [ ] Configurations without an app-installed local gateway do not require WSL or Node.js.
- [ ] Unsupported architecture transitions are blocked.
- [ ] Signed x64 and ARM64 migration validation passes.
Can you please explore the following user experience? Inno uninstall saving state seems weird. Why would uninstall save state if no one is waiting to consume? The experience should be driven from msix instead of inno making assumptions of availability of msix on every uninstall
- MSIX detects that inno is installed and ask if user want to migrate from inno to msix
- If No, ask user to uninstall inno (give the command to uninstall as example) and then launch msix again
- If Yes, bring "Migration Experience"
- Migration experience: back up inno (either [preferred] programmatically or manually by giving an example command or button in node app). Node app should support backup option
- Migration experience: make sure that backup files are in place and uninstall inno - either programmatically or manually by giving example command
- Migration experience: make sure inno is uninstalled and then go through setup process via msix. Node should have a restore button as part of setup (or do it automatically). Restore should pick up backed up files and go through setup up process
- Exit migration experience
- App is launched
Can you please explore the following user experience? Inno uninstall saving state seems weird. Why would uninstall save state if no one is waiting to consume? The experience should be driven from msix instead of inno making assumptions of availability of msix on every uninstall
- MSIX detects that inno is installed and ask if user want to migrate from inno to msix
- If No, ask user to uninstall inno (give the command to uninstall as example) and then launch msix again
- If Yes, bring "Migration Experience"
- Migration experience: back up inno (either [preferred] programmatically or manually by giving an example command or button in node app). Node app should support backup option
- Migration experience: make sure that backup files are in place and uninstall inno - either programmatically or manually by giving example command
- Migration experience: make sure inno is uninstalled and then go through setup process via msix. Node should have a restore button as part of setup (or do it automatically). Restore should pick up backed up files and go through setup up process
- Exit migration experience
- App is launched
Good points. Thanks @MythiliMur! I updated the issue to make the migration scenario MSIX-driven. The main change from the backup/restore sequence you described is that we complete and validate migration while the Inno (non-MSIX) app is still installed. I propose we instruct the user to uninstall Inno after migration succeeds, to keep the working installation available if the Inno to MSIX migration fails.