SiMoNsAyS Posted August 20, 2004 Author Posted August 20, 2004 i think i finally got it, go to first post for details
Alanoll Posted August 20, 2004 Posted August 20, 2004 you could include my VBS if you wanted, replace the SLEEP that way there is a visual prompt that they have to click when they're done. True it will disable the unattend, but for the people that don't have two CDROMS that will disable the unattend as well, as they'd have to be present to install Office.you could also use ping, and ping the localhost to cause the sleep as well.
SiMoNsAyS Posted August 20, 2004 Author Posted August 20, 2004 about people that don't have 2 cdroms, they can just copy the office installation cd to C:\ and it will still work but what if that people don't have enought space or simply don't want to?? i'll add a paragraph about ping i dunno how to use it
SiMoNsAyS Posted August 23, 2004 Author Posted August 23, 2004 i've found a way to pause the script for 1 minute using the ping commandstart /wait PING -n 61 127.0.0.1>nulthis will let us a minute or so, problem now it's that the new cmd window it's visible and annoys me, do any1 know how to hide it??
SiMoNsAyS Posted September 1, 2004 Author Posted September 1, 2004 Guide updated!, no need for sleep.exe anymore!
mssaad66 Posted September 3, 2004 Posted September 3, 2004 Hi…Can I add my way for the 2nd CD….. I've made exe file and it's work fine now….the way is very easy just you need to change the file name you wont to setup it in the .cmd file and put that .cmd file on your %systemdrive% by any way you like.. as $OEM$ or other ways just it must to be on the %systemdrive% at the time you went to setup programs from the 2nd cd ….and you need also cd2.txt to be on the root or the 2nd cd, so just we need this 4 (CD2.txt + 2NDCD.cmd + cdeject.exe + cdr.exe) files….I'll put them at all in the attachments, just you need to edit the .cmd as you need 2NDCD.cmd:cls@ECHO OFFECHO.SET CDROM2=IF EXIST D:\CD2.txt SET CDROM2=D:IF EXIST E:\CD2.txt SET CDROM2=E:IF EXIST F:\CD2.txt SET CDROM2=F:IF EXIST G:\CD2.txt SET CDROM2=G:IF EXIST H:\CD2.txt SET CDROM2=H:IF EXIST I:\CD2.txt SET CDROM2=I:IF EXIST J:\CD2.txt SET CDROM2=J:IF EXIST K:\CD2.txt SET CDROM2=K:IF EXIST L:\CD2.txt SET CDROM2=L:IF EXIST M:\CD2.txt SET CDROM2=M:IF EXIST N:\CD2.txt SET CDROM2=N:IF EXIST %CDROM2%\CD2.TXT GOTO RUNcls:RUNECHO.start /wait %CDROM2%\SETUP.exe TRANSFORMS=Unattended.MST /qb-clsECHO.EXITThis ismine it is just for the Office, so you can your program here…also I must to tell you that the .cmd file will work in hide mood so you'll not see the Dos black screenAnd this is my way to call it also…..Runonceex.inf:HKLM,"%RunOnceEx%\install13",,,"13- Please Insert CD 2"HKLM,"%RunOnceEx%\install13",1,,"%10%\Apps4\CDR.exe open ALL"HKLM,"%RunOnceEx%\install13",2,,"%10%\Apps4\cdeject.exe"I hope that it help you,,,Tell me about it if it work with you or not……2nd_cd.rar
mssaad66 Posted September 3, 2004 Posted September 3, 2004 This is also the main script you can edit as you want and you can convert it to exe with the AutoItwww.hiddensoft.com/AutoIt2ND_CD.AUT
SiMoNsAyS Posted September 3, 2004 Author Posted September 3, 2004 LoL, also this method can be applied to other program or many programs. the administrative installation of office don't take a full cd so i'm thinking on adding photoshop or any other program to the list, just placing this lines on the script:start /wait %OFFICE%\SETUP.exe TRANSFORMS=Unattended.MST /qb-start /wait %OFFICE%\ApplicationDir01\Application01.exestart /wait %OFFICE%\ApplicationDir02\Application02.exestart /wait %OFFICE%\ApplicationDir..\Application...exe
mssaad66 Posted September 3, 2004 Posted September 3, 2004 That is right for that I've add the main script (2ND CD.AUT) to change what you like of description of the 2nd CD& Names of programs..........in this case you must to edit teh .CMD file and .EXE
wookieNZ Posted September 11, 2004 Posted September 11, 2004 Hi all,Thanks very much for work done so far. I am currently trying for a 2 CD unattended install but am tripping up when changing CD's. Using Virtual PC when i change over the cd in the "capture iso" menu it cant find the office file on the new cd.I have attached the my RunonceEx.cmd file, it is basiacally the same as Alanolls post on page 1.My files are located on my D:\unattendedxp\xpcd\ folder and officexp (acutally 2003 but not splitting hairs) is located in the \xpcd\$OEM$\$1\applications\officexp dir.The VB script works find to eject the cd etc (vitrual in this case) however just doesnt find the setup.exe for office on the next cd. I have cd1.txt and cd2.txt in the root of both the ISO cd's.Any ideas?Thanks.RunOnceEx.txt
SiMoNsAyS Posted September 11, 2004 Author Posted September 11, 2004 @wookieNZIF EXIST D:\CD1.txt set XPCD=D:IF EXIST E:\CD2.txt set XPCD=E:IF EXIST F:\CD3.txt set XPCD=F:IF EXIST G:\CD4.txt set XPCD=G:IF EXIST H:\CD5.txt set XPCD=H:IF EXIST I:\CD6.txt set XPCD=I:IF EXIST J:\CD7.txt set XPCD=J: XPCD it's not properly set, it should look like IF EXIST D:\CD1.txt set XPCD=D:IF EXIST E:\CD1.txt set XPCD=E:IF EXIST F:\CD1.txt set XPCD=F:IF EXIST G:\CD1.txt set XPCD=G:IF EXIST H:\CD1.txt set XPCD=H:IF EXIST I:\CD1.txt set XPCD=I:IF EXIST J:\CD1.txt set XPCD=J:and how did you set "%install%" variable? in runonceex it's not stablished
wookieNZ Posted September 11, 2004 Posted September 11, 2004 Hi,%INSTALL% is REM'd out so i dont use it... i am using half of another script The two code blocks you posted are the same, so what have a i done wrong?EDIT: Look harder!!!! opps.Cheers.
Jito463 Posted September 11, 2004 Posted September 11, 2004 cls@ECHO OFFECHO.SET CDROM2= (unnecessary)IF EXIST D:\CD2.txt SET CDROM2=D:IF EXIST E:\CD2.txt SET CDROM2=E:IF EXIST F:\CD2.txt SET CDROM2=F:IF EXIST G:\CD2.txt SET CDROM2=G:IF EXIST H:\CD2.txt SET CDROM2=H:IF EXIST I:\CD2.txt SET CDROM2=I:IF EXIST J:\CD2.txt SET CDROM2=J:IF EXIST K:\CD2.txt SET CDROM2=K:IF EXIST L:\CD2.txt SET CDROM2=L:IF EXIST M:\CD2.txt SET CDROM2=M:IF EXIST N:\CD2.txt SET CDROM2=N:You know, it's so simple I can't believe I didn't think of it sooner. Maybe because it's so simple? I've been having an odd issue lately with my TechDVD where I use finddrv along with the label to find my DVD drive and set it as a variable (%tech%).:CDCOMMONLH MOUSE.COMLH MSCDEX.EXE /D:oemcd001 /L:JA:\FINDDRV TechDVDif errorlevel 10 set tech=j:if errorlevel 11 set tech=k:if errorlevel 12 set tech=l:set tech=%tech%path %temp%;A:;%tech%That worked under IsoLinux with mkisofs. But with CDImage and CDShell, it can't find the drive even though if I switch manually to the drive my disc is in and do a dir listing it shows the label correctly. Well, duh. Here's this idea and it solves all my problems. I just created a blank file called TechDVD (no extension needed) and do:if exist j:\techdvd set tech=j:if exist k:\techdvd set tech=k:if exist l:\techdvd set tech=l:set tech=%tech%path %temp%;A:;%tech%That did it. Thanks for helping me realize my ignorance And as a bonus, I even manage to get rid of an extra line, heh.
wookieNZ Posted September 11, 2004 Posted September 11, 2004 @simonsaysI have changed the code block as you described but still getting the "cant find \install\appplications\officexp\setup.exe" error.A question: i have added cd2.txt to the office cd iso but i dont get to use it according to the code block, is this right?Cheers.
SiMoNsAyS Posted September 12, 2004 Author Posted September 12, 2004 @simonsaysI have changed the code block as you described but still getting the "cant find \install\appplications\officexp\setup.exe" error.check the paths, the code SHOULD workA question: i have added cd2.txt to the office cd iso but i dont get to use it according to the code block, is this right?you need to stablish a second variable like in the example %OFFICE%:IF EXIST D:\CD2.txt set OFFICE=D:IF EXIST E:\CD2.txt set OFFICE=E:IF EXIST F:\CD2.txt set OFFICE=F:IF EXIST G:\CD2.txt set OFFICE=G:IF EXIST H:\CD2.txt set OFFICE=H:IF EXIST I:\CD2.txt set OFFICE=I:IF EXIST J:\CD2.txt set OFFICE=J:
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