urie Posted April 14, 2009 Share Posted April 14, 2009 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 ? Link to comment Share on other sites More sharing options...
sp00f Posted April 30, 2009 Share Posted April 30, 2009 (edited) /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 /forceunsignedSo 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 Edited April 30, 2009 by sp00f Link to comment Share on other sites More sharing options...
razormoon Posted April 30, 2009 Share Posted April 30, 2009 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. Link to comment Share on other sites More sharing options...
JohanE Posted May 7, 2009 Share Posted May 7, 2009 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. Link to comment Share on other sites More sharing options...
razormoon Posted May 18, 2009 Share Posted May 18, 2009 (edited) JohanE,Tried this and it's no. DISM /IMAGE:D:\TEMP /ADD-DRIVER /DRIVER:D:\DRIVERS\NVIDIA /FORCEUNSIGNED /SCRATCHDIR:D:\TEMP2 Edited May 18, 2009 by razormoon Link to comment Share on other sites More sharing options...
JohanE Posted May 25, 2009 Share Posted May 25, 2009 OK... this line works for me:dism.exe /image:"d:\\" /sysdrivedir:"c:\\" /norestart /apply-unattend:"d:\Windows\Panther\Unattend.xml" /scratchdir:d:\uptempThe only major difference is that I've specified the path to the driver store in the unattend file. Link to comment Share on other sites More sharing options...
razormoon Posted May 27, 2009 Share Posted May 27, 2009 (edited) Here's the thing, although I do employ autounattend.xml, I have never dealt with unattend.xml. Without going into too much detail, how does one employ it if there is a difference? I see my own unattend.xml (in panther folder) and it is identical to my autounattend with a few "sensitive deletions". Does one just save autounattend as unattend?What are the double backslashes as they apply to a DISM command?Pardon my ignorance. EDIT***Ok, I have answered my own questions! However, what kind of code are you using to specifically in your answer file to point to path? And I only ask because I believe there were issues with drive letters once? I could be mistaken... Can you post an example...I can then take it from there.Thanks! Edited May 27, 2009 by razormoon Link to comment Share on other sites More sharing options...
Dechy Posted June 1, 2009 Author Share Posted June 1, 2009 Ok, back on this project again... god love the govt; getting pulled from projects and thrown onto other things only to get pushed back onto what you were oing from the get-go...Anyways, I'm back with the damned DISM / MDT 2010 thing, seems I was wrong about MDT taking in the drivers and not DISM; when I hit the Update on my deployment folder, I get the same errors. But I'm going to leave that one alone for now.I'm seriously lacking basic knowledge on how DISM & package integration works... but anyways; this scenario is simple! Mount WIM image, add-package for 2 tiny MS updates (KB971180 & KB970858) and the french language pack. No errors, I do the /get-packages and clearly see them there, but with the mention "install pending".I unmount & commit changes. I then re-mount & re-check /get-packages and yep, they're definitely there. I check WAIK after reloading the WIM and I don't see the packages in there anywhere. Ok. So I copy that WIM file to my USB key & re-install from scratch. The WIM was ~125MB bigger, so another clear indication that the packages are there.The question: how in hell do I get them to install now? Even after W7 is loaded, it didn't install them automatically (which I thought that's how it was going to do them) and they don't appear anywhere as an option to start the installs...So yeah, there has to be something basic I'm missing here, like either in my autounattend to tell it to do the install or before closing off the offline image.The lack of documentation on how DISM works from MS is ridiculous, I'm about to just plug in every darn thing I want to install in the offline image, close the WIM & create a big old ugly script that installs everything instead of using these new "automation tools" It just really sucks coming from a standpoint where XP tools had no secrets to DISM/WAIK/MDT. Link to comment Share on other sites More sharing options...
razormoon Posted June 2, 2009 Share Posted June 2, 2009 So, like I'm just going to chalk it up to the RC/BETA thing... I'm hoping to get a tip from JohanE as I have never pointed to any drivers from autounattend. That being said, it's only because of the physical drive pointer thing (if that still is an issue). I can get my audio and IR drivers to add...just not the video!On my journey to working with things that are so-called "robust", it chaps my a** when I run into a brick wall like this. Don't get me wrong...I live to be educated!Dechy: Have you tried DISM /image:<drive>\<path> /add-package /?Maybe something there? Link to comment Share on other sites More sharing options...
Dechy Posted June 2, 2009 Author Share Posted June 2, 2009 Indeed I did, there's no "install-package" or "enable-package" or something that would tell the OS on first boot (or any pass) to kick off those installs.I just find it odd, that like you, not all my drivers work, but the ones that do, once "slipstreamed" into the .WIM using DISM, they actually "work" right away, or at least the OS is quite aware of them... but doing the same type of procedures for packages gives completely different results...Ok, I don't find it odd, I find it frustrating. Link to comment Share on other sites More sharing options...
powera Posted June 14, 2009 Share Posted June 14, 2009 check Technet Forumhttp://social.technet.microsoft.com/Forums...e2-4135de8fe6b5some files need expand cmd. Link to comment Share on other sites More sharing options...
razormoon Posted June 17, 2009 Share Posted June 17, 2009 (edited) @poweraI owe you one.Here is what I posted on that thread:==========================================================================="Working off of INSTALL.WIM of W7x86 7229 in c:\w7 directory.Extracted nvidia 185.85_desktop_win7_32bit_english_whql.exe to C:\TEMPEXPAND C:\TEMP\*.*_ C:\DRVRS\NVIDIACopied contents of C:\TEMP (minus *.*_) to C:\DRVRS\NVIDIAAt cmd prompt entered:DISM /MOUNT-WIM /WIMFILE:C:\W7\SOURCES\INSTALL.WIM /INDEX:5 /MOUNTDIR:C:\TEMPIn case you're wondering, Windows 7 Ultimate resides in the 5th index of install.wim...index 4 of x64 install.wim.DISM /IMAGE:C:\TEMP /ADD-DRIVER /DRIVER:C:\DRVRS\ /RECURSEI also have audio and IR controller drivers in C:\DRVRS directory.../RECURSE assures that DISM will pick through each directory.DISM /UNMOUNT-WIM /MOUNTDIR:C:\TEMP /COMMIT====================================================================================== Edited June 17, 2009 by razormoon Link to comment Share on other sites More sharing options...
Skauneboy Posted June 17, 2009 Share Posted June 17, 2009 Thanks for your efforts razormoon! I've struggled with the integration of ATI Catalyst drivers but the expand command made the difference. Would be nice if Dism did that automatically though. Link to comment Share on other sites More sharing options...
razormoon Posted June 17, 2009 Share Posted June 17, 2009 (edited) Please thank powera and expecially Andreas Weber @ TechNet for this, the missing piece was retaining the *.??_ (underscore) on the expanded files!And I am sure that software pieces such as MaxXpSoft's Vista 7 UA and newer programmers will take advantage of this...In eating my own words, I suppose this proves DISM's robustness....<dang it!! ...expecially> Edited June 17, 2009 by razormoon Link to comment Share on other sites More sharing options...
razormoon Posted June 21, 2009 Share Posted June 21, 2009 (edited) Pain in the butt having to expand files as soon as new drivers appear! For those of you that are interested in this driver quagmire, I have put together the following...copy and paste to notepad and save as filename.bat:(Be sure to change the driver directory to match yours...this file can be run from anywhere regardless of driver directory)REM @echo offREM Batch file for conversion/expansion of any driver files that do not cooperate with Windows 7 DISM ADD-DRIVER due to compression.REM This will also parse subdirectories and expand those files as well.REM For visual confirmation, be sure to refresh your directory to view correct file sizes.REM Location of original (untouched) driver directory (user defined, don't forget trailing backslash)SET DRVDIR=C:\DRIVERS\REM Wildcard pattern to search for compressed files (this example for nvidia, NVAPI.DL_)SET WILDCARD=*.??_REM Holds directory\filename of original compressed files (user defined, may be left unchanged)SET DRIVERS=C:\DRVORG.TXTREM Holds directory\filename of expanded files (user defined, may be left unchanged)SET EXPANDED=C:\DRVEXP.TXTREM Creates log of commandsSET LOG=C:\COOLLOG.TXTREM Pre-CleanupDEL %EXPANDED% /qDEL %DRIVERS% /qDEL %LOG% /qREM Creates standard text file with directory\filename of compressed filesfor /f "tokens=1,2,3,4,5 delims= " %%A in ('dir /b /s %DRVDIR%%WILDCARD%') do echo %%A >> %DRIVERS%REM Creates second standard text file with directory\filename of expanded files (minus the third ext character (underscore))for /f "tokens=1,2,3,4,5 delims=_" %%A in ('dir /b /s %DRVDIR%%WILDCARD%') do echo %%A >> %EXPANDED%REM Expands files to same directory (expanded files now have only two character extension)for /f "tokens=1,2,3,4,5 delims= " %%A in ('type %DRIVERS%') do EXPAND.EXE -R %%A >> %LOG%REM Overwrites original filesfor /f "tokens=1,2,3,4,5 delims= " %%A in ('type %EXPANDED%') do MOVE /Y %%A %%A_ >> %LOG%REM CleanupDEL %EXPANDED% /qDEL %DRIVERS% /qEXITAs an example, I store all my drivers in E:\driver\32 and E:\driver\64 - within each of these exists DISPLAY, AUDIO, USBUIRT, ETC. This batch will go through every directory if you point it to E:\Driver\. Known issues: DO NOT add spaces to end of SET and FOR lines or anywhere else for that matter. Trust me!!Have fun!! Edited June 22, 2009 by razormoon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now