Computer literacy, assistance and repair

I can't copy the file to system32. How to replace system files (updated)

A DLL file is a component of a dynamic link library whose elements are used by almost all programs. The DLL files are located in the system root folder. The components must all be present, digitally signed, work correctly and be up to date with the version. If one of the requirements is not met, the user will receive an informational notification when starting the program: DLL error. The malfunction indicates that the DLL file is missing, damaged, or outdated.

How to install a DLL file

In order for programs, applications and games to start working again, you must manually install the missing library components. Simply placing a file in a folder is not enough ─ you need to know how to register them.

Placing and registering library files

Before installing a DLL file on Windows 7,8,10, you need to download them, and exactly for the system bit depth.

Let's determine what bit capacity your system has (if you know for sure, you can skip this step)

Step 1. Right-click on “My Computer” and select “Properties”

Step 2. In the window that opens, we can read the properties of the computer, the version of the operating system and its bit depth 32 (x86) or 64 bit. In our case, we have a 64-bit Windows 10 operating system.

·

Step 3. After downloading the files, they need to be placed in the root folder and registered

for x32 (x86) systems, the component must be replaced or placed in the C:\Windows\System32 folder;

for x64 you need to replace it or move it to the C:\Windows\SysWOW64 folder;

Step 4. The file must be registered in the system.

You can do this by opening the command line with the combination “Win” + “R”, or clicking “Start” and “Run”;

in the window that opens, enter the following, separated by a space: regsvr32 file name.dll – where “regsvr32” is the command for registration, and “file name.dll” is the full name of the inserted component;

or you can specify the file location manually - regsvr32.exe + file path

Step 5. Click "OK" and restart your computer for the new settings to take effect.

I would like to note right away that errors may occur during registration. For example: "Failed to load module." They usually occur for 3 reasons

  1. The path to the file is incorrect, or the file was not moved to the System32 or SysWOW64 directory
  2. Not all DLL files need to be registered at all; sometimes it is enough to simply copy them to the System32 or SysWOW64 directory or place them in the root of the problematic game or program
  3. The files have already been registered before

Second registration method

Step 1. You can register the file using a command line, which must be run as an administrator.

Step 2. Writing a command regsvr32.exe + file path and press "Enter"

Step 3. A message will appear saying “Everything went well”, and just restart the computer

That's all, the file is registered, you can try to launch your game or program

Here are some tips that may be useful to you.

  • Place items only in the specified folder (it may be hidden by default). You need to uncheck “Do not show hidden folders” in the display settings.
  • If administrator permission is required when replacing a file, confirm the action.
  • Select only the files that are relevant at the time of downloading and save them to your computer separately. They may still be useful to you. If the problem occurs again, you will quickly restore system functionality.

Be sure to read the two instructions, since the archives contain both options for replacing system files. The instructions were created for Windows 7, however, it works perfectly on Windows 8.

