ewker Posted August 2, 2003 Share Posted August 2, 2003 i've been working on a cd for the past 2 days and have ran into the same problem. where %systemdrive%\$OEM$\$1\install is in my batch files etc, windows wants to run these as C:\install. is this normal? i think i am using the right code for the batch, because i've copied and pasted from several sources. i don't have a problem doing the unattended install, but as soon as windows loads for the first time i'm hit with the error message: "Cannot find C:\Install\Main_Batch.cmd". So i tried manually running the batch files just by double clicking on them. Again I get the same error, but it says something like "Cannot find C:\Install\Applications\whatever". What I finally done to get the batch to work was copy them all to the desktop and replace the string %systemdrive% with D:\$OEM$\$1. Can someone please explain to me what I am doing wrong?here are some copies of my code:----------File: [CD-Rom Drive]:\I386\winnt.sif ------------------;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=ProvideDefault OemPreinstall=No TargetPath=\WINDOWS[GuiUnattended] EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35[UserData] ProductKey=removed FullName="Owner" OrgName="No Organization" ComputerName=*[TapiLocation] CountryCode=1[Identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[Components]msmsgs=offmsnexplr=off freecell=offhearts=offminesweeper=offpinball=offsolitaire=offspider=offzonegames=off[Shell]DefaultStartPanelOff = Yes[GuiRunOnce]%systemdrive%\install\main_batch.cmd%systemdrive%\install\hotfixes.cmd%systemdrive%\install\applications.cmd----------File: [CD-Rom Drive]:\$OEM$\$1\Install\main_batch.sif ------------------CLS@echo offECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO hacks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Removing Wallpapers...DEL "%systemroot%\Blue Lace 16.bmp"DEL "%systemroot%\Coffee Bean.bmp"DEL "%systemroot%\FeatherTexture.bmp"DEL "%systemroot%\Gone Fishing.bmp"DEL "%systemroot%\Greenstone.bmp"DEL "%systemroot%\Prairie Wind.bmp"DEL "%systemroot%\Rhododendron.bmp"DEL "%systemroot%\River Sumida.bmp"DEL "%systemroot%\Santa Fe Stucco.bmp"DEL "%systemroot%\Soap Bubbles.bmp"DEL "%systemroot%\Zapotec.bmp"DEL "%systemroot%\Web\Wallpaper\Crystal.jpg"DEL "%systemroot%\Web\Wallpaper\Friend.jpg"DEL "%systemroot%\Web\Wallpaper\Home.jpg"DEL "%systemroot%\Web\Wallpaper\Moon flower.jpg"DEL "%systemroot%\Web\Wallpaper\Peace.jpg"DEL "%systemroot%\Web\Wallpaper\Power.jpg"DEL "%systemroot%\Web\Wallpaper\Purple flower.jpg"DEL "%systemroot%\Web\Wallpaper\Radiance.jpg"DEL "%systemroot%\Web\Wallpaper\Ripple.jpg"DEL "%systemroot%\Web\Wallpaper\Stonehenge.jpg"DEL "%systemroot%\Web\Wallpaper\Vortec space.jpg"DEL "%systemroot%\Web\Wallpaper\Ascent.jpg"DEL "%systemroot%\Web\Wallpaper\Autumn.jpg"DEL "%systemroot%\Web\Wallpaper\Azul.jpg"DEL "%systemroot%\Web\Wallpaper\Follow.jpg"DEL "%systemroot%\Web\Wallpaper\Red moon desert.jpg"DEL "%systemroot%\Web\Wallpaper\Tulips.jpg"DEL "%systemroot%\Web\Wallpaper\Wind.jpg"ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.ECHO Removing Screensavers...DEL "%systemroot%\system32\dllcache\scrnsave.scr"DEL "%systemroot%\system32\dllcache\ss3dfo.scr"DEL "%systemroot%\system32\dllcache\ssbezier.scr"DEL "%systemroot%\system32\dllcache\ssflwbox.scr"DEL "%systemroot%\system32\dllcache\ssmarque.scr"DEL "%systemroot%\system32\dllcache\ssmypics.scr"DEL "%systemroot%\system32\dllcache\ssmyst.scr"DEL "%systemroot%\system32\dllcache\sspipes.scr"DEL "%systemroot%\system32\dllcache\ssstars.scr"DEL "%systemroot%\system32\dllcache\sstext3d.scr"DEL "%systemroot%\system32\scrnsave.scr"DEL "%systemroot%\system32\ss3dfo.scr"DEL "%systemroot%\system32\ssbezier.scr"DEL "%systemroot%\system32\ssflwbox.scr"DEL "%systemroot%\system32\ssmarque.scr"DEL "%systemroot%\system32\ssmypics.scr"DEL "%systemroot%\system32\ssmyst.scr"DEL "%systemroot%\system32\sspipes.scr"DEL "%systemroot%\system32\ssstars.scr"DEL "%systemroot%\system32\sstext3d.scr"ECHO.ECHO Copying patched UXTheme.dll...REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\"ECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\DirectX9b\DirectX9\dxsetup.exe /opkECHO.ECHO Installing Windows Media Player 9ECHO Please wait...start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:NECHO.ECHO Installing TweakUI 2.10 PowertoyCOPY "%systemdrive%\install\PowerToys\TweakUI.exe" "%systemroot%\System32\"COPY "%systemdrive%\install\PowerToys\TweakUI 2.10 Powertoy.lnk" "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\"ECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.ECHO Installing Microsoft JavaVM - Build 3810ECHO Please wait...start /wait %systemdrive%\install\JavaVM\msjavx86.exe /Q:A /R:NECHO.EXIT. Link to comment Share on other sites More sharing options...
gamehead200 Posted August 2, 2003 Share Posted August 2, 2003 Thanks for your Product Key! Link to comment Share on other sites More sharing options...
DaveXP Posted August 2, 2003 Share Posted August 2, 2003 If i were u then i would not post my CD Key Link to comment Share on other sites More sharing options...
Aaron Posted August 2, 2003 Share Posted August 2, 2003 As the guides states, use OemPreinstall=Yes so that the files & folders from the \install folder gets copied over to C:\install\It says this at the bottom of the page of: http://www.MSFN.org/unattended/xp/winnt_sif.htm Link to comment Share on other sites More sharing options...
stranglersfan Posted August 3, 2003 Share Posted August 3, 2003 I too am having problems with my cd? It will install xp unattended fine but when it get's round to installing the batch files it says it can't find them? I have followed the guide too a tee, i reckon anyway?winnt.sif is in the i386 folder and the batch files are in the install folder i.e: C:\XPCD\$OEM$\$1$\install, along with the folders containing the hotfixes,app's etc. But i have tried about 3x now any everytime it fails to find them? any ideas?my winnt.sif looks like this:-;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition="Yes" UnattendSwitch="No" WaitForReboot="No"[GuiUnattended] AdminPassword="*" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=4 OEMSkipRegional=1 TimeZone=85 OemSkipWelcome=0[userData] ProductKey=* FullName="Stranglersfan" OrgName="Home" ComputerName=The_Rats_Lair[Display] BitsPerPel=32 Xresolution=800 YResolution=600 Vrefresh=60[TapiLocation] CountryCode=44 Dialing=Tone[RegionalSettings] LanguageGroup=1 SystemLocale=00000809 UserLocale=00000809 InputLocale=0809:00000809[identification] JoinWorkgroup=MSHOME[Networking] InstallDefaultComponents=Yes[Components] msmsgs=off msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=off[shell] DefaultStartPanelOff=No DefaultThemesOff=No[GuiRunOnce] %systemdrive%\install\crap_removal.cmd %systemdrive%\install\hotfixes.cmd %systemdrive%\install\applications.cmd Link to comment Share on other sites More sharing options...
Aaron Posted August 3, 2003 Share Posted August 3, 2003 Here's the problem I spotted: $1$It should be $1C:\XPCD\$OEM$\$1\install\ Link to comment Share on other sites More sharing options...
ewker Posted August 3, 2003 Author Share Posted August 3, 2003 after making the post i figured out the problem by looking at another thread. i needed to change oempreinstall=yes instead of no. and about the cd key, feel free to use it all you want. it's not exactly mine anyway Link to comment Share on other sites More sharing options...
Aaron Posted August 3, 2003 Share Posted August 3, 2003 after making the post i figured out the problem by looking at another thread. i needed to change oempreinstall=yes instead of no.well yeah.. you must have missed my reply above. 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