Change install location if old installation used default location (Program Files/)

匆匆过客 提交于 2020-01-15 09:49:06

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/4205803/change-install-location-if-old-installation-used-default-location-program-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!