问题
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