more " " added
fixes tweakdirs with spaces
This commit is contained in:
parent
32265659ff
commit
3f1e53564c
@ -5,7 +5,7 @@ set tweakdir=%workdir%tweaks
|
|||||||
cd /d %workdir%
|
cd /d %workdir%
|
||||||
|
|
||||||
:: expanding path with prerequisites
|
:: expanding path with prerequisites
|
||||||
for /d %%i in (bin\*) do set path=%cd%\%%i;!path!
|
for /d %%i in ("bin\*") do set path=%cd%\%%i;!path!
|
||||||
|
|
||||||
:: clearing temporary data
|
:: clearing temporary data
|
||||||
if exist "tmp" (
|
if exist "tmp" (
|
||||||
@ -64,7 +64,7 @@ if "%2" == "console" (
|
|||||||
echo.
|
echo.
|
||||||
echo.
|
echo.
|
||||||
echo -- applying files to windows image --
|
echo -- applying files to windows image --
|
||||||
for /d %%t in (%tweakdir%\*) do (
|
for /d %%t in ("%tweakdir%\*") do (
|
||||||
call "applyTweakWim.bat" "%%t"
|
call "applyTweakWim.bat" "%%t"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ for %%r in (tmp\wim\windows\system32\config\*) do (
|
|||||||
reg load HKLM\OPUS-NT_TMP "%%r"
|
reg load HKLM\OPUS-NT_TMP "%%r"
|
||||||
echo.
|
echo.
|
||||||
echo running tweaks for %%~nr...
|
echo running tweaks for %%~nr...
|
||||||
for /d %%t in (%tweakdir%\*) do (
|
for /d %%t in ("%tweakdir%\*") do (
|
||||||
call "applyTweakReg.bat" "%%t" "%%r"
|
call "applyTweakReg.bat" "%%t" "%%r"
|
||||||
)
|
)
|
||||||
echo unmounting: %%r
|
echo unmounting: %%r
|
||||||
@ -89,7 +89,7 @@ echo.
|
|||||||
echo mounting: tmp\wim\Users\Default\NTUSER.DAT
|
echo mounting: tmp\wim\Users\Default\NTUSER.DAT
|
||||||
reg load HKLM\OPUS-NT_TMP "tmp\wim\Users\Default\NTUSER.DAT"
|
reg load HKLM\OPUS-NT_TMP "tmp\wim\Users\Default\NTUSER.DAT"
|
||||||
echo running tweaks for NTUSER...
|
echo running tweaks for NTUSER...
|
||||||
for /d %%t in (%tweakdir%\*) do (
|
for /d %%t in ("%tweakdir%\*") do (
|
||||||
call "applyTweakReg.bat" "%%t" "NTUSER"
|
call "applyTweakReg.bat" "%%t" "NTUSER"
|
||||||
)
|
)
|
||||||
echo unmounting: tmp\wim\Users\Default\NTUSER.DAT
|
echo unmounting: tmp\wim\Users\Default\NTUSER.DAT
|
||||||
@ -98,7 +98,7 @@ reg unload HKLM\OPUS-NT_TMP
|
|||||||
echo.
|
echo.
|
||||||
echo.
|
echo.
|
||||||
echo -- applying scripts --
|
echo -- applying scripts --
|
||||||
for /d %%t in (%tweakdir%\*) do (
|
for /d %%t in ("%tweakdir%\*") do (
|
||||||
call "applyTweakScript.bat" "%%t"
|
call "applyTweakScript.bat" "%%t"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ dism /unmount-image /mountdir:"tmp\wim" /commit
|
|||||||
echo.
|
echo.
|
||||||
echo.
|
echo.
|
||||||
echo -- applying files to disc-image --
|
echo -- applying files to disc-image --
|
||||||
for /d %%t in (%tweakdir%\*) do (
|
for /d %%t in ("%tweakdir%\*") do (
|
||||||
call "applyTweakIso.bat" "%%t"
|
call "applyTweakIso.bat" "%%t"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user