i have an approach and a problem along with it. it's about registy tweaks:
i think i should apply regtweaks at two different stages without differentiating whether it include HKEY_CURRENT_USER branches or not. the firts is at cmdlines.txt stage(in order to apply them for all users); and the second is at runonceex.cmd stage.
pls don't direct me to unattended.msfn.org. they dont explain this case clearly (2004 guide). when reading it i understand from what they say is, i have to make two regtweaks.reg. the first is as usual and the second is just including the HKEY_CURRENT_USER brances. the normal must be placed at C:\XPCD\$OEM$\$1\install\
and must be executed from runonceex.cmd. and the second which includes HKEY_CURRENT_USER must be placed at C:\XPCD\$OEM$\ folder and must be executed from cmdlines.txt (i have read approximately 300 pages of this forum and still reading but this case is still confusing and foggy)
and the second approach is (this is where i have a problemi think) that: i want to keep my regtweaks one by one with different names involving its relevant matter. so i made a folder called reg tweaks and put them together. and made a regtweaks.cmd file to apply them but its seems they are not being applied.
when setup goes, regtweak.cmd appears for a short while when isn't long enough to apply all tweaks one by one. i know this because in the normal windows environment when click on regtweak.cmd it works and applies. and it takes a little time.
here are my relevant folder structure and files;
$OEM$
cmdlines.txt
|
reg tweaks(folder)
| regtweaks.cmd
| Context Menus.reg
| power settings.reg
| and the other *.reg files
|
cmds(folder)
runonceex.cmd
and other cmd files
and the files are;
::===regtweaks.cmd======
@echo on
title regtweaks
color 0b
for %%a in (*.reg) do call :addreg "%%~a"
goto :eof
:addreg
regedit /s %1
goto :eof
::==================
::====cmdlines.txt=======
[COMMANDS]
"useraccounts.cmd"
".\reg tweaks\regtweaks.cmd"
".\cmds\RunOnceEx.cmd"
::==================
::===relevant part of my runonceex.cmd========
REG ADD %KEY%\090 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\090 /V 1 /D "REGEDIT /S %CDROM%\reg tweaks\regtweaks.cmd" /f
REG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\095 /V 1 /D "%cdrom%\$OEM$\cmds\cleanup.cmd" /f
EXIT
::==================================



Help

Back to top









