+ Reply to Thread
Results 1 to 2 of 2

Thread: Replacing files issue

  1. #1

    Default Replacing files issue

    Hi!

    I seem to be experiencing a very rare issue where sometimes an existing file does not get replaced when using the "Install File" function, even though the replacement option is always set to "Always". I'm thinking that this is caused by files being in-use at the time, but I dont have enough data to confirm this.

    My question is, would it be a good idea to check the %_SB_ERRORCODE% variable after each call to "Install File" to make sure the file got installed correctly? Or is this redundant due to internal error checking in setupbuilder?

    Thanks,
    Sam

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

    Default Re: Replacing files issue

    Sam,

    If the installer has to replace an in-use (locked) file, then Windows needs a reboot at the end of the installation process. Make sure that 1) you have admin privileges and 2) that you do not suppress the reboot message.

    It is not necessary to check the %_SB_ERRORCODE% error code because install file failures are fatal errors and the installer would terminate immediately. A locked file is not an error because the standard behavior is to reboot the machine in this case to replace the file(s).

    Does this help?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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
  •