Prev Previous Post   Next Post Next
Old 14th September 2015, 15:18   #1
Mircea M
Junior Member
 
Join Date: Aug 2014
Posts: 44
Issue with moving folders

Hi,

I am having some weird trouble with moving (renaming) folders. I have the following 2 definitions:
code:
!define IDI_TEMP_BACKUP_DIR "$TEMP\$currentBackup"
!define IDI_BACKUP_DIR "$INSTDIR\backups\$currentBackup"


($currentBackup is a string that is generated in .onInit based on date and time - this works)

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:
code:
CreateDirectory "$INSTDIR\backups"
Rename "${IDI_TEMP_BACKUP_DIR}" "${IDI_BACKUP_DIR}"


The trouble is, this sets the error flag and my backup remains in TEMP. Any idea what I'm doing wrong?

Thanks,
Mircea
Mircea M is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump