Following code extract produces two errors on my system:
1) The destination file name gets truncated to "backgrou.jpg" (and a second time to "backgrou (2).jpg"): the base name appears to be only eight bytes long.
!define PRODUCT_BACKGROUND_ORIG "background_mon.jpg"
!define PRODUCT_BACKGROUND "background.jpg"
Section "Application" SEC01
StrCmp "${PRODUCT_BACKGROUND_ORIG}" "${PRODUCT_BACKGROUND}" +2
CopyFiles "${PRODUCT_BACKGROUND_ORIG}" "${PRODUCT_BACKGROUND}"
Delete "${PRODUCT_BACKGROUND_ORIG}"
SectionEnd
2) The original file is not deleted. I don't manage to delete any file in the destination directory.
What am I overlooking?
Thanks for your help!
Kristoff