+ Reply to Thread
Results 1 to 4 of 4

Thread: Best way to restore deleted files if install is aborted?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Best way to restore deleted files if install is aborted?

    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

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Best way to restore deleted files if install is aborted?

    Jack,

    I'll see what we can do here...

  3. #3

    Default Re: Best way to restore deleted files if install is aborted?

    Friedrich,

    Did you ever figure-out a way to do this?

    Thanks...jack

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Best way to restore deleted files if install is aborted?

    Jack,

    Still on the drawing board...

    Thanks,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to copy files from install CD
    By Joe Snyder in forum SetupBuilder 'How Do I' Questions
    Replies: 1
    Last Post: 11-09-2006, 11:33 PM
  2. Using a variable in Install Files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 11
    Last Post: 01-24-2006, 01:30 AM
  3. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM
  4. Conditional copy files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 1
    Last Post: 02-22-2005, 01:59 AM
  5. Install Files Completed ?
    By gspillane in forum SetupBuilder
    Replies: 3
    Last Post: 09-21-2004, 01:29 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •