如果旧安装使用默认位置(Program Files/),请更改安装位置

发布于 2024-10-02 23:07:49 字数 291 浏览 0 评论 0原文

旧版本的应用程序安装在 /program files/xxx/ (1) 或自定义位置

安装新版本时需要检查旧版本是否安装在默认位置 (1)

如果是,则

创建 /program files/yyy/ (2) 并从旧位置复制文件并继续使用位置安装 (2)

如果旧版本安装在不同位置则继续安装而不更改位置

欢迎任何建议

  • 我如何从 Inno Script 检查旧位置是否存在
  • 如何创建旧版本的副本位置文件夹并重命名

谢谢

Old version of app was installed in /program files/xxx/ (1) or custom location

when installing the new version need to check if old version installed in default location (1)

if so

create /program files/yyy/ (2) and copy the files from old location and continue installation with location (2)

if old version installed in different location continue installation without changing location

any suggestions are welcomed

  • how can I check from Inno Script if Old location exist
  • how can I create a copy of the old location folder and rename it

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑白记忆 2024-10-09 23:07:49

请参阅文档此处并查看“文件系统函数”和“文件函数”。

您应该根据您的目的使用 DirExistsFileCopyRenameFile 函数。

Refer to the documentation here and look under "File System functions" and "File functions".

You should use the DirExists, FileCopy and RenameFile functions for your purposes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文