gareththegod Posted October 1, 2003 Share Posted October 1, 2003 this is the programs that my recommend.cmd would installsetlocalset PATHTOFIXES=.\recommended%PATHTOFIXES%\dotnetfx.exe /Q:A /c:"install /q"%PATHTOFIXES%\Journal\Journal.msi /QB%PATHTOFIXES%\DirectX9b\dxsetup.exe /opk%PATHTOFIXES%\hu1002_pro.exe /Q:A /R:N%PATHTOFIXES%\MMSSETUP.EXE /Q:A /R:N%PATHTOFIXES%\q818529.exe /Q:A /R:N%PATHTOFIXES%\WindowsXP-KB817778-x86-ENU.exe /Z /Q%PATHTOFIXES%\WindowsXP-KB822603-x86-ENU /Z /Q%PATHTOFIXES%\Movie_Maker_v2_XP_setup.exe /Q:A /R:N%PATHTOFIXES%\MPSetupXP.exe /Q:A /R:NI know that I will have to change it not to use the set command to use the start /wait bits.the critical.cmd file then updates some of these like media player 9, directx 9b, maybe .NET, and it installs all of the critical hotfixes too.I could change the recommended to apps.cmd Link to comment Share on other sites More sharing options...
GreenMachine Posted October 1, 2003 Share Posted October 1, 2003 You have my INSTALLS.CMD file on page 1 of this thread. I think it does most of what you are trying to do there, no? Link to comment Share on other sites More sharing options...
Marztabator Posted October 1, 2003 Author Share Posted October 1, 2003 @GM: That install line for PSKill wasn't intentional, I simply forgot to change it to fit with the others! Sorry for the confusion. I have changed it to this: COPY ".\TOOLS\pskill.exe" "%systemroot%\"In the $$ folder is a couple of theme files, sorted out like this:[CDROOT]-$OEM$--$$---Resources----Themes-----Marz' Black Look.Theme-----Marz' White Look.ThemeIn case you were wonderin'. So, I can keep the Drivers folder where it is. But what if I want my unattended XP to automatically delete the Drivers folder (and any/all folders inside it) after it's finished with everything else? This could be done with ease in the GUIRunOnce method, but I'm not quite sure how to carry it out carefully through the cmdlines.txt method. I don't know at which point XP installs the NVidia drivers, so I don't want to end up wiping the directory out before Windows has had a chance to get to work on the files there. Any ideas?Oh, and one more thing - where on this bizarre planet did you get that WMP9+MM2 combo exe from? Link to comment Share on other sites More sharing options...
Aaron Posted October 2, 2003 Share Posted October 2, 2003 Oh, and one more thing - where on this bizarre planet did you get that WMP9+MM2 combo exe from?It comes from the OEM System Builder site. But I will need to bittorrent this and the DX9NTOPK.exe files to help it spread before updating the site guide. A contact from Microsoft seems pretty much OK with this. Link to comment Share on other sites More sharing options...
valkyre Posted October 2, 2003 Share Posted October 2, 2003 Hello everyone, decided to give this CMDLINES.TXT thing a try. Just wondering if anyone like GreenMachine or pmcx9 could look over my code and tell me if I've screwed up on anything.(Note: I've left the drivers in the $1 directory, so that's all taken care of)cmdlines.txt[COMMANDS]".\installs.cmd"installs.cmd@ECHO OFFTITLE Post Install SetupECHO Removing WallpapersDEL "%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 ScreensaversDEL "%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.Installing Default ThemeCOPY ".\Classic.theme" "%systemroot%\Resources\Themes\"ECHO Installing DirectX 9.0bECHO Please wait...start /wait .\Updates\DX9b\dxsetup.exe /opkECHO.ECHO Installing Windows Media Player 9ECHO Please wait...start /wait .\Updates\WMP9\wmp9.exe /Q:A /R:NECHO.ECHO Installing Firebird 0.6MD "%systemdrive%\Program Files\Firebird\"XCOPY /S /E ".\Programs\Firebird" "%systemdrive%\Program Files\Firebird\"ECHO.ECHO Installing Thunderbird 0.2MD "%systemdrive%\Program Files\Thunderbird\"XCOPY /S /E ".\Programs\Thunderbird" "%systemdrive%\Program Files\Thunderbird\"ECHO.ECHO Installing Miranda IM 0.3.1MD "%systemdrive%\Program Files\Miranda IM\"XCOPY /S /E ".\Programs\Miranda IM" "%systemdrive%\Program Files\Miranda IM\"ECHO.ECHO Installing Default WallpapersMD "%systemroot%\Wallpapers\"XCOPY /S /E ".\Updates\Wallpapers" "%systemroot%\Wallpapers\"ECHO.ECHO Importing Registry FilesSTART "" /WAIT REGEDIT /S ".\regtweaks.reg"ECHO Removing useless shortcutsRMDIR "%ALLUSERSPROFILE%\Start Menu" /S /QRMDIR "%USERPROFILE%\Start Menu" /S /QECHO Removing useless folders.RMDIR "%systemdrive%\Program Files\ComPlus Applications" /S /QRMDIR "%systemdrive%\Program Files\Online Services" /S /QRMDIR "%systemdrive%\Program Files\Uninstall Information" /S /QECHO Removing HotFix Log FilesDEL "%SYSTEMROOT%\*.log" /Q /FDEL "%SYSTEMROOT%\*.txt" /Q /FDEL "%SYSTEMROOT%\*.tmp" /Q /FDEL "%SYSTEMROOT%\TEMP\*.*" /Q /FDEL "%USERPROFILE%\*.log" /Q /FECHO Setting up UsersNET USER SysAdmin SysAdmin /ADD /COMMENT:"System Administrator Account" /PASSWORDREQ:YESNET USER User User /ADD /COMMENT:"Local User Account" /PASSWORDREQ:YESNET LOCALGROUP Administrators SysAdmin /ADDNET USER Administrator /ACTIVE:NOEXITNow, one last question. The part where you set up your user account, it is a bit confusing to me. I want to setup my account with the name "Valkyre" and no password, so what would the correct code be to do that? Could I use my original code from my original main_batch.cmd file? This is it...ECHO Adding User "Valkyre"net user Valkyre /addnet localgroup "administrators" Valkyre /addnet localgroup "users" Valkyre /deletenet user administrator /active:noECHO.Thanks. Link to comment Share on other sites More sharing options...
GreenMachine Posted October 2, 2003 Share Posted October 2, 2003 My opinion ...Like many here, you delete all the screensavers. I would not do this, without deleting the corresponding registry entries. I doubt it hurts, but I would either remove the screen savers cleanly, or not at all. But that's just the way I am ...You copy to the %SYSTEMDRIVE%. You should be able to use either $OEM$\$1 or $OEM$\$$ to do this automatically. (I don't use this, as I have no $$ or $1, but it should work ...)You remove all the start menu shortcuts, but don't replace them.When you delete all the logs, you will get "File in use" messages, but don't worry about it. I figure all those files are trash unless there is currently a program accessing the file.You can use your NET USER code as is.Other than that it looks fine! Link to comment Share on other sites More sharing options...
valkyre Posted October 2, 2003 Share Posted October 2, 2003 Thanks.Regarding the screensavers, how do I remove the registry entries?Using the $1 folder only copies to the root of the drive, but I'm not copying most of my programs to the root of the drive, like Firebird and Thunderbirds, the wallpapers, etc.Thanks for confirming the net user code. Much appreciated! Link to comment Share on other sites More sharing options...
geeto Posted October 2, 2003 Share Posted October 2, 2003 Thanks.Regarding the screensavers, how do I remove the registry entries?Using the $1 folder only copies to the root of the drive, but I'm not copying most of my programs to the root of the drive, like Firebird and Thunderbirds, the wallpapers, etc.Thanks for confirming the net user code. Much appreciated!Everything in your $OEM$\$1 folder does get copied to %SYSTEMDRIVE%. You can create "$OEM$\$1\Program Files\Miranda IM", "$OEM\$1\Program Files\Thunderbird" and "$OEM$\$1\Program Files\Firebird" in your distribution folder with your files/folders already included and can remove the copying in your installs.cmd.You can also use '$OEM$\$$' folder for files and folders which go in to your %SYSTEMROOT% directory. Link to comment Share on other sites More sharing options...
valkyre Posted October 2, 2003 Share Posted October 2, 2003 Ah, I didn't know that. Thanks! Link to comment Share on other sites More sharing options...
Numinous Posted October 2, 2003 Share Posted October 2, 2003 sure i read somewhere that cmdlines.txt is microsofts recommended way to install multiple hotfixes.. personally, i only slipstream kb824146 so i dont have to unplug my ethernet to stop the dreaded blaster variants getting in before xp installs complete Link to comment Share on other sites More sharing options...
GreenMachine Posted October 2, 2003 Share Posted October 2, 2003 Regarding the screensavers, how do I remove the registry entries?Search the registry for the screen saver file names you are going to delete. I believe they are stored in more than one place. It would be easy to create the .reg file once you find the entries. Why not make one and share it? I would use it (albeit in a modified form ...) In terms of performance, I am more concerned with additional registry clutter than a few .scr and .jpg files.As mentioned, you should be able to copy and files to the system using the $OEM$\$* directories. I do not use this method, as (almost) the only thing I copy are shortcuts, and I delete them all just before. Link to comment Share on other sites More sharing options...
valkyre Posted October 2, 2003 Share Posted October 2, 2003 I might just do that. Thanks for all your help GM. Link to comment Share on other sites More sharing options...
Marztabator Posted October 3, 2003 Author Share Posted October 3, 2003 Well, I tested out my ISO in Virtual PC, and here's the sort of results I received:1) When it tries to install the WMP8 Hotfix, it brings up a small error box complaining that it couldn't find "C:\Documents" (I presume it means "Documents and Settings"), and after clicking OK, went straight to the next hotfix listed instead. Checking "Add/Remove Programs" afterwards showed that it was the only hotfix not to get installed. I'm not sure why a fix for Media Player would need the "Documents and Settings" folder, or at least a certain directory structure inside it, for it to install and operate. I take it Windows didn't get round to creating D&S, or that certain structure, around the time. So I've removed the hotfix from my Installs.cmd. All other hotfixes installed dandy.2) Since no-one provided an answer to my Drivers question, I decided to try and use GUIRunOnce to run a simple command that would delete itself in the end. It's called "After.cmd" and it goes out like this:@ECHO OFFRD /S /Q %systemdrive%\DriversREGEDIT /S HKCU.regDEL After.cmdEXITThis file is placed in $$, meaning it of course ends up in my Windows directory. I don't even notice it at all, since it operates swiftly behind the big "Welcome" screen. It didn't activate the HKCU.reg file for some reason though, by the looks of my settings. Maybe I've mis-typed something?3) It appears my Hide Messenger setting didn't even work at all! I'm pretty sure I did it right, here's how it was laid out:;Do not allow Windows/MSN Messenger to start with Outlook Express[HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express]"Hide Messenger"=dword:00000001Sure enough, I check regedit and it's correctly set to 1, but OE doesn't seem to even acknowledge this, and still brings up Windows Messenger every time I go to check my e-mail! Should I insert the setting into HKCU instead?That's pretty much what I can remember off the top of my head at the moment, any helpful comments would be greatly appreciated, merci! Link to comment Share on other sites More sharing options...
Marztabator Posted October 3, 2003 Author Share Posted October 3, 2003 Oh yeah, and Shoot The Messenger didn't appear to disable the Messenger Service during the GUI setup (it was still set to Automatic when I checked afterwards), yet UnPlug 'n' Pray managed to be successful in switching off both SSDP Discovery Service and Universal Plug and Play Device Host. So I took Shoot The Messenger off Installs.cmd but kept UnPnP. Was it just bad timing during the setup? Link to comment Share on other sites More sharing options...
Numinous Posted October 3, 2003 Share Posted October 3, 2003 theres a ton of reg keys to disable services .. messenger and upnp 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