DISM API command for compatibility building from Win7 host

This commit is contained in:
Homes32
2022-01-12 18:07:46 -06:00
parent 241c9f19c9
commit bac7fea21d
10 changed files with 143 additions and 103 deletions

View File

@@ -165,8 +165,8 @@ If,Not,%TimeZone%,Equal,Default,Set,%DismArg%,"%DismArg% /Set-TimeZone:#$q%TimeZ
// Set Keyboard, Format and Timezone with DISM
If,Not,%DismArg%,Equal,"",Begin
Echo,"Configuring International Settings...#$x#$xThis can take awhile, please be patient."
ShellExecute,Hide,"dism.exe","/image:#$q%TargetDir%#$q %DismArg% /LogPath:#$q%DismLog%#$q"
If,Not,%ExitCode%,Equal,0,Halt,"Error: Dism.exe terminated with error code: [%ExitCode%]. Check the log for details."
DISM,"/image:#$q%TargetDir%#$q %DismArg% /LogPath:#$q%DismLog%#$q"
If,Not,#r,Equal,0,Halt,"Error: Dism.exe terminated with error code: [#r]. Check the log for details."
End
// Create an empty User Profile registry key for the International Control Panel