I am having some weird trouble with moving (renaming) folders. I have the following 2 definitions:
($currentBackup is a string that is generated in .onInit based on date and time - this works)!define IDI_TEMP_BACKUP_DIR "$TEMP\$currentBackup"
!define IDI_BACKUP_DIR "$INSTDIR\backups\$currentBackup"
During my installation I create some backups and place them in TEMP since I actually create a backup of the existing backup folder. When everything is done, I move the backup from TEMP back to my $INSTDIR like this:
The trouble is, this sets the error flag and my backup remains in TEMP. Any idea what I'm doing wrong?CreateDirectory "$INSTDIR\backups"
Rename "${IDI_TEMP_BACKUP_DIR}" "${IDI_BACKUP_DIR}"
Thanks,
Mircea