nkc3g4 发表于 2020-6-3 16:36:28

DISM错误“系统找不到指定的路径。”研究

系统:Windows10 2004
DISM版本: 10.0.19041.1


DISM部署WIM文件的命令一般是类似这样的格式

Dism.exe /Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:E: /Index:4
执行后出现“错误: 3,系统找不到指定的路径。” 有两个可能的原因
ImageFile找不到或ApplyDir找不到。

为了具体确定错误原因,我模拟了三种情形
1. ImageFile错误,ApplyDir正确
2. ImageFile正确,ApplyDir错误
3. 全都错




命令行显示均为错误: 3,系统找不到指定的路径,没有区别。

下面看dism.log,三种情况的日志分别为

1.

2020-06-03 16:22:04, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2020-06-03 16:22:04, Info                  DISM   DISM.EXE:
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Executing command line: Dism.exe/Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:E: /Index:4
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:04, Warning               DISM   DISM Provider Store: PID=5324 TID=8876 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:04, Warning               DISM   DISM Provider Store: PID=5324 TID=8876 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
2020-06-03 16:22:04, Error               DISM   DISM WIM Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:881 - CWimManager::Apply(hr:0x80070003)
2020-06-03 16:22:04, Error               DISM   DISM Imaging Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
2020-06-03 16:22:04, Error               DISM   DISM Imaging Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2020-06-03 16:22:04, Info                  DISM   DISM.EXE:
2020-06-03 16:22:04, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->

2.

2020-06-03 16:22:24, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2020-06-03 16:22:24, Info                  DISM   DISM.EXE:
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Executing command line: Dism.exe/Apply-Image /ImageFile:"D:\sources\install.wim" /ApplyDir:G: /Index:4
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:24, Warning               DISM   DISM Provider Store: PID=5008 TID=420 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:22:24, Warning               DISM   DISM Provider Store: PID=5008 TID=420 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
2020-06-03 16:22:24, Error               DISM   DISM WIM Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:967 - CWimManager::Apply(hr:0x80070003)
2020-06-03 16:22:24, Error               DISM   DISM Imaging Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
2020-06-03 16:22:24, Error               DISM   DISM Imaging Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2020-06-03 16:22:24, Info                  DISM   DISM.EXE:
2020-06-03 16:22:24, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
3.
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2020-06-03 16:23:25, Info                  DISM   DISM.EXE:
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Executing command line: Dism.exe/Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:G: /Index:4
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:23:25, Warning               DISM   DISM Provider Store: PID=5412 TID=5084 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2020-06-03 16:23:25, Warning               DISM   DISM Provider Store: PID=5412 TID=5084 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
2020-06-03 16:23:25, Error               DISM   DISM WIM Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:881 - CWimManager::Apply(hr:0x80070003)
2020-06-03 16:23:25, Error               DISM   DISM Imaging Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
2020-06-03 16:23:25, Error               DISM   DISM Imaging Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2020-06-03 16:23:25, Info                  DISM   DISM.EXE:
2020-06-03 16:23:25, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->


经比对发现,不同情况下,wimmanager.cpp错误的行号不同。

1. ImageFile错误,ApplyDir正确,行号881
2. ImageFile正确,ApplyDir错误,行号967
3. 全都错,行号881


DISM版本不同,行号也不同。

nkc3g4 发表于 2020-6-3 16:47:38

看了一些错误日志,多数应该是ApplyDir错误,也就是U盘路径找不到。

新空气 发表于 2020-6-3 17:26:48

收藏。留个记号

Hashimoto 发表于 2020-6-25 19:50:02

研究很有价值。

cmd 发表于 2020-8-19 22:25:32

所以怎么正常使用呢
页: [1]
查看完整版本: DISM错误“系统找不到指定的路径。”研究