nOBeLium Posted September 29, 2004 Posted September 29, 2004 Thanks for the code adjust.Gracias hermano Edit: Think I found a little bug:start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-I don't see the need for the OFFICE variable before Unattended.mst...or am I wrong?
SiMoNsAyS Posted September 29, 2004 Author Posted September 29, 2004 Thanks for the code adjust.Gracias hermano Edit: Think I found a little bug:start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-I don't see the need for the OFFICE variable before Unattended.mst...or am I wrong?yes and no... still untestedsometime ago i read about a guy that got problems if he didn't specify the patch to the unattended.mst file so that's why i added it, just to prevent problems you can try in your current installation and if it fails then you know what it's the problem. hope it works and can help uGracias a ti
nOBeLium Posted September 29, 2004 Posted September 29, 2004 Sorry, it was working good IF the file existed...but I tried to see if it worked if the file didn't exist,. If it doesn't, a box pops up saying setup.exe doesn't exist.Here's the fix:@ECHO OFFTITLE Instalacion de Microsoft Office 2003 y Adobe Photoshop CSCOLOR 70ECHO. ____ECHO ______________________________ ____________/ /________ECHO -=-=-=-=/ __________________/ _ \ _ \/ ____\____ \ / \/ ____\-=-=-=-=-ECHO ____\___ \/ \/ _ _ / / / / /\___ \/ / /__ /\___ \ECHO -=-=-/ ________/ ___/__/_/ /_____/__/ /______/\_____/ / /______/=-=-=-=ECHO \/(-Dvc!-)\/ / _/ / _/ /_____/ECHO \/ \/ECHO.ECHO.ECHO Por favor inserta el CD de Microsoft Office 2003 SP1ECHO En 1 minuto se continuara la instalacion...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\$OEM$\BioHaZaRD.nfo SET CDROM=%%dstart /wait %CDROM%\$OEM$\pause.cmdFOR %%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 NOT EXIST %%d\Office2003\Unattended.mst GOTO ENDFOR %%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\Unattended.mst SET OFFICE=%%dECHO.ECHO Instalando Microsoft Office 2003 SP1start /wait %OFFICE%\setup.exe TRANSFORMS=%OFFICE%\Unattended.mst /qb-GOTO END:ENDECHO Por favor inserta el CD de Instalacion de Windows XP SP2ECHO En 1 minuto se continuara la instalacion...start /wait %CDROM%\$OEM$\pause.cmdEXITBasically, you should check first if it doesn't exist and then if it exists... Sorry for late fix
SiMoNsAyS Posted September 29, 2004 Author Posted September 29, 2004 that's really stranege becase i've run it many times in my vpc and worked flawlessly but if you say it works better that way... updated again!
ran Posted October 6, 2004 Posted October 6, 2004 OK, First, thanks so much for the batch code...Second, I've been modifying it to utilize the fact that I have two CDROM drives. Hence, I just want to put the WinXP disc in the first drve, the Office 2003 disc in the second drive and let the whole process run its course.However, I find that during testing, if the batch finds an "empty" drive, I receive an INT 24 error and it halts the batch.Is there a way to avoid or make this errorcode silent?I've found this Code that calls %comspec% with the '/f' switch which silences the "empty drive" problem.@echo off if "%1"=="" goto _help ctty nul %comspec% /f /c dir %1: | find "Directory of " ctty con if errorlevel==0 if not errorlevel==1 goto _isready echo Drive %1 is NOT ready goto _end :: :_isready echo Drive %1 is ready goto _end :: :_help echo Usage %0 [DriveLetter] :: :_endIs there a way to adapt this to your batch? I think I could modify it at each drive letter call, but then I'd have a long series of checking if each drive letter exists, then checking to see if that drive letter contains the CD with my "detection file"..Is there something altogether different (& easier) that I could use? .....I'm must too tired right now to figure it out..... 8-)RanP.S. You may wonder why I want this? Well, sometimes I have a number of drives in the computer - some of which may contain unformatted partitions or be empty. Hence, I'd like some way of overcoming this....
SiMoNsAyS Posted October 6, 2004 Author Posted October 6, 2004 @ran lol first of all thanks it's supposed that the script would run even with the 2 CDs on 2 different units... check out latest version of the script on first post.about implementing that code on mine, it's probably possible but sorry at this time i don't have much time now. i'll take a look later if i can.
DarkAngel2057 Posted May 6, 2005 Posted May 6, 2005 Hi all, I'm new to this forum and I must that you ppl rock!!!! BTW, thanx to SiMoNsAyS & nOBeLium, I successfully created an Unattended CD for Office 2K3
SiMoNsAyS Posted May 6, 2005 Author Posted May 6, 2005 happy to serve the communitty it is nice to see how this thread can still help
colemancb Posted May 27, 2005 Posted May 27, 2005 Love this, but here's what I did. The wrong English was bothering me, so I fixed it to correct English.It's attached...MediaSwitcher_CosmeticFixes.rar
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