Article ID: 955793 - Last Review: March 19, 2009 - Revision: 2.0

Error message when you try to install SQL Server 2008: "Setup cannot copy the file"

On This Page

Expand all | Collapse all

SYMPTOMS

When you try to install Microsoft SQL Server 2008, you may receive a series of error messages that resemble the following error message:
Setup cannot copy the file
The files that cannot be copied are the following files:
  • Userguide.chs.ttf
  • Gettingstarted.ttf
  • Microsoft.powershell.dll-help.xml
  • Microsoft.powershell.utility.dll-help.xml
  • Microsoft.powershell.commands.management.dll-help.br
After each error message, you receive the following message:
Do you want to continue Setup without copying the file?

CAUSE

This issue occurs because the E-Trust antivirus program is preventing the Setup program from copying these files.

WORKAROUND

To work around this issue, use one of the following methods.

Method 1: Exclude drives that E-Trust scans

You can configure E-Trust to exclude certain drives from its virus scanning. This configuration lets you install SQL Server 2008 and its files without interference from E-Trust. You can do this by modifying the E-Trust registry key that controls which drives are excluded from scans. To do this, follow these steps.

Important These steps may increase your security risk. These steps may also make the computer or the network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you decide to implement this process, take any appropriate additional steps to help protect the system. We recommend that you use this process only if you really require this process.

Note In this procedure, the D and E drives are excluded from scanning.
  1. At a command prompt, type net stop inort, and then press ENTER.
  2. Type the following text, and then press ENTER:
    reg ADD HKEY_LOCAL_MACHINE\Software\ComputerAssociates\eTrustAntivirus\CurrentVersion\Realtime /f /v szExcludeDirs /d "|d:\|e:\|"
  3. Type net start inort, and then press ENTER.
  4. Install SQL Server 2008.
  5. After the program is installed, type net stop inort, and then press ENTER.
  6. Type the following text, and then press ENTER:
    reg DELTE HKEY_LOCAL_MACHINE\Software\ComputerAssociates\eTrustAntivirus\CurrentVersion\Realtime /f /v szExcludeDirs /d "|d:\|e:\|"
  7. Type net start inort, and then press ENTER.

Method 2: Temporarily disable E-Trust before you install SQL Server 2008

To do this, you must create a script to disable E-Trust and then run the script on the server.

Note Before you temporarily disable your virus scanner, make sure that Windows Firewall is enabled. After you complete the steps, enable the virus scanner again.

An antivirus program is designed to help protect your computer from viruses. You must not download or open files from sources that you do not trust, visit Web sites that you do not trust, or open e-mail attachments when your antivirus program is disabled.

For more information about computer viruses, click the following article number to view the article in the Microsoft Knowledge Base:
129972  (http://support.microsoft.com/kb/129972/ ) Computer viruses: description, prevention, and recovery
To create and to run the script, follow these steps.

Important These steps may increase your security risk. These steps may also make the computer or the network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you decide to implement this process, take any appropriate additional steps to help protect the system. We recommend that you use this process only if you really require this process.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
  1. Start Notepad.
  2. Copy and then paste the following code into Notepad.
    @if not defined _echo echo off
    setlocal
    set errorflag=0
    set list=inotask inort inorpc
    for %%i in (%list%) do (
       sc query %%i | find "RUNNING" >nul
       if errorlevel 1 (
          echo %%i service is not running
       ) else (
          call :stopservice %%i
       )
    )
    
    rem if errorlevel 1 set errorflag=1
    
    for %%i in (%list%) do (
       call :disableservice %%i
    )
    
    if "%errorflag%" NEQ "0" goto errexit
    
    :end
    echo Successfully disabled the services
    exit /b 0
    
    :errexit
    echo Failed!!!
    exit /b 1
    
    :stopservice
       sc stop %1 >nul
       if errorlevel 1 set errorflag=1
    goto :eof
    
    :disableservice
       sc config %1 start= disabled >nul
       if errorlevel 1 set errorflag=1
    goto :eof
    
  3. Save the file as a .txt file, and then name the file "DisableE-Trust.txt."
  4. Rename the DisableE-Trust.txt file to "DisableE-Trust.bat."
  5. At the command prompt, run the cd command to change folders until you locate the folder in which the DisableE-Trust.bat file is saved.

    For example, if the DisableE-Trust.bat file is saved in the C:\Myfiles folder, type CD myfiles at the command prompt, and then press ENTER. The folder changes to C:\Myfiles.
  6. At the command prompt, type DisableE-Trust.bat, and then press ENTER.

How to re-enable E-Trust

After you have installed SQL Server 2008, you must restart the E-Trust antivirus software by using a batch file script. To create and to run the script, follow these steps:
  1. Start Notepad.
  2. Copy and then paste the following code into Notepad.
    @if not defined _echo echo off
    setlocal
    
    set errorflag=0
    
    set list=inotask inort inorpc
    
    for %%i in (%list%) do (
    
       sc query %%i | find "STOPPED" >nul
       if errorlevel 1 (
          echo %%i service is running
       ) else (
          call :enableservice %%i
       )
    )
    
    rem if errorlevel 1 set errorflag=1
    
    for %%i in (%list%) do (
       call :startservice %%i
    )
    
    if "%errorflag%" NEQ "0" goto errexit
    
    :end
    echo Successfully enabled the services
    exit /b 0
    
    :errexit
    echo Failed!!!
    exit /b 1
    
    
    :startservice
       sc start %1 >nul
       if errorlevel 1 set errorflag=1
    goto :eof
    
    :enableservice
       sc config %1 start= auto >nul
       if errorlevel 1 set errorflag=1
    goto :eof
    
  3. Save the file as a .txt file, and then name the file "EnableE-Trust.txt."
  4. Rename the EnableE-Trust.txt file to "EnableE-Trust.bat."
  5. At the command prompt, run the cd command to change folders until you locate the folder in which the DisableE-Trust.bat file is saved.

    For example, if the DisableE-Trust.bat file is saved in C:\Myfiles, type CD myfiles at the command prompt, and then press ENTER. The folder changes to C:\Myfiles.
  6. At the command prompt, type EnableE-Trust.bat, and then press ENTER.

APPLIES TO
  • Microsoft SQL Server 2008 Express
  • Microsoft SQL Server 2008 Express with Advanced Services
  • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Web
  • Microsoft SQL Server 2008 Workgroup
Keywords: 
sql2008relnoteinstallation sql2008relnoteconfiguration sql2008relnote kbprb kbinstallation kbtshoot kbexpertiseinter kberrmsg kbcode KB955793
 

Article Translations

 

Related Support Centers