maurice-daly / DriverAutomationTool

Home of the Driver Automation Tool
https://www.msendpointmgr.com
BSD 2-Clause "Simplified" License
396 stars 120 forks source link

Dell BIOS packages not being created due to Flash64 extract fails to overwrite existing files #204

Open NeighborGeek opened 3 years ago

NeighborGeek commented 3 years ago

Using v6.5.2, I'm seeing an issue with Dell BIOS packages not being created. Looking at the logs, it appears to be due to an error when extracting the flash64 utility. When DAT tries to extract the flash utility, if the target file already exists, the extract fails, and DAT appears to skip any further processing for that model and move on to the next model.

As a test, I deleted the ..\DriverAutomationTool\Temp\Ver3.3.8\ directory and ran the DAT download/extract/import again. This time the flash64 utility was able to extract successfully and DAT continued processing the BIOS and created the package for that model. However, when it got to the next model, it ran into the original problem. Since the ver3.3.8 directory and it's contents were created during the processing of that first model's bios, when DAT tries to extract the flash64 utility again it fails because the file already exists.

Here is a section of the logs from that run, in which the bios for the Optiplex 5080 was processed successfully, but processing the next items - the bios for Latitude 7410 and 7420- failed.

======== Dell Latitude 5420 BIOS PROCESSING FINISHED ======== DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Remaining models to process: 4 DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) ======== Processing Dell Optiplex 5080 Downloads ======== DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Starting Download, extract and import processes for Dell model: Optiplex 5080 DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Setting Dell variables DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Using SKU : 09A7 DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Dell System Model ID is : 09A7;09A6 DriverAutomationTool 3/10/2021 9:38:59 AM 26392 (0x6718) Info: Using Configuration Manager console BIOS package folder - CHC:\Package\BIOS Packages\Dell DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: Using Configuration Manager console Driver package folder - CHC:\Package\Driver Packages\Dell DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) ======== Dell Optiplex 5080 BIOS PROCESSING STARTED ======== DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: Attempting to match based on multiple model package DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: Found BIOS URL FOLDER06875730M/1/OptiPlex_5080_1.3.2.exe DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: Latest available BIOS version is 1.3.2 DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: Checking ConfigMgr for existing BIOS release - 1.3.2 DriverAutomationTool 3/10/2021 9:39:06 AM 26392 (0x6718) Info: New BIOS download available DriverAutomationTool 3/10/2021 9:39:07 AM 26392 (0x6718) Info: BIOS Download URL Found: https://downloads.dell.com/FOLDER06875730M/1/OptiPlex_5080_1.3.2.exe DriverAutomationTool 3/10/2021 9:39:07 AM 26392 (0x6718) Info: Downloading OptiPlex_5080_1.3.2.exe BIOS update file DriverAutomationTool 3/10/2021 9:39:07 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:10 AM 26392 (0x6718) Info: Downloading Dell flash update utility DriverAutomationTool 3/10/2021 9:39:10 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:13 AM 26392 (0x6718) Info: Unzipping latest Dell Flash64 EXE in E:\DriverAutomationTool\Temp\Ver3.3.8-Win64_ZPE.exe DriverAutomationTool 3/10/2021 9:39:13 AM 26392 (0x6718) Info: New Dell Flash 64 EXE version is DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) Info: Latest Dell Flash 64 EXE is 3.3.8 DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) Info: Creating new/updated Dell Flash 64 source DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) Info: Archiving legacy file DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) Info: Promoting release to production DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) Info: Copying Dell Flash64Bit EXE To \CHC-CM\SOURCES$\OSD\DRIVERPACKAGES\DRIVERAUTOMATIONPKGS\Dell\Optiplex 5080\BIOS\1-3-2\ DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) ConfigMgr: Creating BIOS Package DriverAutomationTool 3/10/2021 9:39:15 AM 26392 (0x6718) ConfigMgr: Enabling Binary Delta Replication DriverAutomationTool 3/10/2021 9:39:16 AM 26392 (0x6718) ConfigMgr: Distributing Package CHC0036A to Distribution Point Group - Primary DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) ======== Dell Optiplex 5080 BIOS PROCESSING FINISHED ======== DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Remaining models to process: 3 DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) ======== Processing Dell Latitude 7420 Downloads ======== DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Starting Download, extract and import processes for Dell model: Latitude 7420 DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Setting Dell variables DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Using SKU : 0A37 DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Dell System Model ID is : 0A37;0A36 DriverAutomationTool 3/10/2021 9:39:21 AM 26392 (0x6718) Info: Using Configuration Manager console BIOS package folder - CHC:\Package\BIOS Packages\Dell DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: Using Configuration Manager console Driver package folder - CHC:\Package\Driver Packages\Dell DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) ======== Dell Latitude 7420 BIOS PROCESSING STARTED ======== DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: Attempting to match based on multiple model package DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: Found BIOS URL FOLDER06970577M/1/Latitude_7X20_1.3.5.exe DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: Latest available BIOS version is 1.3.5 DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: Checking ConfigMgr for existing BIOS release - 1.3.5 DriverAutomationTool 3/10/2021 9:39:27 AM 26392 (0x6718) Info: New BIOS download available DriverAutomationTool 3/10/2021 9:39:28 AM 26392 (0x6718) Info: BIOS Download URL Found: https://downloads.dell.com/FOLDER06970577M/1/Latitude_7X20_1.3.5.exe DriverAutomationTool 3/10/2021 9:39:28 AM 26392 (0x6718) Info: Downloading Latitude_7X20_1.3.5.exe BIOS update file DriverAutomationTool 3/10/2021 9:39:28 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:30 AM 26392 (0x6718) Info: Downloading Dell flash update utility DriverAutomationTool 3/10/2021 9:39:30 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Unzipping latest Dell Flash64 EXE in E:\DriverAutomationTool\Temp\Ver3.3.8-Win64_ZPE.exe DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Error: Exception calling "ExtractToDirectory" with "2" argument(s): "The file 'E:\DriverAutomationTool\Temp\Ver3.3.8\ReleaseNotes_FlashUpdate.txt' already exists." DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) ======== Errors(s) Occurred ======== DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Error: BIOS flash update utility failed to extract DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) ======== Dell Latitude 7420 BIOS PROCESSING FINISHED ======== DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Remaining models to process: 2 DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) ======== Processing Dell Latitude 7410 Downloads ======== DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Starting Download, extract and import processes for Dell model: Latitude 7410 DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Setting Dell variables DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Using SKU : 09BE DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Dell System Model ID is : 09BE;09CD DriverAutomationTool 3/10/2021 9:39:31 AM 26392 (0x6718) Info: Using Configuration Manager console BIOS package folder - CHC:\Package\BIOS Packages\Dell DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Using Configuration Manager console Driver package folder - CHC:\Package\Driver Packages\Dell DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) ======== Dell Latitude 7410 BIOS PROCESSING STARTED ======== DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Attempting to match based on multiple model package DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Found BIOS URL FOLDER07049722M/1/Latitude_7X10_1.5.2.exe DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Latest available BIOS version is 1.5.2 DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Checking ConfigMgr for existing BIOS release - 1.5.2 DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Comparing BIOS versions DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: New BIOS download available DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: BIOS Download URL Found: https://downloads.dell.com/FOLDER07049722M/1/Latitude_7X10_1.5.2.exe DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) Info: Downloading Latitude_7X10_1.5.2.exe BIOS update file DriverAutomationTool 3/10/2021 9:39:37 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) Info: Downloading Dell flash update utility DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) BitsTransfer: Checking BITS background job DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) Info: Unzipping latest Dell Flash64 EXE in E:\DriverAutomationTool\Temp\Ver3.3.8-Win64_ZPE.exe DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) Error: Exception calling "ExtractToDirectory" with "2" argument(s): "The file 'E:\DriverAutomationTool\Temp\Ver3.3.8\Flash64W.exe' already exists." DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) ======== Errors(s) Occurred ======== DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) Error: BIOS flash update utility failed to extract DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718) ======== Dell Latitude 7410 BIOS PROCESSING FINISHED ======== DriverAutomationTool 3/10/2021 9:39:41 AM 26392 (0x6718)

ps959 commented 3 years ago

I'm also having this same issue.

MrRobot5000 commented 3 years ago

I encountered this with Dell Optiplex 7080.

dsolodow commented 3 years ago

Have you seen it with 6.5.3 as well?

MrRobot5000 commented 3 years ago

Have you seen it with 6.5.3 as well?

That's what I was using.

alexisRYD commented 3 years ago

Hello,

Same issue for me with dell flash 3.3.8, the issue must be due to extract command I presumed