Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Автоматическая установка Windows 11 / 10 / 8 / 7 / Vista (http://forum.oszone.net/forumdisplay.php?f=83)
-   -   [решено] Ошибка при интеграции драйверов, код 0x2 (http://forum.oszone.net/showthread.php?t=195504)

Hector 01-01-2011 16:59 1578773

Ошибка при интеграции драйверов, код 0x2
 
При интеграции драйверов в получил такую ошибку(сабж),
drivers.log
Код:

2010-12-31 17:06:54, Info                  CBS    pkgmgr called with: "pkgmgr.exe  /o:g:\Mount;g:\Mount\Windows /n:g:\xml\Drivers.xml /l:g:\Logs\drivers.log"
2010-12-31 17:06:54, Info                  CBS    Executing DISM: "C:\Windows\system32\dism.exe" /image:"g:\Mount" /sysdrivedir:"g:\Mount" /norestart /logpath:"g:\Logs\drivers.log.txt" /apply-unattend:"g:\xml\Drivers.xml"
2010-12-31 17:06:54, Info                  DISM  PID=5968 Scratch directory set to 'C:\Users\Hector\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
2010-12-31 17:06:54, Info                  DISM  PID=5968 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadImageSession
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Manager: PID=5968 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM.EXE:
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: <----- Starting Dism.exe session ----->
2010-12-31 17:06:54, Info                  DISM  DISM.EXE:
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=2
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Executing command line: "C:\Windows\system32\dism.exe" /image:"g:\Mount" /sysdrivedir:"g:\Mount" /norestart /logpath:"g:\Logs\drivers.log.txt" /apply-unattend:"g:\xml\Drivers.xml"
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Attempting to add the commands from provider: WimManager
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Succesfully registered commands for the provider: WimManager.
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Attempting to add the commands from provider: FolderManager
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
2010-12-31 17:06:54, Error                DISM  DISM.EXE: Failed to access the image folder or image's windows folder.
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: Image session has been closed. Reboot required=no.
2010-12-31 17:06:54, Info                  DISM  DISM.EXE:
2010-12-31 17:06:54, Info                  DISM  DISM.EXE: <----- Ending Dism.exe session ----->
2010-12-31 17:06:54, Info                  DISM  DISM.EXE:
2010-12-31 17:06:54, Info                  DISM  DISM Image Session: PID=5968 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
2010-12-31 17:06:54, Info                  DISM  DISM Provider Store: PID=5968 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
2010-12-31 17:06:54, Info                  CBS    Dism.exe returned: 2
2010-12-31 17:06:59, Info                  CBS    pkgmgr return code: 0x2


Hector 03-01-2011 20:35 1579965

Может не хватает каких-то сведений, или я что-то не так сказал, исправьте, да и ответ нужен :)

Lennyvets 04-01-2011 23:42 1580892

Код 2 - это ERROR_FILE_NOT_FOUND, см. Winerror.h и судя по
Цитата:

Цитата Hector
2010-12-31 17:06:54, Error DISM DISM.EXE: Failed to access the image folder or image's windows folder. »

ругается на папку, в которую монтирован образ. И ещё в командной строке
Цитата:

Цитата Hector
2010-12-31 17:06:54, Info CBS Executing DISM: "C:\Windows\system32\dism.exe" /image:"g:\Mount" /sysdrivedir:"g:\Mount" /norestart /logpath:"g:\Logs\drivers.log.txt" /apply-unattend:"g:\xml\Drivers.xml" »

параметр /sysdrivedir: не является необходимым при обслуживании образа. Попробуйте для начала перемонтировать образ...

Hector 05-01-2011 21:46 1581572

не совсем понял, что требуется, можно по пунктам? для новичка

Lennyvets 05-01-2011 22:45 1581628

Цитата:

Цитата Hector
можно по пунктам? »

собственно, пункт один - это попробовать перемонтировать образ:
Код:

Dism /unmount-WIM /MountDir:g:\Mount /discard
Dism /Mount-Wim /WimFile:ваш_путь\install.wim /Name:"ваша_редакция" /MountDir:g:\Mount

ну и разумеется, если были операции с образом до интеграции драйверов, их повторить и убедиться что они без ошибок прошли.
Мои примеры

Демонтировать образ:
Код:

Dism /unmount-WIM /MountDir:C:\7\OFFLINE /discard
Смонтировать образ:
Код:

Dism /Mount-Wim /WimFile:C:\7\DVD\sources\install.wim /Name:"Windows 7 ULTIMATE" /MountDir:C:\7\OFFLINE
Интегрировать драйвера:
Код:

DISM /image:C:\7\OFFLINE /Add-Driver /driver:C:\7\drivers /recurse /ForceUnsigned
здесь C:\7\drivers - папка со всеми драйверами в подпапках

Hector 07-01-2011 17:20 1583103

Моя ошибка, я не понял, что сначала надо смонтировать образ, а потом выполнять команду интеграции, а не сразу пытаться интегрировать драйвера :sorry:


Время: 08:49.

Время: 08:49.
© OSzone.net 2001-