Jump to content

razormoon

Member
  • Posts

    242
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by razormoon

  1. 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 off
    REM 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.TXT

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

    REM Creates log of commands
    SET LOG=C:\COOLLOG.TXT

    REM Pre-Cleanup
    DEL %EXPANDED% /q
    DEL %DRIVERS% /q
    DEL %LOG% /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 >> %LOG%

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

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

    EXIT

    As 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!!

  2. 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>

  3. @powera

    I 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:\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

    ======================================================================================

  4. I too am having this issue, though very rarely. I noticed it happens when I remote connect from the affected pc to my whs and remove/delete a bunch of downloads off uTorrent at once. Very annoying. I'm using Cisco Network Magic and it troubleshoots the issue faster than W7 so no biggie.

    ASUS STRIKER II EXTREME

    CISCO (LINKSYS) WRT610N ROUTER

  5. 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?

    :blink:

  6. 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!

  7. Right on MarkJ. Had the same issues and I am NOT running W7 drivers from nVidia or inbox W7 WDM 1.1 for that matter. Instead, I downloaded the latest for my 9800GX2 (182.50 for Vista) and that's when all hell broke loose. All sorts of nasties including the slowdown. I reverted to 182.08 (for Vista) and all is well. Something went horribly wrong with the newest wave of nVidia drivers. Stick with the one previous to your present one and work your way back. They do have a link at nVidia to archived drivers!

  8. @rkarthea

    Are you using in-box W7 drivers? What I would normally do in situations like this is unpack the latest drivers (yours being very old indeed) and manually add or update the driver via Device manager and point to the inf. When Vista was first released, I couldn't find a compatible cmedia driver to save my life. It would fail to install when running setup.exe. So I unpacked it and pointed to it and VIOLA!! Even taskbar icon and application popped up!

    see here: http://www.msfn.org/board/index.php?s=&amp...st&p=684795

    I've since rebuilt my box and it's working fantastic...give this a try.

  9. This is a topic that can easily be researched by doing a search on the forums. :whistle:

    Autounattend.xml via <Display> throughout the settings passes.

    Eg windowsPE, specialize, etc

    Enter <Display> code once per pass.

    For instance:

        
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Display>
    <ColorDepth>32</ColorDepth>
    <HorizontalResolution>1024</HorizontalResolution>
    <RefreshRate>60</RefreshRate>
    <VerticalResolution>768</VerticalResolution>
    </Display>
    </component>
    </settings>

  10. I have been having issues with slow network initialization. Network, internet, etc were taking 5 minutes after logging on to become usable. My soundMAX was culprit number 1. Number 2 was in the way I was installing my software. Apparently, Windows 7 doesn't like my specific softwares to be installed in one session. I reinstalled W7 and installed 3-5 programs (including drivers) at a time.

    Things are working great now...slow to build my system, faster in the long run.

  11. Upon playing with W7077 (unattend, add drivers, etc) I noticed a problem when logging on to the PC. The network tray icon would display the blue wait ring icon for about 4 minutes thereby preventing internet access, network access, etc until the "wait" cleared.

    I thought it probably was a bad command or something in autounattend.xml, bad security database and whathaveyou.

    I installed a clean copy of W7 with no network issues. I then slowly installed several device drivers until EUREKA! SoundMAX drivers cripples the network startup.

    FYI FOLKS

  12. 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....

  13. 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

×
×
  • Create New...