MSFN Forum: DISM errors - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

DISM errors only under 7, no problems under Vista

#1 User is offline   fredpsycho83 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 10-July 07

Posted 11 October 2009 - 07:12 AM

hello all

i have done some batch to create an unattend based on Windows 7, they use DISM, ImageX, and OSCDIMG.
all my command work properly, and i have done a Windows 7 una DVD that i have installed on my PC.

but ... here is the deal : under Vista SP2, all my batch worked properly, but in windows 7, i have DISM error.

for example, i mount a wim file using the old imagex (i have tried with the new too), works ok, but when i use the driver or update integration command, it doesnt work with an error : dism is corrupt, try to reinstall etc ...

here is a copy of the complete command line with the result on screen :

c:\dismtool2\cmd\imagex.exe /mountrw c:\dismtool2\dvd\sources\install.wim 1 c:\dismtool2\mount

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.

Mounting (RW): [c:\dismtool2\dvd\sources\install.wim, 1] ->
			   [c:\dismtool2\mount]

Successfully mounted image (RW).


c:\dismtool2\cmd\install_wim_tweak.exe /p c:\dismtool2\mount /m

-------------------------------------------
------Pre-install registry Tweak Tool------
---------------for Windows 6.x-------------
-------------------------------------------
Processing : c:\dismtool2\mount
Creating BKP of registry file...		 OK
Mounting registry file...				OK
Enabilng taking ownership...			 OK
Editing 'Packages' subkeys 364/364	   OK
Editing 'PackagesPending' subkeys 364/364OK
Modyfing registry completed sucessfully.
-------------------Ending------------------
Unmounting key...						OK
Removing BKP file...					 OK


c:\dismtool2\cmd\dism.exe /image:c:\dismtool2\mount /add-package /packagepath:c:\dismtool2\updates

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Error: 0xc150003a

An error occurred while loading DISM. The DISM tool may be corrupt.
Try reinstalling DISM.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log


as you can see, i have a copy of DISM in my c:\dismtool2\cmd folder, but if i use the path of the original dism of windows 7 in c:\windows\system32\dism, i have got the same error.

i have also tried to mount the wim using dism command, its works, but the Pre-install registry Tweak Tool doesn't work on a dism-mounted wim, only on an old imagex-mounted wim ...

like i said, it works 100% properly on Vista, so why on Windows 7 my dism get corrupt ? anyone have this problem ?



here is the dism.log report :
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: 
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=4
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Executing command line: c:\dismtool2\cmd\dism.exe  /image:c:\dismtool2\mount /add-package /packagepath:c:\dismtool2\updates
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Loading Provider from location c:\dismtool2\cmd\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Connecting to the provider located at c:\dismtool2\cmd\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Loading Provider from location c:\dismtool2\cmd\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Connecting to the provider located at c:\dismtool2\cmd\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Loading Provider from location c:\dismtool2\cmd\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Connecting to the provider located at c:\dismtool2\cmd\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
2009-10-10 14:40:56, Info				  DISM   DISM Provider Store: PID=1908 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2009-10-10 14:40:56, Error				 DISM   DISM WIM Provider: PID=1908 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmountedimageinfo.cpp:317 - CWimMountedImageInfo::Initialize(hr:0x80070057)
2009-10-10 14:40:56, Error				 DISM   DISM WIM Provider: PID=1908 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmountedimageinfo.cpp:94 - CWimMountedImageInfo::CreateWimMountedImageInfo(hr:0x80070057)
2009-10-10 14:40:56, Error				 DISM   DISM WIM Provider: PID=1908 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimimage.cpp:497 - CWimImage::InternalGetStatus(hr:0x80070057)
2009-10-10 14:40:56, Error				 DISM   DISM.EXE: No providers can service the image found at 'c:\dismtool2\mount'. HRESULT=C150003A - CDismWrapper::ValidateDismTarget(hr:0xc150003a)
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: 
2009-10-10 14:40:56, Info				  DISM   DISM.EXE: <----- Ending Dism.exe session ----->

This post has been edited by fredpsycho83: 11 October 2009 - 01:23 PM



#2 User is offline   fredpsycho83 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 10-July 07

Posted 12 October 2009 - 12:55 PM

nobody has a clue ?

#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 October 2009 - 01:31 PM

One of the errors you are getting is "parameter incorrect". which means you missed a step. Alas your package adding command is not complete.

Here is your failing line:
c:\dismtool2\cmd\dism.exe /image:c:\dismtool2\mount /add-package /packagepath:c:\dismtool2\updates


Here is a working example:
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files\Windows OPK\tools\PETools\amd64\WinPE_FPs\winpe-hta.cab"


The main difference is that in your Dism command, you specify a folder, but in my command, I specify an actual file.

#4 User is offline   fredpsycho83 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 10-July 07

Posted 12 October 2009 - 01:36 PM

okay ... maybe

but why does it work perfectly with just the folder path under Vista ?
i repeat all my batchs works 100% without any kind of error under Vista

maybe the issu is in the (")

this : dism.exe /image:c:\dismtool2\mount /add-package /packagepath:c:\dismtool2\updates
to this : dism.exe /image:"c:\dismtool2\mount" /add-package /packagepath:"c:\dismtool2\updates"
or maybe : dism.exe /image:"c:\dismtool2\mount\" /add-package /packagepath:"c:\dismtool2\updates\"

This post has been edited by fredpsycho83: 12 October 2009 - 01:40 PM


#5 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 October 2009 - 01:44 PM

I only added the " to my path because it contains spaces in the path. You don't need them otherwise.

There are quite a few differences between the OPK/AIK from Vista and Windows 7. Its annoying now I have to type more than I'm used to! :angry:

Oh also, you have the same version installed on both machines? Also make sure you are running your PE Tools Command Prompt as admin.

#6 User is offline   fredpsycho83 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 10-July 07

Posted 12 October 2009 - 01:59 PM

i have developped a "stand-alone tool" (batchs) to create an unattend DVD of 7. Normally it doesn't need WAIK or any other tool, i have integrated the drivers wimfltr and wimmount to install, the wimgapi.dll etc ...

on a fresh installed vista, i can produce a 7 una DVD without installing anything else
i have spent 2 weeks to do and test it, and at the end, all works fine.

i have done an unatend 7 with it, and i have formated my pc with it. i have only 7 on my pc, no dualboot etc ...

i have found some new update for windows 7 that i wanted to integrate in a new version of an una 7, and my tool doesn't work when the batch use a dism command...

i havent installed any WAIK or OPK in 7, like i didn't installed any WAIK/OPK in vista...

i have a laptop under vista, and my tool works just fine, but not in 7 ...
i have test my tool on a 7 RTM untouched installed on VMware, same errors
maybe because 7 have DISM preintegrated, and i use a DISM-copy in an other folder in my tool ?

This post has been edited by fredpsycho83: 12 October 2009 - 02:00 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy