evilvoice Posted March 1, 2004 Share Posted March 1, 2004 one problem with yours - the i386 folder must be in root - as for multiboot dvds, this is almost not possible...hence why I changed it to mine. Link to comment Share on other sites More sharing options...
Ka®eka´s Posted March 1, 2004 Share Posted March 1, 2004 Thank you for answer for the time being I don't intend to do multiboot, then my script will be me very useful, because I install plenty, and it saves me a lot of work. I was having problems with the standard user's creation, but with the help of the forum I already solved.thankssend me email Link to comment Share on other sites More sharing options...
DPR Posted March 1, 2004 Share Posted March 1, 2004 this isnt bad - but for a more universal script to move your i386 folder and install recovery console...I use this...[...]Your solution to get the CD-ROM drive letter almost looks like mine, despite I don't have to use the "temp.txt" thing ...http://www.MSFN.org/board/index.php?showtopic=10013&st=10 Link to comment Share on other sites More sharing options...
evilvoice Posted March 1, 2004 Share Posted March 1, 2004 you are very right...I am sorry, I did not know it was already posted - I did do this myself, but yours is good, especially if it works. I use for commands cuz its what I know best. I tried to get it to not use the temp.txt but couldnt get for to do a translation on the commandline...tho ill have another look at it. update to this if you wanna use the scriptfor /f "tokens=3 skip=2" %%i in ('reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath"') do set CDROM=%%i Link to comment Share on other sites More sharing options...
DPR Posted March 1, 2004 Share Posted March 1, 2004 for /f "tokens=3 skip=2" %%i in ('reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath"') do set CDROM=%%iGood point - you can also use "skip=2" to skip the first two lines instead of using "findstr". Whereas you're a little more flexible if you use "findstr" (because "findstr" automatically searchs for the "REG_" line) ... However, "findstr" supports regular expressions but doesn't support sub-groups and thus it's almost useless in our case ... so your solution is fine. Link to comment Share on other sites More sharing options...
skeeter1jd Posted April 18, 2004 Share Posted April 18, 2004 kk, I must be dense.I have the i386 | ---$oem$ | -----$$ | |-----system32 |-----source.bat |-----source.regIf I move the $oem$ folder to the same level as i386, it says invalid file structure, and if I move it under the i386 folder, at least install will run, just can't fInd the source.bat file.suspect my problem is me not fully understanding the question...let alone the answer......Any how, this is what I have...winnt.sif;SetupMgrTag[Data]Autopartition=0MsDosInititated="0"UnattendedInstall="Yes"[Unattended]UnattendMode=FullUnattendedOemSkipEulA=YesOemPreinstall=YesTargetPath=\WINDOWSRepartition=YesUnattendSwitch="No"WaitForReboot="No"DriverSigningPolicy=IgnoreAutoActivate=No[GuiUnattended]AdminPassword=*EncryptedAdminPassword=NoOEMSkipRegional=1TimeZone=35OemSkipWelcome=1ProfilesDir="%systemdrive%\Documents and Settings\"[Display]BitsPerPel=32XResolution=1024YResolution=768Vrefresh=70[UserData]ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxxFullName="xxxxx xxxxxxxxxxx"OrgName="xxxxxxxxxxxxxxxxx"ComputerName=*[TapiLocation]Dialing=ToneAreaCode=813[RegionalSettings]LanguageGroup=1Language=00000809[Identification]JoinWorkgroup=WORKGROUP[Networking]InstallDefaultComponents=Yes[Componants]msmsgs=offmsnexplr=offOEAccess=offmedia_clips=offAccessopt=offfax=offClipbook=offhypertrm=offrec=offpinball=offfreecell=offminesweeper=offsolitaire=offspider=offhearts=offzonegames=off[Shell]DefaultStartPanelOff=YesDefaultThemesOff=Yes[GuiRunOnce]Command0="%windir%\source.bat"source.batreg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" > %systemroot%\temp.txtfor /f "tokens=3 skip=2" %%i in (%systemroot%\temp.txt) do set CDROM=%%iECHO Please wait, Recovery Console is being installed locally.%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemroot%\Source\i386ECHO Please wait, source files are being copied. This may take several minutes.xcopy /Y /e %CDROM%\i386\*.* %systemroot%\Source\i386\ECHO Adding registry entries.regedit.exe /s %systemroot%\Source.regECHO Done.erase %systemroot%\source.regerase %systemroot%\temp.txtsource.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]"SourcePath"="%systemroot%\\Source\\""ServicePackSourcePath"="%systemroot%\\Source\\"Any help would be good....Thanks in advance.Oh yea...its a custom boot menu off of the cdrom as well....which calls the win2k image file and then runs setup. Link to comment Share on other sites More sharing options...
skeeter1jd Posted April 26, 2004 Share Posted April 26, 2004 bump....was kinda looking for an answer here.......anyone? Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 26, 2004 Share Posted April 26, 2004 yes, you must be a little dense at least skeeter why bother putting %profilesdir%="the default anyway" ? anyway, your $OEM$ should be parallel to the I386 folder.... inside the $OEM$ folder, please make sure you have the correct structure$OEM$\$$\system32 is where you batch files are being placed?then why are you running it from %windir% ??? %windir% = WINDOWStry Command0="%windir%\system32\source.cmd"also, if you haven't tried already, you should really incorporate some basic drivers it's a must in my opinion put them into $OEM$\$1\Driversmake a folder for each driver (this folder should contain the .INF files)then add to winnt.sifOemPnPDriversPath="Drivers\Intel;Drivers\Via;Drivers\Nvidia;Drivers\ATI"etc etc... Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 27, 2004 Share Posted April 27, 2004 your source.bat will have errors deleting files too, because you are pointing to %systemroot% = WINDOWs too Link to comment Share on other sites More sharing options...
imthemp3king Posted April 27, 2004 Share Posted April 27, 2004 My question is in regards to the installation of the Recovery Console to the hard drive. I added the line %CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendThat gives me an error stating it can't find NTUPGRD.DLL. I had removed the WINNTUPG folder from I386, so I created a new CD with that folder and just NTUPGRD.DLL under my I386 folder and that error went away but I was prompted with another error referring to an INI file in that same folder. Since I am not doing any sort of upgrade and just trying to install the recovery console during RunOnceEx, why is this folder necessary to complete this task? Link to comment Share on other sites More sharing options...
myfranco Posted May 26, 2004 Share Posted May 26, 2004 up Link to comment Share on other sites More sharing options...
smurf Posted July 28, 2004 Share Posted July 28, 2004 @goshPlease bare with me, I'm a newbie, and I only found MSFN a couple of weeks ago.I'm in the process of making a dvd using your Unattended Secret: Reducing Size Of Source, but I'd also like to incorperate your Trick #1: Make a flat.Your "source.bat" states:IF EXIST X:\WIN51IP.SP1 set CDROM=X:IF EXIST Y:\WIN51IP.SP1 set CDROM=Y:IF EXIST Z:\WIN51IP.SP1 set CDROM=Z:ECHO Please wait, Recovery Console is being installed locally.%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemroot%\Source\i386ECHO Please wait, source files are being copied. This may take several minutes.xcopy /Y /e %CDROM%\i386\*.* %systemroot%\Source\i386\Thats where my problem is, using your "reducing size of source" method removes winnt32.exe, so how do I get around this, do I copy winnt32.exe and winnt32.dll to the $$ folder, along with the .bat files, or what do I do?Sorry to be a pain. Link to comment Share on other sites More sharing options...
xb00t Posted August 12, 2004 Share Posted August 12, 2004 @ECHO OFFIF EXIST C:\WIN51IP.SP1 set CDROM=C:I'm making a uAXPCD with SP2 slipstreemed. Shouldn't i change the lines to:IF EXIST C:\WIN51IP.SP2 set CDROM=C: and so on? Link to comment Share on other sites More sharing options...
Alanoll Posted August 12, 2004 Share Posted August 12, 2004 or you could use the generic WIN51 file if you don't want to change it with each new service pack.But yes, that's correct. Link to comment Share on other sites More sharing options...
xb00t Posted August 12, 2004 Share Posted August 12, 2004 Alanoll strikes again with a perfect shot! 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