如果旧安装使用默认位置(Program Files/),请更改安装位置
旧版本的应用程序安装在 /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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅文档此处并查看“文件系统函数”和“文件函数”。
您应该根据您的目的使用
DirExists
、FileCopy
和RenameFile
函数。Refer to the documentation here and look under "File System functions" and "File functions".
You should use the
DirExists
,FileCopy
andRenameFile
functions for your purposes.