degreseven Posted April 20, 2005 Share Posted April 20, 2005 Hi, I am making an all in one disk, so several installation options are using the same source- 1 for regular installation, 1 for unattended, 1 for unattended with OEMPreinstall, etc. all using same install source. I would like to apply registry tweaks, as well as run a few other commands like renaming admin account, for all 3 install options, but since I only want the $OEM$ dir to be copied for the third install option, I can't use it RunOnceEx from it for the other options. Does this make sense? sorry if it's unclear. How can I run the reg tweaks from the CD, or what are other options? I know I could just use the [GUIRunOnce] section in winnt.sif, and say "REGEDIT /S D:\regtweaks.reg", but I often use alternate partitioning schemes, and D: is not always the CDrom. Thanks in advance. Link to comment Share on other sites More sharing options...
Mike_Wilson Posted April 20, 2005 Share Posted April 20, 2005 I posted crap sry Link to comment Share on other sites More sharing options...
degreseven Posted April 20, 2005 Author Share Posted April 20, 2005 Yeah you didn't understand... I can't use %systemdrive% because I can't use the $OEM$ directory. The $OEM$ dir is full of crap to copy over if i select the option to do the OEMPreinstall. Since I'm using the same install source for the installations that i DO NOT want to copy files over...I can't use that $OEM$ folder or it will copy everythin over.LOL is that any clearer? sorry Link to comment Share on other sites More sharing options...
Mike_Wilson Posted April 20, 2005 Share Posted April 20, 2005 I originally misunderstood your question. I know with some programs you can use a %CDROM% variable but im not sure if this can be used all the time or if its program specific. You could try it Link to comment Share on other sites More sharing options...
erik_demon Posted April 20, 2005 Share Posted April 20, 2005 (edited) Regtweak.cmd:SET tagfile=\WIN51FOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:REGEDIT /S %CDDRIVE%\some_folder\regtweaks.regEXITThe file WIN51 must be on the root of your CDBe advised that if you want to use %CDDRIVE% every new .CMD file needs to have this line, even if the .CMD is called from .CMD that already uses this line.SET tagfile=\WIN51FOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:Edit:Seems Mike_Wilson was just a bit faster EDIT 2:A little modification to my post Edited April 20, 2005 by erik_demon Link to comment Share on other sites More sharing options...
Mike_Wilson Posted April 20, 2005 Share Posted April 20, 2005 I was abit faster on the variable name but you explained how to implement it, never tried it myself since I just use $OEM$ All these people with these advanced unattended multi installs Link to comment Share on other sites More sharing options...
erik_demon Posted April 20, 2005 Share Posted April 20, 2005 I use it all the time with Bashrat's driver pack's (method 2) and it works like a charm Link to comment Share on other sites More sharing options...
degreseven Posted April 20, 2005 Author Share Posted April 20, 2005 That makes sense, but I don't understand how you would run the regtweak.cmd file. Since it's on the CD & not the hdd... wouldn't you also need that "set cdrom" line in order to access it in the first place? Could you tell me specifically where to put the files, and what I should use to run them? Right now I am trying to run regtweak.cmd from winnt.sif with[GuiRunOnce] \Tools\regtweak.cmdDoes "\" reference the cd root, or the hdd root when run from winnt.sif?thanks Link to comment Share on other sites More sharing options...
erik_demon Posted April 21, 2005 Share Posted April 21, 2005 (edited) Oops you are right, I missed that maybe you could use SET tagfile=\WIN51FOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:and %CDDRIVE% in winnt.sif aswell (I am not sure about this)I know that both lines do work with the RunOnceEx.cmdExplained by MSFN Edited April 21, 2005 by erik_demon Link to comment Share on other sites More sharing options...
degreseven Posted April 21, 2005 Author Share Posted April 21, 2005 yeah i tried just sticking SET tagfile=\WIN51FOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:in winnt.sif, it didnt work- gave me all kinds of errors about "windows could not find the file 'FOR'" & crap like that. Link to comment Share on other sites More sharing options...
degreseven Posted April 21, 2005 Author Share Posted April 21, 2005 if all else fails, i suppose I could just make a duplicate directory of the installation source, only without all the files to be transfered, for use with this one installation- since most of it is identical to the first dir anyways, most of the extra room it takes up should get optimized away by cdimage, right? Link to comment Share on other sites More sharing options...
^_^ Posted April 21, 2005 Share Posted April 21, 2005 I'm still a fan of the floppy driven installationthat way my winnt.sif files and all the other installation can be kept on floppyez to edit, plus XP setup automatically looks for the winnt.sif file on the floppyonly thing is, you need to run the autologin scripting from commandlines.txtso just modify that to point to the a:\ drivenow you can use 1 CD/DVD, and customize the installation via text changes on the floppyincluding serial number, batch files, reg tweeks, username, computer name, etc.I think you get the pointOk, I'll stop bragging about my 1337ness Link to comment Share on other sites More sharing options...
degreseven Posted April 21, 2005 Author Share Posted April 21, 2005 I have been leaving floppy drives out of my machines for a couple years now =/This is the first time anyone has ever even suggested that I would need one =PEDIT: Although that is pretty 1337ness Link to comment Share on other sites More sharing options...
^_^ Posted April 21, 2005 Share Posted April 21, 2005 I have been leaving floppy drives out of my machines for a couple years now =/This is the first time anyone has ever even suggested that I would need one =PEDIT: Although that is pretty 1337ness<{POST_SNAPBACK}>all it takes is an old floppy lying around to make installation easier heck, even Dell still puts the connectors in 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