From ae66b9f5da9b6fe3d2c4486e6d9a49a345107b2e Mon Sep 17 00:00:00 2001 From: Homes32 Date: Sat, 9 Mar 2024 10:22:02 -0600 Subject: [PATCH] DriverIntergration script now removes trailing \ from the the driver source path to keep DISM happy. --- Projects/PhoenixPE/Drivers/DriverIntegration.script | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Projects/PhoenixPE/Drivers/DriverIntegration.script b/Projects/PhoenixPE/Drivers/DriverIntegration.script index d6d4c76..8d4dde8 100644 --- a/Projects/PhoenixPE/Drivers/DriverIntegration.script +++ b/Projects/PhoenixPE/Drivers/DriverIntegration.script @@ -35,8 +35,8 @@ Author=Homes32 Level=6 Selected=False Mandatory=False -Version=1.1.2.0 -Date=2024-01-14 +Version=1.1.3.0 +Date=2024-03-09 [Variables] %DismLog%=%TargetWindows%\Logs\DISM\dism.log @@ -84,6 +84,9 @@ If,Not,ExistDir,%DismLogPath%,DirMake,%DismLogPath% If,%cb_ForceUnsignedDrivers%,Equal,True,Set,%DismForceUnsigned%," /ForceUnsigned" Else,Set,%DismForceUnsigned%,"" +// DISM doesn't like trailing \ in path +StrFormat,CTrim,%DriversSrc%,"\",%DriversSrc% + DISM,"/image:#$q%TargetDir%#$q /Add-Driver /Driver:#$q%DriversSrc%#$q /recurse /LogPath:#$q%DismLog%#$q%DismForceUnsigned%" If,Not,#r,Equal,0,Halt,"Error: Dism.exe terminated with error code: [#r]. Check the log for details." // Dism doesn't always unload hives correctly. Force unload just to make sure.