Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Windows Modules Installer Error 126 - Fix

Comment
 

Windows Modules Installer Error 126 - Fix

Published by Flavius
09-13-2010
Windows Modules Installer Error 126 - Fix

Windows Modules Installer Error 126 - Fix

information   Information

Symptoms
When you try run Windows Modules Installer service the following error is returned
Windows could not start the Windows Modules Installer service on Local Computer.Error 126:The specified module could not be found

additionally above error cause also other following errors

-Windows Update Error 80080005
-When you run any SFC command the following error is returned:Windows Resource Protection could not start the repair service

Cause
This problem can occur if you have corrupted HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version or subfolder in WinSxS described by this key-the exact form of the folder depends on the system architecture (x32 ,x64) and update status.Sometimes this error is correlated with other damages in WinSxS or CBS


1.Make sure you have following key:

HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version.

key should look similar though not necessarily the same as in the example below.

reg85-.jpg

2.Run Readiness Tool.Although TrustedInstaller not working this tool does not require this service.This help to diagnose damages in subfolder described by above Version key and other damages in WinSxS and CBS.This tool generate CheckSur.log file in C:\Windows\Logs\CBS folder -you have to analyze this file too.

Note   Note

Readiness Tool can't detect issues with HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version,thus you have to do that manually.


STEP I -If you have corrupted Version key....

Tip   Tip

For analysis and retrieval system files is best to use good professional file manager -built-in explorer is not good tool for such things


IDENTEFICATION CORRUPTED KEY

First you have to figure to which folder this key should correspond.General form of string in this key is following:

{TrustedInstaller ID} REG_EXPAND_SZ
%SystemRoot%\WinSxS\x86_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID}_none_{16 additional digits} -for 32bit system

and

{TrustedInstaller ID} REG_EXPAND_SZ
%SystemRoot%\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID}_none_{16 additional digits} -for 64bit system

where REG_EXPAND_SZ -expandable string value

In practice may be a number of folders such as above.They relate with difference older TrustedInstaller version.You have to figure which one version is currently used.
Fortunatelly subfolder in C:\Windows\Servicing\Version always have the same name as currently used TrustedInstaller version (I assigned it in this tutorial as TrustedInstaller ID)

EXAMPLES

You have following folder

C:\Windows\Servicing\Version\6.0.6001.18000

so relate string is following:

6.0.6001.18000 REG_EXPAND_SZ
%SystemRoot%\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.0.6001.18000_none_657dfccc7fa7eb9a

and {TrustedInstaller ID}=6.0.6001.18000

Name:  reg85-1.jpg
Views: 5350
Size:  27.8 KB

in another axample

C:\Windows\Servicing\Version\6.1.7600.16385

relate string is following

6.1.7600.16385 REG_EXPAND_SZ
%SystemRoot%\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7600.16385_none_655452efe0fb810b

and and {TrustedInstaller ID}=6.1.7600.16385

Name:  reg85-2.jpg
Views: 5362
Size:  35.5 KB

and so on


FIXING KEY

1.Navigate to C:\Windows\Servicing\Version read the name of a subfolder (now you have TrustedInstaller ID)
2.Use any good file manager to find in C:\Windows\WinSxS subfolder which name starts with:

x86_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID} (if you have system 32bit)

amd64_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID} (if you have system 64bit)

write it name somwhere
3.Go to HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing (CBS),takeownership of this key and add your account to have full control.
4.In CBS key create Version subkey.
5.In Version subkey create expandable string with the same name as {TrustedInstaller ID},in Data field type: %SystemRoot%\WinSxS\{indentified folder in point 2}
6.Remove your account from permissions to CBS key and next restore ownership back to "NT Service\TrustedInstaller"

warning   Warning

Useful lectures relate to point 3 and 6 -plase read them
Take ownership of file
Trusted Installer - Restore as Owner
Folder permissions


STEP II - FIXING REMAINS DAMAGES

Code:
=================================
Checking System Update Readiness.
Binary Version 6.0.6002.22441
Package Version 9.0
2010-09-12 12:29
 
Checking Windows Servicing Packages
 
Checking Package Manifests and Catalogs
 
Checking Package Watchlist
 
Checking Component Watchlist
 
Checking Packages
 
Checking Component Store
(f) CSI Payload File Corrupt 0x00000000 wrpint.dll amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.0.6001.18000_none_657dfccc7fa7eb9a
 
Summary:
Seconds executed: 1667
Found 1 errors
CSI Payload File Corrupt Total count: 1
Example.Windows Update Error 80080005 -here wrpint.dll is corrupted.This file is very important for TrustedInstaller.

Remains damages you have to diagnose and fix in the same way as for other errors relate to corruptions in WinSxS,CBS
How to Analyze the System Update Readiness Tool CheckSur.log File

Published by
Member
Join Date: Apr 2008
Posts: 2,049
Flavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant futureFlavius has a brilliant future

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

Comment

 Windows Modules Installer Error 126 - Fix problems?



Tutorial Tools


Similar topics to: Windows Modules Installer Error 126 - Fix
Tutorial Category
Windows Modules Installer missing... Vista General
windows installer modules has stopped working General Discussion
What is this error with Windows Modules Installer? Vista General
Windows Modules Installer crash - Need help - TYIA Vista General
Windows Modules Installer crash Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50