Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整 Windows 安装程序打包选项 #6390

Closed
Zuoqiu-Yingyi opened this issue Oct 28, 2022 · 5 comments
Closed

调整 Windows 安装程序打包选项 #6390

Zuoqiu-Yingyi opened this issue Oct 28, 2022 · 5 comments

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Oct 28, 2022

在什么情况下你需要该特性?In what scenarios do you need this feature?

REF: Windows 端不再支持安装时选择安装路径和用户 · Issue #6385 · siyuan-note/siyuan
REF: [投票] 关于 Windows 端不再支持安装 / 更新时自定义安装路径和用户 - 链滴

描述可能的最优解决方案 Describe the optimal solution

  • 直接安装(双击运行安装程序)
    • 初次安装
      • 用户可选为当前用户安装/为所有用户安装(需要管理员权限)
      • 用户无法自定义安装目录
        • 为当前用户安装默认安装目录为 C:\Users\<用户名>\AppData\Local\Programs\SiYuan
        • 为所有用户安装默认安装目录为 C:\Program Files\SiYuan
    • 覆盖安装(更新)
      • 用户可选为当前用户安装/为所有用户安装(需要管理员权限)
      • 用户无法自定义安装目录
        • 默认安装目录为原安装目录
  • 带参数安装(使用命令行带参运行安装程序)
    • 带参数 /D 自定义安装目录(初次安装/覆盖安装均适用)
      • 示例: 将安装包 siyuan-2.4.8-win.exe 安装至 D:\Program Files\SiYuan 目录
        • ./siyuan-2.4.8-win /D="D:\Program Files\SiYuan"

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

@88250
Copy link
Member

88250 commented Oct 28, 2022

已经合并,并更新了 #6385 的说明,感谢贡献。

@88250 88250 closed this as completed Oct 28, 2022
@woniuxia
Copy link

@Zuoqiu-Yingyi 大佬,确认一下,如果是自定义的目录,就需要每次安装的时候都指定目录是吧?

@Zuoqiu-Yingyi
Copy link
Contributor Author

@Zuoqiu-Yingyi 大佬,确认一下,如果是自定义的目录,就需要每次安装的时候都指定目录是吧?

  • 覆盖安装(更新)
    • 默认安装目录为原安装目录

@winter60
Copy link

winter60 commented Dec 9, 2022

带参数 /D 自定义安装目录(初次安装/覆盖安装均适用)
示例: 将安装包 siyuan-2.4.8-win.exe 安装至 D:\Program Files\SiYuan 目录
./siyuan-2.4.8-win /D=D:\Program Files\SiYuan

@Zuoqiu-Yingyi 萌萌大佬,这行命令路径不加引号的结果,直接给装D:\Program 里面了

image

个人记录,已提醒后人。

@Zuoqiu-Yingyi
Copy link
Contributor Author

个人记录,已提醒后人。

我编辑一下😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants