Fascix Posted June 13, 2005 Share Posted June 13, 2005 Hello Okey i have read through out the forum that some of you apply your regtweaks 2 times, from different locations! becourse some tweaks dont "stick"Well i was woundering what this is all about since my tweaks dont seems to apply as i would like!I run my cmdlines.txt like this:[COMMANDS]"REGEDIT32.EXE /S tweaks.reg""RunOnceEx.cmd"and i dont know how many of them acctually get stuck!so where, when and how would i apply them a second time for the best result.Thanx ppl Link to comment Share on other sites More sharing options...
erik_demon Posted June 13, 2005 Share Posted June 13, 2005 It is correct that not all tweaks work when excecuted during cmdlines.txt (some current user tweaks I believe)If you want to apply your tweaks a second time, you can do it during GuiRunOnce or RUnOnceEx (be adviced that most reg changes only work after a reboot) Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 14, 2005 Share Posted June 14, 2005 I apply mine at t-12, and then the end of my runonceex.This is usually because some tweaks don't take at t-12, and some programs overwrite them. Since I don't create my users till then also, I do a reboot, and everything works pretty well. Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted June 14, 2005 Share Posted June 14, 2005 Thats great advice . Link to comment Share on other sites More sharing options...
Fascix Posted June 14, 2005 Author Share Posted June 14, 2005 Oki dokiBut how would such a line in RunOnceEx look like?maby? (if i have a copy of tweaks.reg in my &OEM%\%1\Install dir)REG ADD %KEY%\100 /VE /D "Registry Changes and Tweaks" /fREG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\REGEDIT32.EXE /S tweaks.reg" /for? (if i use the same copy of tweaks.reg as in the cmdlines.txt)REG ADD %KEY%\100 /VE /D "Registry Changes and Tweaks" /fREG ADD %KEY%\100 /V 1 /D "REGEDIT32.EXE /S tweaks.reg" /for have i got it all wrong?OHHH Important!!!!! WHERE in the RunOnceEx should i run it??? last? befor or after cleanup.cmd or?Thanx Link to comment Share on other sites More sharing options...
erik_demon Posted June 14, 2005 Share Posted June 14, 2005 (edited) REG ADD %KEY%\100 /VE /D "Registry Changes and Tweaks" /fREG ADD %KEY%\100 /V 1 /D "REGEDIT /S %systemdrive%\install\tweaks.reg" /fI do it like this (no REGEDIT32.EXE but just REGEDIT)I would recommend to this at the end of the RunOncEx, but before your clean-up. If you do it afterwards, tweaks.reg doesn't exist anymore EDIT:by the way, I also use "REGEDIT /S tweaks.reg" in my cmdlines.txt. (I don't know if it matters, I only know that it works ) Edited June 14, 2005 by erik_demon Link to comment Share on other sites More sharing options...
Fascix Posted June 14, 2005 Author Share Posted June 14, 2005 Hey thanx pal Ill get right on it Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 14, 2005 Share Posted June 14, 2005 For me, it is the last thing to do before reboot.I can't show you what my runonceex looks like, because it makes it on the fly, but this is the command I call."%INSTALLDIR%\regtweaks\install.cmd"That file looks like.@ECHO OFFCMDOW @ /HIDTITLE Installing Reg TweaksSETLOCAL & PUSHD %~dp0 FOR /D %%d IN (*) DO CMD.EXE /C %%d\install.cmd FOR %%I IN (*.REG) DO REGEDIT /s "%%I" FOR %%I IN (*.INF) DO RUNDLL32.EXE setupapi,InstallHinfSection DefaultInstall 128 %%~fnxIPOPD & ENDLOCALGOTO :EOFIt recursively goes through my regtweaks directory looking for any reg and inf files, and installs them. This allows me to easily split up the files for different programs, HKLM, HKCU, file associations, etc. Link to comment Share on other sites More sharing options...
Fascix Posted June 14, 2005 Author Share Posted June 14, 2005 Ohh yes that seems to be a smart way to do it.Ill look in to it.Offtopic: what do you mean make your runonceex "on the fly"how do you do that? care to explain? Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 14, 2005 Share Posted June 14, 2005 Offtopic: what do you mean make your runonceex "on the fly"how do you do that? care to explain?<{POST_SNAPBACK}>I have a batch file which parses the %INSTALLDIR%. It will look through each folder, and look for a file which has all the commands to install the program.I say "on the fly" because I don't add the runonceex entries till I am ready to install. This allows me to keep my program installation fairly modular. Rather than remove files, and then having to edit the runonce file, I can just move a folder out of my %INSTALLDIR%. The file that I keep the commands in, is fairly easy to read, much like a command file. Also updating is simplier now, as I just copy the updated program folder over, and run the batch file.I posted an old version of the file a while ago. I'll have to dig up the thread. Link to comment Share on other sites More sharing options...
spiritpyre Posted June 15, 2005 Share Posted June 15, 2005 (edited) that sounds very interesting.. I think I might try and include that next time I decide to make another unattended cd... had to search a little bit but would this be it? Edited June 16, 2005 by spiritpyre Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 15, 2005 Share Posted June 15, 2005 that sounds very interesting.. I think I might try and include that next time I decide to make another unattended cd... had to search a little bit but would this be it? <{POST_SNAPBACK}>Yeah thats it, I'm glad some people know how to search. Thats the old version though. I put that in my cmd file to build my cd. The new one is like it, but just adds the registry keys, no extra file. I'll post it eventually. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now