thedev
thedev

Reputation: 2906

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

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

Thanks

Upvotes: 1

Views: 903

Answers (1)

Bernard
Bernard

Reputation: 7961

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.

Upvotes: 1

Related Questions