none
Adding an alternate display / graphic-card driver to Windows 7 Setup/Image

    Question

  • Hello,

    is it possible to add an alternate graphic-card driver while/within the setup?
    Or to merge an alternate graphic-card driver to the image?
    I have a nVidia GeForce 6800 GT (256 MB) but after  the last restart to
    finishing the installation, the new win7 boots up (I can see the logo animation)
    and after a while it turns of the monitor :-(
    Can't do any input. And I have to do a cold reboot (CTRL+Alt+Del doesn't work)
    After a reboot (unclean shutdown or by prssing F8) I can choose a safe startup,
    but then the setup says that the setup can only be finished after a reboot and a
    normal startup. But then I have the behavior that I descirbed above.
    Perhaps a diplay driver replacing will fix this. But hwo can I do this?
    Perhaps I can merge this in the image? Have the image:
    "7000.0.081212-1400_client_en-us_Ultimate-GB1CULFRE_EN_DVD.iso"

    Any help would be appreciate

    btw: My Computer:
    Asus A8N Sli Deluxe (Socke939 with AMD Athlon64, 2GB Ram, SATA HDs)
    NVIDIA GeForce 6800 (GT) 256 MB ePCI, but Single and not using SLI
    Iiyama S901GT VisionMaster 450 (CRT 19")

    Asus doesn't provide drivers for Windows 7 (only Vista) and from nVidia I downloaded
    a beta driver for my GeForce 6800 for windows 7 (181.71_geforce_win7_32bit_international_beta.exe)

    Vista Business (as 32bit version) works well with my computer
    and its a multi-os installation with FreeDOS (primary), Vista (primary),
    Win7 (primary, but not working) and Linux (ext/logic, debian 5.0)

    Andi

    Thursday, April 16, 2009 8:56 PM

Answers

  • Hello,

    thank you for all the help. I got it
    Just forgot to enter the boot address when burning to CD.
    But since yesterday I have RC ;-)

    Anyway and as a remark. With new new integrated driver the bavior
    of black screen (turned off) happend again. But could install using the
    "640x480" (F8) install mode and then could set the appropriate driver and
    resolution to a lower resolution than the setup determined.
    With the Beta and the RC I saw yesterday that Windows "think" that
    1600x1200 woul be the recommend setting with my IIyama Vision Master 450
    and GeForce 6800 But that is to high. If I set this setting manual after a complete
    and successful install the Screen goes into spleep mode (turned off) und I
    have to wait 15 seconds...

    But now it works...


    • Marked as answer by Nick FV Monday, June 8, 2009 3:18 PM
    Friday, May 8, 2009 8:34 PM

