jamesas Posted January 1, 2005 Share Posted January 1, 2005 Hey guys how can i set the cdrom varible with out it bring up errors when it scans the drives, also i use wpi if i replace %systemdrive% with %cdrom% will it run becuse here is my current half completed install.cmd@echo offtitle Windows 2003 Professional Edition SetupECHO.ECHO ---------------------------------ECHO.ECHO.ECHO Over the next few minutes you will see a post setup screenECHO this screen will let you select and install various sofware ECHO applications, windows updates, and registry tweaks beingECHO implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Please Leave in your Windows 2003 Disk to avoid errors during post installECHO.ECHO ---------------------------------ECHO.ECHO Scanning for cd rom driveIF EXIST D:\AUTORUN.INF set CDROM=D:IF EXIST E:\AUTORUN.INF set CDROM=E:IF EXIST F:\AUTORUN.INF set CDROM=F:IF EXIST G:\AUTORUN.INF set CDROM=G:IF EXIST H:\AUTORUN.INF set CDROM=H:IF EXIST I:\AUTORUN.INF set CDROM=I:IF EXIST J:\AUTORUN.INF set CDROM=J:IF EXIST K:\AUTORUN.INF set CDROM=K:IF EXIST L:\AUTORUN.INF set CDROM=L:IF EXIST M:\AUTORUN.INF set CDROM=M:IF EXIST N:\AUTORUN.INF set CDROM=N:ECHO.ECHO Removing Wallpapers and Screensavers...DEL "%systemdrive%\WINDOWS\Web\Wallpaper\Windows Server 2003.bmp"ECHO.ECHO ---------------------------------ECHO.ECHO Installing 'Windows Products Setup' Startmenu ShortcutECHO DO NOT DELETE THIS SHORTCUTCOPY "%cdrom%\$oem$\$1\install\Windows Products Setup.lnk" "%allusersprofile%\Start Menu"ECHO.ECHO ---------------------------------ECHO.ECHO Starting Cleartype Tunestart /wait %cdrom%\$oem$\$1\install\cleartweak.exeECHO.ECHO ---------------------------------ECHO.ECHO Starting Windows Products SetupECHO.ECHO Warning if a dialog comes up saying a script is taking to long to completeECHO make sure you let it have more time by selecting the correct optionECHO.ECHO To Continue with the setup press enter or the space keyPAUSEECHO.ECHO Continuing Setupstart /wait %systemdrive%\install\wpi\WPI.htaECHO.ECHO Post Setup completeECHO.ECHO Removing useless shortcuts...DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"DEL /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Java Web Start.lnk"DEL /Q "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"DEL /Q "%AllUsersProfile%\Desktop\Kazaa Lite K++.lnk"DEL /Q "%AllUsersProfile%\Desktop\Mozilla Firefox.lnk"DEL /Q "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"DEL /Q "%UserProfile%\Desktop\1-Click Maintenance.lnk"DEL /Q "%UserProfile%\Desktop\Shareaza.lnk"DEL /Q "%UserProfile%\Desktop\TuneUp Utilities 2004.lnk"DEL /Q "%UserProfile%\Desktop\Steam.lnk"DEL /Q "%UserProfile%\Desktop\FlashFXP.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 6.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 7.lnk"DEL /Q "%AllUsersProfile%\Desktop\CyberLink PowerDVD.lnk"DEL /Q "%UserProfile%\Desktop\Opera.lnk"ECHO ---------------------------------ECHO Windows 2003 Modifcations being appliedstart /wait %cdrom%\install\Win2003.exe /uregsvr32 /s \windows\system32\COMDLG32.OCXECHO.ECHO ---------------------------------ECHO.ECHO.ECHO.EXITcuz im just wondering if the %cdrom% will be carried into wpi and back out into other install.cmd thats run for the setups from wpi Link to comment Share on other sites More sharing options...
un4given1 Posted January 1, 2005 Share Posted January 1, 2005 I'll give you a clue on why your topic hasn't been replied to... it's because this topic is discussed about once a week EVERY week. It's already been asked this week. Give the search button a try. Link to comment Share on other sites More sharing options...
prathapml Posted January 1, 2005 Share Posted January 1, 2005 Hey un4given1 I don't mean to gloat, but yes, I do see that both of us try to help people, and ask them to search when its relevant!(pun intended... I'm referring to what you'd said about too many people responding with "search" instead of the answer) Link to comment Share on other sites More sharing options...
MCT Posted January 1, 2005 Share Posted January 1, 2005 Link to comment Share on other sites More sharing options...
Astalavista Posted January 1, 2005 Share Posted January 1, 2005 if u read the wpi thread it tells u what to do to migrate and what to do. Link to comment Share on other sites More sharing options...
jamesas Posted January 1, 2005 Author Share Posted January 1, 2005 well ok i figured it all out but my windows still keeps giving errors when seraching the drives becuse it cant find a drive thereBTW why doesnt something like this get pinnedBTW can people stop replying with search i know how to search but i need a answer i coulendt find Link to comment Share on other sites More sharing options...
Astalavista Posted January 1, 2005 Share Posted January 1, 2005 I also use wpi.i think u should read this http://unattended.msfn.org/xp/runonceex_cd.htmECHO Removing useless shortcuts...DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"DEL /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Java Web Start.lnk"DEL /Q "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"DEL /Q "%AllUsersProfile%\Desktop\Kazaa Lite K++.lnk"DEL /Q "%AllUsersProfile%\Desktop\Mozilla Firefox.lnk"DEL /Q "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"DEL /Q "%UserProfile%\Desktop\1-Click Maintenance.lnk"DEL /Q "%UserProfile%\Desktop\Shareaza.lnk"DEL /Q "%UserProfile%\Desktop\TuneUp Utilities 2004.lnk"DEL /Q "%UserProfile%\Desktop\Steam.lnk"DEL /Q "%UserProfile%\Desktop\FlashFXP.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 6.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 7.lnk"DEL /Q "%AllUsersProfile%\Desktop\CyberLink PowerDVD.lnk"DEL /Q "%UserProfile%\Desktop\Opera.lnk"this should be in the cleanup.cmd Link to comment Share on other sites More sharing options...
jamesas Posted January 1, 2005 Author Share Posted January 1, 2005 this is the error im talking about Link to comment Share on other sites More sharing options...
Astalavista Posted January 1, 2005 Share Posted January 1, 2005 i told u to look at the link. if u just took a min to read u would see that your argument is wrong.ECHO Scanning for cd rom driveIF EXIST D:\AUTORUN.INF set CDROM=D:IF EXIST E:\AUTORUN.INF set CDROM=E:IF EXIST F:\AUTORUN.INF set CDROM=F:IF EXIST G:\AUTORUN.INF set CDROM=G:IF EXIST H:\AUTORUN.INF set CDROM=H:IF EXIST I:\AUTORUN.INF set CDROM=I:IF EXIST J:\AUTORUN.INF set CDROM=J:IF EXIST K:\AUTORUN.INF set CDROM=K:IF EXIST L:\AUTORUN.INF set CDROM=L:IF EXIST M:\AUTORUN.INF set CDROM=M:IF EXIST N:\AUTORUN.INF set CDROM=N:It should be thisIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:pls read...http://unattended.msfn.org/xp/runonceex_cd.htmtake about 15 to 20 mins Link to comment Share on other sites More sharing options...
jamesas Posted January 1, 2005 Author Share Posted January 1, 2005 dude that isnt the reason the error is popping up ive tried it the proper way and it still doesnt work, i just need a way to supress the error Link to comment Share on other sites More sharing options...
Astalavista Posted January 1, 2005 Share Posted January 1, 2005 look the instruction in unattended.msfn.org has worked for thousands.i seriously believe there is something wrong with it. it isn't a sheep joke.it does work. and why do u hv so many echo for? up to you.here is another method i use.::Locate the CDROM drive if necessary, where AUTORUN.INF exists at the root...FOR %%d 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 %%d\AUTORUN.INF SET CDROM=%%dECHO Warning if a dialog comes up saying a script is taking to long to completeECHO make sure you let it have more time by selecting the correct optionu need to hack the registry and add this [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles]"MaxScriptStatements"=dword:ffffffffECHO Installing 'Windows Products Setup' Startmenu ShortcutECHO DO NOT DELETE THIS SHORTCUTCOPY "%cdrom%\$oem$\$1\install\Windows Products Setup.lnk" "%allusersprofile%\Start Menu"ECHO.ECHO ---------------------------------that is automatically installed by xp. in addition u can put it the correct $oem$ pathso u dont need to use copyhttp://unattended.msfn.org/xp/oemfolders.htm read it Link to comment Share on other sites More sharing options...
jamesas Posted January 1, 2005 Author Share Posted January 1, 2005 well heres how it goes this is the first windows the user sees it tells them what is going on so the first command cmdow @ /HID was removed then i ahve so many echos to say what is going on and ive inlcuded the updated code below @echo offtitle Windows 2003 Professional Edition SetupECHO.ECHO ---------------------------------ECHO.ECHO.ECHO Over the next few minutes you will see a post setup screenECHO this screen will let you select and install various sofware ECHO applications, windows updates, and registry tweaks beingECHO implemented. It is reccomended that you restart your computerECHO after setup if finishedECHO.ECHO Please insert your Windows 2003 Disk to avoid errors during post installECHO.ECHO ---------------------------------ECHO.ECHO Scanning for cd rom driveIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:IF EXIST K:\CD.txt set CDROM=K:IF EXIST L:\CD.txt set CDROM=L:IF EXIST M:\CD.txt set CDROM=M:IF EXIST N:\CD.txt set CDROM=N:ECHO ---------------------------------ECHO.ECHO Starting Windows Products SetupECHO.ECHO Warning if a dialog comes up saying a script is taking to long to completeECHO make sure you let it have more time by selecting the correct optionECHO.ECHO To Continue with the setup press enter or the space keyPAUSEECHO.ECHO Continuing Setupstart /wait %systemdrive%\install\wpi\WPI.htaECHO.ECHO Post Setup completeECHO.ECHO Removing useless shortcuts...DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"DEL /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"DEL /Q "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Java Web Start.lnk"DEL /Q "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL /Q "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"DEL /Q "%AllUsersProfile%\Desktop\Kazaa Lite K++.lnk"DEL /Q "%AllUsersProfile%\Desktop\Mozilla Firefox.lnk"DEL /Q "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"DEL /Q "%UserProfile%\Desktop\1-Click Maintenance.lnk"DEL /Q "%UserProfile%\Desktop\Shareaza.lnk"DEL /Q "%UserProfile%\Desktop\TuneUp Utilities 2004.lnk"DEL /Q "%UserProfile%\Desktop\Steam.lnk"DEL /Q "%UserProfile%\Desktop\FlashFXP.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 6.lnk"DEL /Q "%AllUsersProfile%\Desktop\3ds max 7.lnk"DEL /Q "%AllUsersProfile%\Desktop\CyberLink PowerDVD.lnk"DEL /Q "%UserProfile%\Desktop\Opera.lnk"EXITPS i included the clean up thing becuse why not make it one file the real cleanup.cmd deletes other files by option in wpi Link to comment Share on other sites More sharing options...
Astalavista Posted January 1, 2005 Share Posted January 1, 2005 in my opinion, u dont need that many echos.i tell people throw it into the dvd drive, go pickup your kids, come home and your all set to go. go take a shower, go take poopoo they wont sit there starring at iti hv my cleanup run during wpi as my 999th excutable of my wpi. Link to comment Share on other sites More sharing options...
MHz Posted January 1, 2005 Share Posted January 1, 2005 Hey guys how can i set the cdrom varible with out it bring up errors when it scans the drives, also i use wpi if i replace %systemdrive% with %cdrom% will it run becuse here is my current half completed install.cmdThe CDROM variable is being set in the batch script, but is not being used. the CDROM variable is only useful within the file that set it. If you are using a CDROM variable within WPI, and have no set CDROM variable within it, then WPI could be creating the error? Link to comment Share on other sites More sharing options...
jamesas Posted January 1, 2005 Author Share Posted January 1, 2005 this is all being ran before wpiPS this install is not unattended becuse if it was people would have a hell of alot of software being installed now i know it works all i want is someone to fix this error 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