mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
DriverIntergration script now removes trailing \ from the the driver source path to keep DISM happy.
This commit is contained in:
@@ -35,8 +35,8 @@ Author=Homes32
|
|||||||
Level=6
|
Level=6
|
||||||
Selected=False
|
Selected=False
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
Version=1.1.2.0
|
Version=1.1.3.0
|
||||||
Date=2024-01-14
|
Date=2024-03-09
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
%DismLog%=%TargetWindows%\Logs\DISM\dism.log
|
%DismLog%=%TargetWindows%\Logs\DISM\dism.log
|
||||||
@@ -84,6 +84,9 @@ If,Not,ExistDir,%DismLogPath%,DirMake,%DismLogPath%
|
|||||||
If,%cb_ForceUnsignedDrivers%,Equal,True,Set,%DismForceUnsigned%," /ForceUnsigned"
|
If,%cb_ForceUnsignedDrivers%,Equal,True,Set,%DismForceUnsigned%," /ForceUnsigned"
|
||||||
Else,Set,%DismForceUnsigned%,""
|
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%"
|
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."
|
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.
|
// Dism doesn't always unload hives correctly. Force unload just to make sure.
|
||||||
|
Reference in New Issue
Block a user