Ctwizzy Posted April 14, 2005 Share Posted April 14, 2005 Ok I have looked and found 2 solutions to this.I am using WPI so here are the 2 solutions I found.One was by Astalavista. He said to put the following in the $OEM$ directory my tweaks.reg file and a cmdlines.txt file that has[COMMANDS]"REGEDIT /S tweaks.reg"He then says that this will just automatically pick it up. While I dont doubt asta as he is vert knowledgable, I wonder how this works???The other idea was to run the reg file directly in WPI as an app and make it be selectable.Which is the better way, and is there a better way yet or more proficient way? Link to comment Share on other sites More sharing options...
Dahi Posted April 14, 2005 Share Posted April 14, 2005 Use cmdlines.txt and tweaks.reg for registry settings that you want applied to all your unattended installs.Use WPI to allow you to select which optional tweaks you want applied. Link to comment Share on other sites More sharing options...
oioldman Posted April 14, 2005 Share Posted April 14, 2005 Could always take a look hereHttp://unattended.msfn.organd you'll notice it explains all very well on when and how regtweaks.reg is applied and what it does Link to comment Share on other sites More sharing options...
Mike_Wilson Posted April 14, 2005 Share Posted April 14, 2005 The way Astalavista says is a good way to do it.Im guessing from your post you dont seem to understand how it works.When placing the file in the $OEM$ folder this is the default place which wont be placed on your drive but the root of the unattended which the Winnt.sif picks up.SOWhen you put the following commands in your Winnt.sif[COMMANDS]"REGEDIT /S tweaks.reg"The Winnt.sif looks at your $OEM$ folder and will execute the file silently when setup is finished with the /S switch.Another way would be to put the tweaks file in $OEM$/$1 which will be copying the file to your drive ie. C:\ and then executing this with command below, but this requires a cleanup cmd or something to delete it afterwards.[COMMANDS]"REGEDIT /S %systemdrive%\tweaks.reg"Simple but effective. Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 14, 2005 Author Share Posted April 14, 2005 Thanks Mike, that helped. I was just confused as this is a cmdlines.txt and I didnt understand how it would use the textfile.So your saying to take that entry out of the cmdlines.txt and put it in my winnt right? Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Share Posted April 14, 2005 No, Mike has accidentally said winnt.sif instead of cmdlines.txt, just leave it as it is in cmdlines.txt.Rest assured that the file regardless of its .txt extension will work...It's Special Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 14, 2005 Author Share Posted April 14, 2005 Ah ok, so leaving them in $OEM$ is good. When does it apply them though? Before or after? As I also want to apply file associations and doing that before would be pointless. Maybe ill just install the app and then have a reg file follow with file associations (using WPI). Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Share Posted April 14, 2005 They will be applied at the T13 /T12 stage of the install i.e. 13-12 minutes left, and don't worry about the associations being applied before you add the app, the entries aren't checked against anything, so they will still apply.The only thing now is that you should probably only apply the reg settings which are not application specific using cmdlines.txt, just in case you choose not to install it at WPI. In these cases you would be better off adding them as additional items in your WPI install. Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 14, 2005 Author Share Posted April 14, 2005 OK thanks.What else can I put in cmdlines.txt? Link to comment Share on other sites More sharing options...
Mike_Wilson Posted April 14, 2005 Share Posted April 14, 2005 ah sry bout that, I was rushing to reply before I went out. Thanks to Yzöwl for correcting me Also for your current question try reading here,http://unattended.msfn.org/global/cmdlines.htm Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 16, 2005 Author Share Posted April 16, 2005 Tested this out, some of the tweaks were applied, a lot were not.Ive seen a lot of posts abut people complaining that not all tweaks are being applied. Should I change how I do this?? Link to comment Share on other sites More sharing options...
oioldman Posted April 16, 2005 Share Posted April 16, 2005 No, the method is fine.If your applying some to do with apps, then your better applying in the runonceex before and atfer an application install.If they are general ones applying to XP, then check they are correct. Two ways to do this are;use something like virtualpcor use regshot to do a before, make change, grab file of changes and see if it is different to what you were applying. Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 17, 2005 Author Share Posted April 17, 2005 On second look I dont think any of my tweaks were applied. The only one I could see was that there was no screensaver set at startup, when there usually is.this is what I have in $OEM$a cmdlines.txt file which reads[COMMANDS]"REGEDIT /S tweaks.reg"and tweaks.reg is in the same diram I doing something wrong? Link to comment Share on other sites More sharing options...
Yzöwl Posted April 17, 2005 Share Posted April 17, 2005 It may be a good idea at this stage to post your tweaks.reg so that we can verify its structure etc. Link to comment Share on other sites More sharing options...
Ctwizzy Posted April 17, 2005 Author Share Posted April 17, 2005 Here is the reg file.tweaks.reg 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