MSFN Forum: Windows 7 DISM & driver packages - MSFN Forum

Jump to content



  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Windows 7 DISM & driver packages Just can't get it working...

#1 User is offline   Dechy 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 25-February 08

Posted 25 March 2009 - 10:20 AM

I've read many a blog, forums, even listened to the official MS video on the tool... getting any driver to integrate in the offline image doesn't work at all, keep getting errors on any INF I try.

Basically I mount the image, nothing hard there, then I expand/extract drivers from the downloaded packages from say ATI and then use the /add-driver /driver:(driver location).

It parses the folder, finds the INF files but then gives errors. Going through the DISM.LOG all I get is that error 0x8007001E is causing the problem and obviously searching on that error doesn't help as there basically zero information about this tool anywhere...

I'm just starting to work on W7 for work, and DISM seems extremely promising, love the idea of packaging the INSANE mess of drivers we have (over 1.5GB) and the supposedly ease of integrating / removing then from an offline mounted image.

Anyways, any help appreciated.

Thanks.


#2 User is offline   Dechy 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 25-February 08

Posted 25 March 2009 - 10:59 AM

Actually, was just able to integrate NIC drivers fine now, but ATI drivers, even the new 9.3 catalyst (downloaded just the driver portion for now) give errors...

Ok, I got other small drivers working as well, but if it has something to do with video, it definitely doesn't work, seems like it's because they're compressed and DISM can't decompress them??

All other drivers were flat out all decompressed (no .dl_ or whatever) and seemed to work. Better get fixed on either MS's side or the driver providers, or keeping tabs on drivers will be more cumbersome that it was before... rather it be ALL old school driver paths or all "new age" packages through DISM than both at the same time...

This post has been edited by Dechy: 25 March 2009 - 11:15 AM


#3 User is offline   Tripredacus 

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

Posted 26 March 2009 - 09:58 AM

IIRC, ATI drivers require .Net Framework 2.0 to be installed.

#4 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 March 2009 - 07:48 AM

Dechy, which ATI driver packages are you trying to intergrate?

#5 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 31 March 2009 - 09:22 PM

Same here with NVidia drivers.

I've tried both 181.71 (Win7) and 182.08 (Vista) with no luck. The Win7 drivers are terrible under Win7. Oddly enough, the Vista version works fantastic!

I've also tried SoundMAX drivers with poor results. Seems at least the NVidia drivers get parsed at least...
About the only thing that worked for me is an IR device driver (for my PVR program).

:(

#6 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 April 2009 - 07:43 AM

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Searching for driver packages to install...
Found 8 driver package(s) to install.
Installing 1 of 8 - E:\wimMOUNT\pnpDrivers\1\agrsmv32.inf: The driver package wa
s successfully installed.
Installing 2 of 8 - E:\wimMOUNT\pnpDrivers\2\wdma_emu.inf: The driver package wa
s successfully installed.
Installing 3 of 8 - E:\wimMOUNT\pnpDrivers\3\iaahci.inf: The driver package was
successfully installed.
Installing 4 of 8 - E:\wimMOUNT\pnpDrivers\3\iastor.inf: The driver package was
successfully installed.
Installing 5 of 8 - E:\wimMOUNT\pnpDrivers\4\E1e6032.inf: The driver package was
 successfully installed.
Installing 6 of 8 - E:\wimMOUNT\pnpDrivers\4\E1g6032.inf: The driver package was
 successfully installed.
Installing 7 of 8 - E:\wimMOUNT\pnpDrivers\5\LXDCprc.inf: Error - An error occur
red. The driver package could not be installed.
For more information, check for log files in the <windir>\inf folder of the targ
et image.
Installing 8 of 8 - E:\wimMOUNT\pnpDrivers\6\NVIDIA_7300GT_X86.inf:


only problem is my old Lexmark printer
NVIDIA 181.20_geforce_winvista_32bit_english_whql works fine with Seven here

#7 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 02 April 2009 - 03:06 PM

Could it be my version of 7? I'm vivisecting 7068 currently and trying to keep as up to date with the 7s as possible.

If you can MaxXP, what directories are your drivers in and what was the command line? I'd hate to think I foibled something...
I notice you have a pnp directory..I'm just pointing DISM to an x:\drivers\nVidia folder. <shrug>

I mount with DISM:

 
DISM /MOUNT-WIM /WIMFILE:D:\UA7\SOURCES\INSTALL.WIM /INDEX:1 /MOUNTDIR:D:\TEMP 


Add drivers:

 
DISM /IMAGE:D:\TEMP /ADD-DRIVER /DRIVER:D:\DRIVERS\NVIDIA 


Unmount:

 
DISM /UNMOUNT-WIM /MOUNTDIR:D:\TEMP /COMMIT 


Quite simple, no?
Be aware that this works for my IR drivers...

This post has been edited by razormoon: 03 April 2009 - 03:32 PM


#8 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 April 2009 - 08:22 AM

you posted the muiz link but i am using the recurse switch. still trying to get all my updates to install so still messin with it.

#9 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 03 April 2009 - 11:07 AM

What recurse are you referring to? I'm trying to point to different directories, even parent. I'm not sure what DISM is looking for. I'd like to know what was your command that made it recursive as I can not figure it out for DISM.

As for parent, I thought an heirarchy of x:\Drivers\display x:\drivers\sound and x:\drivers\printers and point DISM to x:\drivers would work. I don't think so.



EDIT: FYI - I just learned that there is a /forceunsigned switch to add driver (not tested)

 
DISM /IMAGE:D:\TEMP /ADD-DRIVER /DRIVER:D:\DRIVERS\NVIDIA /FORCEUNSIGNED 


ALSO - figured out /recurse :blushing: don't know how to use it yet

This post has been edited by razormoon: 03 April 2009 - 03:38 PM


#10 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 03 April 2009 - 04:14 PM

Tried a few other things including the expand command with nothing to show.

Without Expand command:

 
~

     flq: {_commit_file_queue}
     flq:      CommitQ DelNodes=0 RenNodes=0 CopyNodes=37
     flq:      {_commit_copy_subqueue}
     flq:           subqueue count=37
     flq:           source media:
     flq:                SourcePath   - [d:\vista\drivers\display]
     flq:                SourceFile   - [dpinst.exe]
     flq:                Flags        - 0x00000000
     flq:           {_commit_copyfile}
!!!  flq:                Error installing file (0x0000001e)
!!!  flq:                Error 30: The system cannot read from the specified device.
!    flq:                     SourceFile   - 'd:\vista\drivers\display\dpinst.ex_'
     flq:                     TempFile     - 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5\SET4DE1.tmp'
!    flq:                     TargetFile   - 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5\dpinst.exe'
     flq:                {SPFQNOTIFY_COPYERROR}
!!!  sto:                     Failed to copy file 'd:\vista\drivers\display\dpinst.ex_' to 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5\dpinst.exe'. Error = 0x0000001E
     flq:                {SPFQNOTIFY_COPYERROR - returned 0x00000000}
!!!  flq:                SPFQNOTIFY_COPYERROR: returned SPFQOPERATION_ABORT.
!!!  flq:                Error 995: The I/O operation has been aborted because of either a thread exit or an application request.
     flq:           {_commit_copyfile exit(0x000003e3)}
     flq:      {_commit_copy_subqueue exit(0x000003e3)}
!!!  flq:      FileQueueCommit aborting!
!!!  flq:      Error 995: The I/O operation has been aborted because of either a thread exit or an application request.
     flq: {_commit_file_queue exit(0x000003e3)}
!!!  sto: Failed to copy driver package to 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5'. Error = 0x0000001E
!!!  sto: Failed to import driver package into Driver Store. Error = 0x0000001E
<<<  Section end 2009/04/03 16:07:19.990
<<<  [Exit status: FAILURE(0x0000001e)]
 









With Expand command:

 
~

     flq:           source media:
     flq:                SourcePath   - [d:\driver]
     flq:                SourceFile   - [nvd3dum.dll]
     flq:                Flags        - 0x00000000
     flq:           {_commit_copyfile}
!!!  flq:                Error installing file (0x00000002)
!!!  flq:                Error 2: The system cannot find the file specified.
!    flq:                     SourceFile   - 'd:\driver\nvd3dum.dll'
!    flq:                     TargetFile   - 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5\nvd3dum.dll'
     flq:                {SPFQNOTIFY_COPYERROR}
!!!  sto:                     Failed to copy file 'd:\driver\nvd3dum.dll' to 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5\nvd3dum.dll'. Error = 0x00000002
     flq:                {SPFQNOTIFY_COPYERROR - returned 0x00000000}
!!!  flq:                SPFQNOTIFY_COPYERROR: returned SPFQOPERATION_ABORT.
!!!  flq:                Error 995: The I/O operation has been aborted because of either a thread exit or an application request.
     flq:           {_commit_copyfile exit(0x000003e3)}
     flq:      {_commit_copy_subqueue exit(0x000003e3)}
!!!  flq:      FileQueueCommit aborting!
!!!  flq:      Error 995: The I/O operation has been aborted because of either a thread exit or an application request.
     flq: {_commit_file_queue exit(0x000003e3)}
!!!  sto: Failed to copy driver package to 'd:\temp\Windows\System32\DriverStore\FileRepository\nv_disp.inf_x86_neutral_a19062f1858dc8d5'. Error = 0x00000002
!!!  sto: Failed to import driver package into Driver Store. Error = 0x00000002
<<<  Section end 2009/04/03 15:54:24.351
<<<  [Exit status: FAILURE(0x00000002)]
 


I can assure you that nvd3dum.dll is definitely there!

....time to drink a beer....

This post has been edited by razormoon: 03 April 2009 - 04:15 PM


#11 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 April 2009 - 04:39 PM

DISM.exe /image:<path_to_mounted_image_directory> /Add-Driver /driver:c:\drivers /recurse

#12 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 03 April 2009 - 04:53 PM

Lord knows I love my M$, but I feel a hernia coming on thinking of Vista.
I've been doing all of this from within W7 which could be my problem. :}

#13 User is offline   Dechy 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 25-February 08

Posted 06 April 2009 - 09:32 AM

View Postfizban2, on Mar 31 2009, 09:48 AM, said:

Dechy, which ATI driver packages are you trying to intergrate?


Sorry, was gone on vacation, holy needed that :D

So, using the 9-3_vista32_win7_32_dd.exe for ATI (not touching CCC just yet), 181.71 for nVidia.

Like I've mentionned, using dism /image:c:\dism /add-driver /driver:c:\drivers\video\ati /recurse for any drivers and ATI + nVidia won't comply... Realtek sound, Broadcom NIC drivers worked fine.

Exact command line & result:

 
C:\Windows\system32>dism /image:c:\dism /add-driver /driver:c:\drivers\video\ati /recurse

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Searching for driver packages to install...
Found 2 driver package(s) to install.
Installing 1 of 2 - c:\drivers\video\ati\CL_76828.inf: Error - An error occurred. The driver package could not be installed.
For more information, check for log files in the <windir>\inf folder of the target image.
Installing 2 of 2 - c:\drivers\video\ati\CW_77071.inf: Error - An error occurred. The driver package could not be installed.
For more information, check for log files in the <windir>\inf folder of the target image.

Error: 30

The command completed with errors. For more information, refer to the log file.

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


Reading the DISM log file, both end up with the same errors (only took anything not INFO in the log)

 
2009-04-06 11:20:20, Warning               DISM   DISM Provider Store: PID=3532 Failed to Load the provider. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)

2009-04-06 11:20:23, Error                 DISM   DISM Driver Manager: PID=3532 Failed to install the driver package 'c:\drivers\video\ati\CL_76828.inf'. - CDmiDriverStore::Import(hr:0x8007001e)
2009-04-06 11:20:23, Error                 DISM   DISM Driver Manager: PID=3532 Failed to install the driver package 'c:\drivers\video\ati\CL_76828.inf'. - CDriverPackage::InternalInstall(hr:0x8007001e)
2009-04-06 11:20:23, Error                 DISM   DISM Driver Manager: PID=3532 d:\win7beta\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x8007001e)
2009-04-06 11:20:23, Info                  DISM   DISM Driver Manager: PID=3532 Driver package c:\drivers\video\ati\CL_76828.inf failed to install. (hr:0x8007001e). - CDriverManager::AddDriverPackagesFromCollection
2009-04-06 11:20:24, Error                 DISM   DISM Driver Manager: PID=3532 Failed to install the driver package 'c:\drivers\video\ati\CW_77071.inf'. - CDmiDriverStore::Import(hr:0x8007001e)
2009-04-06 11:20:24, Error                 DISM   DISM Driver Manager: PID=3532 Failed to install the driver package 'c:\drivers\video\ati\CW_77071.inf'. - CDriverPackage::InternalInstall(hr:0x8007001e)
2009-04-06 11:20:24, Error                 DISM   DISM Driver Manager: PID=3532 d:\win7beta\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x8007001e)
2009-04-06 11:20:24, Info                  DISM   DISM Driver Manager: PID=3532 Driver package c:\drivers\video\ati\CW_77071.inf failed to install. (hr:0x8007001e). - CDriverManager::AddDriverPackagesFromCollection
2009-04-06 11:20:24, Error                 DISM   DISM Driver Manager: PID=3532 d:\win7beta\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:1047 - CDriverManager::Internal_DoAddDriverPackage(hr:0x8007001e)
2009-04-06 11:20:24, Error                 DISM   DISM Driver Manager: PID=3532 d:\win7beta\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:512 - CDriverManager::ExecuteCmdLine(hr:0x8007001e) 


Why in gods name it's looking for that folder on D is beyond me... that's my CD drive and the only thing it's ever seen if the install DVD (which I left in).

Really at a loss for this :wacko:

And this is using plain jane build 7000 downloaded from MSDN with only Windows Updates updates installed.

#14 User is offline   darren1981 

  • Group: Members
  • Posts: 2
  • Joined: 12-April 09

Posted 12 April 2009 - 04:50 PM

Great info thanks, was not aware Unattended installs were possible under Windows 7.

Cheers

#15 User is offline   Dechy 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 25-February 08

Posted 14 April 2009 - 07:16 AM

Interesting thing to note, I gave MDT 2010 a try, and it "slipstreams" the video drivers fine with no errors... I might just start using that to do all my integration now instead of command line DISM.

#16 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 507
  • Joined: 30-July 03

Posted 14 April 2009 - 10:20 AM

View PostDechy, on Apr 14 2009, 02:16 PM, said:

Interesting thing to note, I gave MDT 2010 a try, and it "slipstreams" the video drivers fine with no errors... I might just start using that to do all my integration now instead of command line DISM.


does Microsoft Deployment Toolkit 2010 save a log of what switches DISM used ?

#17 User is offline   sp00f 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 712
  • Joined: 30-November 06

Posted 29 April 2009 - 07:49 PM

/recurse is for if you have more then one driver folder, so you have to point to your driver folder.

DISM.exe /image:<path_to_mounted_image_directory> /Add-Driver /driver:c:\drivers /recurse


/forceunsigned is for non WHQL / BETA drivers , and you have to do those seperate, you have to point to the inf file of the driver.

DISM.exe /image:<path_to_mounted_image_directory> /Add-Driver /driver:c:\nonwhqldrivers\ATInonwhql.inf /forceunsigned


So first do all your WHQL drivers with /recurse and point to your folder wich contains all your driver folders, then do the non WHQL drivers one by one with : /forceunsigned

This post has been edited by sp00f: 29 April 2009 - 07:51 PM


#18 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 30 April 2009 - 09:03 AM

I've tried those, even tried again. Same errors. Also tried MDT 2010...kind of kills the spirit of things and not what I'm looking to do.

#19 User is offline   JohanE 

  • Group: Members
  • Posts: 2
  • Joined: 07-May 09

Posted 07 May 2009 - 07:43 AM

Are you using WinPE when deploying? If so, have you tried the "/ScratchDir" argument?
I know that with Vista and Pkgmgr, when using WinPE, you have to set the scratchdir to a local folder (that you create) when injecting ATI and nVidia drivers because the WinPE scratchdir is only like 32 Mb or so, and ATI and nVidia drivers are far larger.
I've only just stated to play with Win7 myself but I found that pkgmgr automaticly calls DISM anyway, which then uses the default scratchdir,so using the DISM command to begin with and specify the sratchdir in the command line should be able to help you out, if you are using WinPE when getting these problems.

#20 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 18 May 2009 - 04:22 PM

JohanE,

Tried this and it's no. :no:

 
DISM /IMAGE:D:\TEMP /ADD-DRIVER /DRIVER:D:\DRIVERS\NVIDIA /FORCEUNSIGNED /SCRATCHDIR:D:\TEMP2 

This post has been edited by razormoon: 18 May 2009 - 04:24 PM


Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

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



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