Consider the following:
I have two files, for example
XXX.txt
andYYY.txt
I want to install them to a folder (let's say
files
), in which there are alreadyXXX.txt
andYYY.txt
filesI want to "back up" the two original files, renaming them to
XXX.txt.backup
andYYY.txt.backup
On uninstall I want to restore the two files to their original state
How can I achieve this with Inno Setup?