I've found this code:
!define PORTABLEDIR1 "$EXEDIR\Data\MyApp"
!define LOCALDIR1 "$APPDATA\MyApp"
RMDir "/r" "${LOCALDIR1}-BackupBy${APPNOSPACE}Portable"
Rename "${LOCALDIR1}" "${LOCALDIR1}-BackupBy${APPNOSPACE}Portable"
IfFileExists "${PORTABLEDIR1}\*.*" +4
IfFileExists "$EXEDIR\Data\${APP}\*.*" 0 +5
CreateDirectory "${PORTABLEDIR1}"
CopyFiles /SILENT "$EXEDIR\Data\${APP}\*.*" "${PORTABLEDIR1}"
CreateDirectory "${LOCALDIR1}"
CopyFiles /SILENT "${PORTABLEDIR1}\*.*" "${LOCALDIR1}"
All the code is clear except for the central lines: IfFileExists "$...
I've found this description:
Could someone make the spelling of this syntax? Please.
!define PORTABLEDIR1 "$EXEDIR\Data\MyApp"
!define LOCALDIR1 "$APPDATA\MyApp"
RMDir "/r" "${LOCALDIR1}-BackupBy${APPNOSPACE}Portable"
Rename "${LOCALDIR1}" "${LOCALDIR1}-BackupBy${APPNOSPACE}Portable"
IfFileExists "${PORTABLEDIR1}\*.*" +4
IfFileExists "$EXEDIR\Data\${APP}\*.*" 0 +5
CreateDirectory "${PORTABLEDIR1}"
CopyFiles /SILENT "$EXEDIR\Data\${APP}\*.*" "${PORTABLEDIR1}"
CreateDirectory "${LOCALDIR1}"
CopyFiles /SILENT "${PORTABLEDIR1}\*.*" "${LOCALDIR1}"
All the code is clear except for the central lines: IfFileExists "$...
I've found this description:
Could someone make the spelling of this syntax? Please.
Comment