MSFN Forum: Apply regtweaks.reg 2 times? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Apply regtweaks.reg 2 times? from where to apply my tweaks a 2nd time Rate Topic: -----

#1 User is offline   Fascix 

  • The Swedish Steel
  • Pip
  • Group: Members
  • Posts: 94
  • Joined: 10-May 05

Posted 13 June 2005 - 02:11 PM

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


#2 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 13 June 2005 - 04:03 PM

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)

#3 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 14 June 2005 - 12:01 AM

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.

#4 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 June 2005 - 12:17 AM

Thats great advice :thumbup.

#5 User is offline   Fascix 

  • The Swedish Steel
  • Pip
  • Group: Members
  • Posts: 94
  • Joined: 10-May 05

Posted 14 June 2005 - 12:29 AM

Oki doki
But 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" /f
REG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\REGEDIT32.EXE /S tweaks.reg" /f


or? (if i use the same copy of tweaks.reg as in the cmdlines.txt)

REG ADD %KEY%\100 /VE /D "Registry Changes and Tweaks" /f
REG ADD %KEY%\100 /V 1 /D "REGEDIT32.EXE /S tweaks.reg" /f


or have i got it all wrong?

OHHH Important!!!!! WHERE in the RunOnceEx should i run it??? last? befor or after cleanup.cmd or?

Thanx

#6 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 14 June 2005 - 12:51 AM

REG ADD %KEY%\100 /VE /D "Registry Changes and Tweaks" /f
REG ADD %KEY%\100 /V 1 /D "REGEDIT /S %systemdrive%\install\tweaks.reg" /f


I 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 :D )

This post has been edited by erik_demon: 14 June 2005 - 12:55 AM


#7 User is offline   Fascix 

  • The Swedish Steel
  • Pip
  • Group: Members
  • Posts: 94
  • Joined: 10-May 05

Posted 14 June 2005 - 12:57 AM

Hey thanx pal :thumbup
Ill get right on it

#8 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 14 June 2005 - 06:57 AM

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 OFF
CMDOW @ /HID
TITLE Installing Reg Tweaks

SETLOCAL & 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 %%~fnxI
POPD & ENDLOCAL
GOTO :EOF


It 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.

#9 User is offline   Fascix 

  • The Swedish Steel
  • Pip
  • Group: Members
  • Posts: 94
  • Joined: 10-May 05

Posted 14 June 2005 - 07:05 AM

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?

#10 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 14 June 2005 - 07:45 AM

Fascix, on Jun 14 2005, 08:05 AM, said:

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.

#11 User is offline   spiritpyre 

  • Grand Poobah
  • PipPip
  • Group: Members
  • Posts: 191
  • Joined: 28-April 05

Posted 14 June 2005 - 10:39 PM

that sounds very interesting.. I think I might try and include that next time I decide to make another unattended cd... :P

had to search a little bit but would this be it? :whistle:

This post has been edited by spiritpyre: 15 June 2005 - 11:03 PM


#12 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 15 June 2005 - 12:50 AM

spiritpyre, on Jun 14 2005, 11:39 PM, said:

that sounds very interesting.. I think I might try and include that next time I decide to make another unattended cd... :P

had to search a little bit but would this be it?  :whistle:
<{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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy