From e87d4e8c8faef7d551cd94d59ecb4947992993fd Mon Sep 17 00:00:00 2001 From: DigHuang <114602213+DigHuang@users.noreply.github.com> Date: Fri, 13 Feb 2026 02:45:45 -0800 Subject: [PATCH] fix(win-clean): installer data-delete dialog logic (#78) --- scripts/installer.nsh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/installer.nsh b/scripts/installer.nsh index c59545fe1..7f42d8cb9 100644 --- a/scripts/installer.nsh +++ b/scripts/installer.nsh @@ -13,17 +13,15 @@ ; --- English message (default) --- MessageBox MB_YESNO|MB_ICONQUESTION \ "Do you want to completely remove all ClawX user data?$\r$\n$\r$\nThis will delete:$\r$\n • .openclaw folder (configuration & skills)$\r$\n • AppData\Local\clawx (local app data)$\r$\n • AppData\Roaming\clawx (roaming app data)$\r$\n$\r$\nSelect 'No' to keep your data for future reinstallation." \ - /SD IDNO IDYES _cu_removeData IDNO _cu_skipRemove - Goto _cu_afterPrompt + /SD IDNO IDNO _cu_skipRemove + Goto _cu_removeData ; --- Chinese message --- _cu_useChinese: MessageBox MB_YESNO|MB_ICONQUESTION \ "是否完全移除所有 ClawX 用户数据?$\r$\n$\r$\n将删除以下内容:$\r$\n • .openclaw 文件夹(配置和技能)$\r$\n • AppData\Local\clawx(本地应用数据)$\r$\n • AppData\Roaming\clawx(漫游应用数据)$\r$\n$\r$\n选择"否"可保留数据以便将来重新安装。" \ - /SD IDNO IDYES _cu_removeData IDNO _cu_skipRemove - - _cu_afterPrompt: - Goto _cu_skipRemove + /SD IDNO IDNO _cu_skipRemove + Goto _cu_removeData _cu_removeData: ; --- Always remove current user's data first ---