mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
update the account check
This commit is contained in:
parent
afe4adbc74
commit
bdd8a8f351
@ -22,7 +22,7 @@ call LinkToDesktop "#{@shell32.dll,22022}.lnk" cmd.exe
|
||||
|
||||
set _SU_ICON=319
|
||||
if %VER[3]% GEQ 20251 set _SU_ICON=320
|
||||
if exist "%X_SYS%\seclogon.dll" (
|
||||
if exist "%X_SYS%\tsdiscon.exe" (
|
||||
call LinkToDesktop -paramlist "#{@shutdownux.dll,3052}.lnk" "'SwitchUser.bat', '', 'imageres.dll', %_SU_ICON%"
|
||||
)
|
||||
set _SU_ICON=
|
||||
|
@ -3,7 +3,7 @@ if "x%opt[shell.startmenu]%"=="xStartAllBack" (
|
||||
)
|
||||
|
||||
rem incompatible with StartIsBack(SYSTEM account)
|
||||
if not exist "%X_SYS%\seclogon.dll" (
|
||||
if not exist "%X_SYS%\tsdiscon.exe" (
|
||||
del /q "%X_SYS%\windows.immersiveshell.serviceprovider.dll"
|
||||
)
|
||||
|
||||
|
@ -13,7 +13,7 @@ ImplatSetup.dll,netprofm.dll,netprofmsvc.dll,npmproxy.dll,pnidui.dll
|
||||
|
||||
rem // NetworkSetup2 and NetworkUxManager
|
||||
|
||||
if exist "%X_SYS%\seclogon.dll" (
|
||||
if exist "%X_SYS%\tsdiscon.exe" (
|
||||
call RegCopy HKLM\System\ControlSet001\Control\NetworkSetup2
|
||||
) else (
|
||||
call RegCopy HKLM\System\ControlSet001\Control\NetworkSetup2\Filters
|
||||
|
@ -13,7 +13,7 @@
|
||||
-- LINK('%Desktop%\\Internet Explorer.lnk', '%ProgramFiles%\\Internet Explorer\\iexplore.exe')
|
||||
|
||||
|
||||
-- if File.exists('X:\\Windows\\System32\\seclogon.dll') then
|
||||
-- if File.exists('X:\\Windows\\System32\\tsdiscon.exe') then
|
||||
-- LINK('%Desktop%\\#{@shutdownux.dll,3052}.lnk', 'X:\\Windows\\System32\\SwitchUser.bat', '', 'imageres.dll', 319)
|
||||
-- end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user