安装程序退出代码说明

Setup exit codes — 妙复制大师 / CopyDash  ·  安装程序 Setup 1.0.1

本页说明「妙复制大师 CopyDash」Windows 安装程序(妙复制大师-CopyDash-Setup.exe) 在退出时可能返回的全部代码。安装程序不带命令行界面,支持静默安装 /S,安装到当前用户目录(%LOCALAPPDATA%\Programs\CopyDash), 不需要管理员权限、不写系统目录、不写 HKLM、不联网、不需要重启。

返回代码表

返回值含义
0 安装成功。文件已就位、注册表项(HKCU\Software\CopyDash)、开始菜单快捷方式与卸载程序均已创建。
Success — the application was installed completely.
1602 用户已取消安装(ERROR_INSTALL_USEREXIT)。用户在向导中点击「取消」,并在确认对话框中选择「是」,安装被中止且未做任何更改。
User cancelled the installation; nothing was changed.
1603 安装失败(ERROR_INSTALL_FAILURE)。发生在下列情况:① 妙复制大师本体仍在运行,占用着待替换的程序文件;② 无法写入安装目录(无写权限、磁盘空间不足或磁盘不可写)。
Fatal error during installation — the app is running and its files are locked, or the target folder could not be written (no permission / disk full).

关于其他数值

English summary

Exit codeMeaning
0Installation succeeded.
1602User cancelled; nothing was changed.
1603Fatal error: the app is still running (locked files) or the install folder is not writable.

Only the three codes above are returned by the installer itself. Any other value comes from Windows (blocked by policy/security software, or the process was terminated before setup logic ran). The installer never needs a reboot, does not use the network, and upgrades in place — so no "reboot required", "network failure" or "already installed" codes are ever returned. Silent install: /S.