ljwilson
01-21-2006, 02:07 PM
In my current install, I first check to ensure no program files are in use, then I make a backup of the install program directory and all files/folders underneath it. The backup folder name based on the current date and time. Next I delete all the files in the main program directory. That works fine. My problem is if the install detects an error of some kind and asks if the user wants to rollback the install, my deleted files are not replaced.
I've tried:
1. Using Create Unique Backup File--but this doesn't work with *.*, and I don't know (or care) what all the filenames were in the directory I wiped-out, so it isn't practical to put a line in for each.
2. If I could detect when the rollback message (or any generic installer error) occurs, then I could just copy the files from my backup directory the install created, but I haven't figured out how to trap a general install error.
Any ideas?
Thanks...jack
I've tried:
1. Using Create Unique Backup File--but this doesn't work with *.*, and I don't know (or care) what all the filenames were in the directory I wiped-out, so it isn't practical to put a line in for each.
2. If I could detect when the rollback message (or any generic installer error) occurs, then I could just copy the files from my backup directory the install created, but I haven't figured out how to trap a general install error.
Any ideas?
Thanks...jack