First option:

  • Let's download the theme from our website, let's take "Sonye" as an example. We extract the files from the archive and look at what is in the System Files folder. In it we have two directories that contain the system file ExplorerFrame.dll for a 32-bit system (x86) and for a 64-bit (x64). We have an x86 system, so we select the appropriate folder.
  • We need to copy this file (ExplorerFrame.dll) to the C:/WINDOWS/System32/ folder, but the system will not allow us to do this just like that. Firstly, because it is currently in use, and secondly because in order to replace system files we need to obtain rights to change them.
  • After the rights have been obtained, you need to rename the file to be replaced so that after the extension there is, for example, “.old”. Those. if we need to replace the file ExplorerFrame.dll, then we need to rename it like this “ExplorerFrame.dll.old”. At the same time, the ExplorerFrame.dll.old file becomes a kind of backup copy that can always be returned.
  • After renaming, you can safely insert our file ExplorerFrame.dll, which was in the theme. This is what should have happened in the folder C:/WINDOWS/System32/

  • All that remains is to reboot or reload the Explorer.exe file. How to restart explorer.exe:
    1. Launch the task manager. Press Ctrl+Alt+Delete - select "task manager"
    2. In the task manager, go to the “processes” tab, select the “explorer.exe” process and click “end process”. (The taskbar and all windows should disappear).

    3. In the same window (in the task manager), click "File - New task (Run)" and enter explorer.exe.

    4. Click OK and see that everything is back, and the folder navigation buttons (Contains the ExplorerFrame.dll file) have changed to those that were with the theme.

  • Video instruction:

    And I was wondering why I can’t replace the system file bootres.dll in the C:\Windows\Boot\Resources folder in a running Windows 8.1 and I have to boot into the recovery environment?

    I go to the Resources folder, right-click on the bootres.dll file and select Delete or Rename, but the message “” appears. How to disable this TrustedInstaller and what is it even?

    The operating system I have installed is Windows 8.1, I work under an administrator account.

    Hello friends! Back in Windows XP, the developers introduced a mechanism to protect important system files and folders from careless user actions; this technology was called Windows File Protection. Later, the development migrated to the Vista operating system and Windows 7, 8.1, but under a different name - Windows Resource Protection. How does this protection mechanism work?

    In simple words, a special service, Windows Modules Installer or TrustedInstaller.exe, is constantly running in the operating system, which does not allow any user (even with administrator rights) to delete or change files and drivers that are critical for the operation of the operating system.

    I must say that for an inexperienced user this is even a blessing, since many novice users often ask me what is in the C:\Windows\System32 folder, there are so many files with different extensions: .dll, .msc, .exe, and Isn't this a virus by chance and shouldn't it all be removed? If the operating system allowed you to easily remove its important components, then you would have to reinstall it several times a day.

    But for an advanced user who knows what he is doing, this TrustedInstaller.exe service often forces him to perform unnecessary movements in his work. For example, system administrators often need to change or delete a system file, but naturally this will not work right away and an error will appear " Request permission from TrustedInstaller to modify this file", so first you will have to obtain rights to change system files from the operating system, the same applies to the C:\Windows\Boot\Resources folder, because this folder and the files in it are an integral part of Windows and the question arises...

    How to get rights to change system files in Windows 7, 8, 8.1?

    Let's help our reader and change the rights to the Resources folder, which is an important system folder for the operating system containing serious system files, among which there is the bootres.dll file responsible for the animation of the Windows 8.1 boot screen. It was this file that we replaced in the last article with another, and as a result, when loading Windows 8.1, we are now greeted by a beautiful fish, although for this we had to boot into the operating system recovery environment. How can we do everything simpler and directly in a running Windows 8.1?

    Friends, there are two ways, the first is simpler, and the second is more difficult, and we will look at both of them in this article.

    Method number 1. Use the free and very simple TakeOwnershipEx program, designed specifically for changing ownership and obtaining full access rights to files.

    Method number 2. Use the operating system itself to obtain full access rights to system files.

    As a result of the first and second methods, we will be able to delete, change and rename important system files.

    Obtaining full rights to files using the TakeOwnershipEx program

    The program does not have an official website, so I suggest downloading it from the link on my cloud storage - TakeOwnershipEx

    Download the program in the archive, unzip it and run the installation.

    After installation, run the program and in the window that appears, select Get permissions.

    An explorer window appears, find in it the folder to which we want to take away rights from the operating system, in our case C:\Windows\Boot\Resources, select it with the left mouse and click OK.

    Processed successfully, which means you and I have received full rights to this folder and can replace or delete the files in it.

    We go to the Resources folder and rename the system file bootres.dll to bootres2.dll or you can even delete this file, but I do not recommend you do this, since you may need it in the future.

    Having received full rights to the Resources folder, we were able to copy files to it.

    As I said, the bootres.dll file is responsible for the animation of the Windows 8.1 boot screen. By default, the Windows 8.1 boot screen looks like this

    and we can replace it with a nicer one that was present in the preliminary version of Windows 8.1 Preview.

    To do this, take the bootres.dll file from my archive

    and place it in the C:\Windows\Boot\Resources folder, the file will be easily copied to the folder, because we have rights to it.

    Restoring access rights to the operating system folder

    Friends, if necessary, you can return the rights to the folder back to the operating system. Run the TakeOwnershipEx program and select - Restore access rights

    We tick off our Resources folder and click on the button Restore rights.

    Ready. Rights returned to the operating system.

    When you try to rename or delete any file in a folder, you will receive the familiar warning “Request permission from TrustedInstaller to change this file”

    We use the operating system itself to obtain full access rights to system files.

    Many readers will prefer to change file and folder permissions manually. How to do it?

    Right click on the Resources folder and select Properties

    Safety->Additionally

    Change

    Additionally

    Search

    Select with the left mouse Administrators, then click OK.

    OK

    Check the box Replace owners of subcontainers and objects and OK

    In the tab Safety press the button Change.

    Assign “Full Control” to the “Administrators” group and check the required boxes. Apply and OK.

    Retrieving files from a Windows 7/Vista disk
    ________________________________________________________________

    Option 1.

    Let's use DISM.

    Spoiler: a little about DISM

    Location:

    %systemroot%\System32

    Description:

    DISM is an image servicing utility, a command line tool in Windows 7

    DISM lists, installs, removes, configures, and updates components and packages in Windows images.
    The list of available commands depends on the image being serviced and whether the image is offline or online.

    DISM.exe can be used to work with Windows images, both Windows image (.wim) files and virtual hard disk (VHD) files. Working with images allows such operations as adding / removing device drivers, adding / removing Windows operating system packages, adding patches, working with regional settings, plus performing all such actions with images.
    DISM can also be used to update a Windows image to a different edition (for example, from Business to Ultimate, upgrade and downgrade), and to prepare the system image for use.

    DISM.exe also includes functions for connecting and disconnecting images.


    Spoiler: dism.exe syntax

    DISM.exe [dism_parameters] (WIM_command) [<аргументы_WIM>]
    DISM.exe (/Image:<путь_к_автономному_образу>| /Online) [dism_parameters]
    (service_command) [<аргументы_служебной_команды>]

    WIM TEAM:

    /Get-MountedWimInfo - Displays information about mounted WIM images.
    /Get-WimInfo - Displays information about images in a WIM file.
    /Commit-Wim - Saves changes to the mounted WIM image.
    /Unmount-Wim - Unmounts a mounted WIM image.
    /Mount-Wim - Mounts an image from a WIM file.
    /Remount-Wim - Restores a lost WIM connection directory.
    /Cleanup-Wim - Removes resources associated with damaged
    connected WIM images.

    IMAGE SPECIFICATIONS:

    /Online - Specifies the running operating system as
    appointment.
    /Image - Sets the path to the root directory
    offline Windows image.

    DISM SETTINGS:

    /English - Displays command line output
    in English.
    /Format - Sets the report format.
    /WinDir - Specifies the path to the Windows directory.
    /SysDriveDir - Specifies the path to the system boot loader file named
    BootMgr.
    /LogPath - Specifies the path to the log file.
    /LogLevel - Sets the event logging level (1-4).
    /NoRestart - Disables automatic restart and output
    prompts the user to reboot.
    /Quiet - Hides all information except
    error messages.
    /ScratchDir - Specifies the path to the temporary files directory.

    For information about these DISM options and their arguments, specify
    required parameter before "/?".

    Examples

    DISM.exe /Mount-Wim/?
    DISM.exe /ScratchDir/?
    DISM.exe /Image:C:\test\offline /?
    DISM.exe /Online/?

    Attention!
    To work with DISM.EXE, you must run the command line with administrator rights!

    Spoiler: how to run command prompt as administrator

    select the "start" menu in the lower left corner of the desktop -
    in the search bar enter: cmd-
    by right click found -
    "run as administrator".
    This is in windows 7 and vista.
    In windows XP the spelling is slightly different but the principle is the same.

    Another method:
    for Russian version of windows

    Code:

    runas /user:cmd administrator

    Enter it in the Run field (Win + R).
    This will open a command prompt with administrator privileges. If the administrator account is called differently in the team, accordingly, the Administrator changes to your user with administrator rights.

    For English version

    Code:

    Runas /user:Administrator cmd

    There is another way:
    Boot the operating system in safe mode with command line support.


    Connecting the image to DISM.
    ______________________________________
    • 1) Insert the Windows 7 installation disk into the drive, or mount the ISO image.
    • 2) Open the folder sources and copy the file from it install.wim to drive D.
      Attention:
      as a folder to mount the image install.wim CANNOT use the root of drive C(the one on which Windows is installed), since install.wim contains system folders Windows, Program Files, Program Data, Users and other garbage.
    • 3) Create a folder on drive D and name it e.g. Folder.
      The image will be included in this folder. install.wim.
    • 4) run command prompt as administrator
    • 5) Execute the command:

      Code:

      Like its many predecessors, Windows 8 defines strict access rights to important system files and folders. These rights limit unauthorized access by users (including clients over the network, standard and guest users on the local computer) and external sources (malicious scripts, viruses, malware, etc.) to main system folders and files. However, each of us may one day need to make some changes to the system, for example, to install a new Windows theme, we often have to replace some files to completely modify its appearance.

      This can be done using the built-in tools of the operating system, as well as using various “” that modify files automatically, but as practice shows, this is not always safe for the stable operation of the OS. Therefore, first of all, let's consider a way to gain full access to files without using third-party software.

      An example would be two files that need to be replaced to install a new G8 theme - ExplorerFrame.dll and imageres.dll located in C:\WINDOWS\system32. First, go to the directory where these files are located, find them and right-click to open the properties window:

      In the window that opens, immediately go to the tab " Safety" and press the button " Additionally". In the next window, click on the link Change" and then again " Additionally...»:


      After which a more detailed user selection dialog will open, click the “ Search" and select the desired option from the results, confirm your choice with the button OK.

      Now go to the tab " Audit" and press the button " Add»:


      After confirming the open windows, you must set full access to the selected user by ticking this item and clicking OK:

      Now when we returned to the file properties again, you need to select the current user and click the " Change»:


      Once again, select the user with the mouse and assign him full access rights:

      We confirm all windows with the button OK And Yes, after which we proceed to replace the file in the C:\WINDOWS\system32 directory:

      The file was renamed and replaced with another one from the topic.

      I note that any manipulation of system files can be dangerous for the health of your OS, so always make backup copies and create system restore points before changing.

      By the way, advice in case of emergency situations, for example, when installing another theme, I got just a black screen instead of the usual interface and a mouse cursor that ran around the screen without knowing where to click ... By pressing Ctrl + Alt + Del, I launched and in the menu " File"opened the item" New task". Clicked the " Review…” and used this window as an explorer, using the keyboard key - Back Space, went up a few directories to the C drive, went to the \WINDOWS \ system32 folder and returned the original files to their place, which were previously simply renamed to ExplorerFrame.old. dll and imageres.old.dll, after a reboot everything worked as before.

      For a programmatic method of quickly and completely gaining access to files, you can use a special utility called TakeOwnershipEx. The program will help you get full rights in a few mouse clicks, and even faster return everything to its original state. This option will be ideal for beginners and other users who want to save time. Before the first launch, TakeOwnershipEx may request the installation of the .NET Framework 3.5 package; we agree to this requirement and wait for the download to complete.

    Related publications