All replies

  • Hi Andreas

    This might be possible using the Windows Automated Installation Kit.

    Here are the links to the Windows 7 version of this tool.

    Download: WAIK for Windows 7 Beta

    Download: WAIK for Windows 7 Beta documentation




    Ronnie Vernon MVP

    Thursday, April 16, 2009 10:47 PM
    Moderator
  • Hello Ronnie,

    ok, I downloaded the WAIK.
    But it very difficult to setup a new win7 image :-(
    And at the moment the "create catalogue" function always shows
    an "The parameter is incorrect"

    ---snip---
    9:09 AM :
    9:09 AM : An error occurred trying to start the catalog generation process.
    9:09 AM :
    9:09 AM : System.ComponentModel.Win32Exception: The parameter is incorrect
       at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at Microsoft.ComponentStudio.CatalogGenerator.Initialize(Form owner)
    ---snap---

    btw: Doeas anybody know when the win7 rc1 will be available for download?
    Perhaps (hopfully) it's working with my hardware

    Andi
    Friday, April 17, 2009 7:12 AM
  • Hi Andi,

    Win7 RC is not out yet - thus you will need to wait for it before you can download.

    Regarding the WAIK issue, since I do not have that installed, I am unable to assist you on that - But can you try reading up the documentation and see if it helps?


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643
    Friday, April 17, 2009 11:22 AM
    Answerer
  • You can probably do this the same way as with Windows Vista (download the WAIK to start with as Ronnie stated) and mount the install.wim with imagex.

    You can (probably....haven't tested it myself yet) add the driver through the dism command. Watch this video on Microsoft.com to see how you can achieve this. Use the updated install.wim and create a new boot iso (or use a USB key to install Windows 7, check here to see how to creat a Win7 boot USB stick) and boot your usb/dvd.
    MCTS Forefront | MCTS ISA Server 2006 | MCITP Enterprise Administrator
    • Edited by Helmer - Old Account Thursday, April 23, 2009 9:16 PM changed peimg command to dism command :-)
    • Proposed as answer by pacav69 Friday, April 24, 2009 8:15 AM
    Thursday, April 23, 2009 8:57 PM
  • You would have to add a new driver using DISM to mount the 'install.wim' and then add the new driver.

    If you want i can give you a list of commands that can help.



    To err is human to really foul things up it takes a computer.
    Friday, April 24, 2009 9:42 AM
  • You use imagex to mount the image and then use DISM to add the new driver. Have you seen the video in my previous post? It's explained very nicely in there.

    When I have time I'll try it myself this weekend.....


    MCTS Forefront | MCTS ISA Server 2006 | MCITP Enterprise Administrator
    Friday, April 24, 2009 12:44 PM
  • Hello,

    it seems that I can successfull integrate the device drivers from nvidia
    (GeForce 6800) But first the nvidia driver files have to be prpared in
    case of Lempel-Ziv (LZ)-compressed files.

    NOTE: Tricky Install / Preparing the nvidia driver files to migrate in win7

    1. downloaded nvidia installation file available at:
       http://www.nvidia.com/Download/index.aspx?lang=en-us
       and for the GeForce 6800 driver:
       http://www.nvidia.com/object/win7_x86_181.71_beta.html

    2. doubleclick the file: 181.71_geforce_win7_32bit_international_beta.exe
       extract the files to a temp dir like C:\temp\nvidia
       close/finish the install program

    3. expand all files with an underscore to a seperate directory *.??_
       C:\temp\nvidia>expand.exe NvPVEnc.ax_ C:\temp\nvextr\NvPVEnc.ax_
       C:\temp\nvidia>expand.exe nvcpl.cp_ C:\temp\nvextr\nvcpl.cp_
       C:\temp\nvidia>expand.exe nvapi.dl_ C:\temp\nvextr\nvapi.dl_
       ... etc. (36 *.??_ files in 181.71_geforce_win7_32bit_international_beta.exe)

    but beware to let the extension with the underscore untouched. After
    extraction it should be the same name => *.??_
    This is the expected name for the integration defined in nv_disp.inf

    Copy the rest of the uncompressed files (files with no underscore) to the dir
    where the expande files resides and use that path with /add-driver like:

    dism.exe /image:C:\temp\mountdir /add-driver /driver:C:\temp\nvextr

    (see below)


    But now I have a big problem with the commit command. First I type:

    dism.exe /mount-wim /wimfile:install.vim /index:1 /mountdir:G:\pub\win7mnt

    and the vim file is mounting. After that I type

    dism.exe /image:G:\pub\win7mnt /add-driver /driver:G:\pub\nvextr

    I get the output:

    ---snip---
    Deployment Image Servicing and Management tool
    Version: 6.1.7000.0

    Image Version: 6.1.7000.0

    Searching for driver packages to install...
    Found 1 driver package(s) to install.
    Installing 1 of 1 - G:\pub\nvextr\nv_disp.inf: The driver package was successfully installed.
    The operation completed successfully.

    J:\Program Files\Windows AIK\Tools\PETools>_
    ---snap---

    all seems to be ok and if I type

    dism.exe /image:G:\pub\win7mnt /get-drivers

    the nvidia driver is installed/integrated with the renamed oem1.inf
    and I get the output:

    ---snip---
    Deployment Image Servicing and Management tool
    Version: 6.1.7000.0

    Image Version: 6.1.7000.0

    Obtaining list of 3rd party drivers from the driver store...

    Driver packages listing:

    Published Name : oem1.inf
    Original File Name : nv_disp.inf
    Inbox : No
    Class Name : Display
    Provider Name : NVIDIA
    Date : 2009-02-26
    Version : 8.15.11.8171

    Published Name : oem0.inf
    Original File Name : prnms001.inf
    Inbox : No
    Class Name : Printer
    Provider Name : Microsoft
    Date : 2006-06-21
    Version : 6.1.7000.0

    The operation completed successfully.

    J:\Program Files\Windows AIK\Tools\PETools>
    ---snap---

    But then, if I type the command:

    dism.exe /unmount-wim /mountdir:G:\pub\win7mnt /commit

    or the command:

    dism.exe /commit-wim /mountdir:G:\pub\win7mnt

    nothing happens and it doesn't work or have a bug, don't know, but I
    have to wait, and wait, and wait... for hours and nothing happens.
    And I can't press CTRL+C

    just have this output with a blinking cursor at the end

    ---snip---
    J:\>dism.exe /unmount-wim /mountdir:G:\pub\win7mnt /commit

    Deployment Image Servicing and Management tool
    Version: 6.1.7000.0

    _ (BLINKING)
    ---snap---

    btw: the command

    J:\>dism.exe /unmount-wim /mountdir:G:\pub\win7mnt /discard

    works fine and I have definitely _write_ access at the target directory
    but the /commit flag doesn't work. Why?

    If I just close the window and unmount with

    imagex.exe /unmount G:\pub\win7mnt

    and then mount with

    imagex.exe /mount install.vim 1 G:\pub\win7mnt

    and type the command:

    dism.exe /image:G:\pub\win7mnt /get-drivers

    the new nvidia driver isn't installed :-(

    after that I tried to use imagex to mount the image and using the commit
    flag of imagex. Typing following commands

    imagex.exe /mountrw install.wim 1 G:\pub\win7mnt
    dism.exe /image:G:\pub\win7mnt /add-driver /driver:G:\pub\nvextr

    all semmes to be ok. I get the "successful" message

    but with the command

    imagex.exe /commit G:\pub\win7mnt

    I get:
    ---snip---
    ImageX Tool for Windows
    Copyright (C) Microsoft Corp. All rights reserved.

    Committing: [G:\pub\win7mnt]...
    _ (BLINKING for hours)
    ---snap---


    What can I do now?

    Tuesday, April 28, 2009 8:31 AM
  • Hello,

    now I get it working and have now an image with the
    added driver but still have a problem.

    It is not easy to build a bootable DVD (my computer can't boot from usb)
    I tried to extract the bootimage with ImageBurn and burn the original
    complete windows 7 dvd with the new install.vim and the extraceted bootimage
    to a new dvd, but get an "error 5" - "Can't boot from DVD/CD"

    Does anybody know the problem or knows a "working" guide
    to build a bootable DVD Image?

    Andi
    Friday, May 1, 2009 2:27 PM
  • "Does anybody know the problem or knows a "working" guide
    to build a bootable DVD Image?"

    Copy all the files from the Original Win7 image to a working directory and also copy your modified install.wim to the sources directory and replace it.

    Then using this application oscdimg with this command line will create a bootable DVD

    oscdimg -b.\ISO\boot\etfsboot.com -h -j1 -j2 -m -o -x -lMYNEW_DVD .\ISO .\ISOFILE\MYNEW_x86.iso

    the -b is the location of the boot file
    -l is the label of the image

    the Directory structure is as follows:

    ISO <--- contains all the files from the image
    --->boot
    ---->efi
    ---->sources
    ----->support
    ----->upgrade

    ISOFILE <--- location of created ISO image file
    Once you have created the ISO file then burn it at the slowest speed x2 is best to ensure it can boot.



    To err is human to really foul things up it takes a computer.
    Saturday, May 2, 2009 1:58 PM
  • Hello,

    thank you for all the help. I got it
    Just forgot to enter the boot address when burning to CD.
    But since yesterday I have RC ;-)

    Anyway and as a remark. With new new integrated driver the bavior
    of black screen (turned off) happend again. But could install using the
    "640x480" (F8) install mode and then could set the appropriate driver and
    resolution to a lower resolution than the setup determined.
    With the Beta and the RC I saw yesterday that Windows "think" that
    1600x1200 woul be the recommend setting with my IIyama Vision Master 450
    and GeForce 6800 But that is to high. If I set this setting manual after a complete
    and successful install the Screen goes into spleep mode (turned off) und I
    have to wait 15 seconds...

    But now it works...


    • Marked as answer by Nick FV Monday, June 8, 2009 3:18 PM
    Friday, May 8, 2009 8:34 PM
  • I am currently working on your instruction as I too have been trying to integrate drivers:

    BTW - YOU ARE MOUNTING INDEX 1 OF THE WIM INSTEAD OF INDEX 5

    Instead of creating an EXPAND command for each file you can always do "EXPAND *.*_ C:\EXPTEMP". That works just as well while retaining the extension.
    Also, you can add resolution settings in your autounattend.xml to keep setup from defaulting to an unsupported resolution.

    Will report back with findings.

    EDIT**

    FINDINGS:

    Working off of INSTALL.WIM of W7x86 7229 in c:\w7 directory.
    Extracted nvidia 185.85_desktop_win7_32bit_english_whql.exe to C:\TEMP
    EXPAND C:\TEMP\*.*_ C:\DRVRS\NVIDIA
    Copied contents of C:\TEMP (minus *.*_) to C:\DRVRS\NVIDIA

    At cmd prompt entered:

    DISM /MOUNT-WIM /WIMFILE:C:\W7\SOURCES\INSTALL.WIM /INDEX:5 /MOUNTDIR:C:\TEMP
    In 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\ /RECURSE
    I 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

    IT WORKS!!!!  Thanks so much for this Andreas!!!!!!!!!!!




    EDIT: WORD IS THAT THIS ALSO APPLIES TO ATI CATALYST!
    • Proposed as answer by razormoon Wednesday, June 17, 2009 2:20 AM
    • Edited by razormoon Wednesday, June 17, 2009 11:37 PM Affects other video manufacturer
    Wednesday, June 17, 2009 1:31 AM
  • With the constant flow of new drivers, I've decided to put the following together in order to make this as painless as possible.
    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 off
    REM Batch file for conversion/expansion of any driver files that do not cooperate with Windows 7 DISM ADD-DRIVER.
    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.TXT

    REM Holds directory\filename of expanded files   (user defined, may be left unchanged)
    SET EXPANDED=C:\DRVEXP.TXT

    REM Pre-Cleanup
    DEL %EXPANDED% /q
    DEL %DRIVERS% /q

    REM  Creates standard text file with directory\filename of compressed files
    for /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

    REM Overwrites original files
    for /f "tokens=1,2,3,4,5 delims= " %%A in ('type %EXPANDED%') do MOVE /Y %%A %%A_

    REM Cleanup
    DEL %EXPANDED% /q
    DEL %DRIVERS% /q

    EXIT



    Hope you find this useful!

    Sunday, June 21, 2009 11:32 PM
  • This is VERY useful and helped me today when attempting to add NVIDIA drivers to a Windows 7 x64 image.

    As was mentioned previously, the key here is to (1) EXTRACT your files from the executable and then (2) EXPAND your files using the EXPAND command from the command line.

    The piece that I was missing was WHAT does the EXPAND command do?  I found that it expanded all of the files out of the CAB files.  So, I went from having 43 files to like 119.  Once I did this, the DISM command-line too played happy and my image took in the updated NVIDIA drivers without a problem.

    Kudos to all the folks who put this together!  Makes perfect sense once you think about it.

    By the way, even though I added the drivers into my image, my image (once deployed) still loaded the WDDM drivers for the machine I'm using.  I wouldn't know how to approach this, but is there a way to "force" the image to use the driver I've added.  Of course, if I loaded the image on other hardware (i.e. H/W that doesn't have this kind of video card), then I most likely *would* want the WDDM driver.

    I hope that makes some kind of sense.....
    Friday, November 6, 2009 10:54 PM