d0nut Posted April 21, 2004 Posted April 21, 2004 Hi,Is it possbile to run runonceex.cmd from cd, but instead of pointing there to the c:/install directory I point to a directory (e.g. install) on the root of my cd.Anyone knows how this works ?And should I use something like %CDDRIVE% ?Thx !
d0nut Posted April 22, 2004 Author Posted April 22, 2004 OMG!Have you actually READ the Unattended CD Guide: Running RunOnceEx from CD? Perhaps try the SEARCH function???http://unattended.msfn.org/xp/runonceex_cd.htm I actually did read it...I think you've misunderstood my question. I don't want Windows XP setup to copy the files stored in $OEM/$1 to my C: drive, so I put them somewhere else on the cd...In RunOnceEx.cmd I should point to these files, but instead of using the system root variable (the files are only on the cd !), I should use something like %CDDRIVE%, only the right command.Don't get upset and so, I've already made a WORKING unattended cd...
Alanoll Posted April 22, 2004 Posted April 22, 2004 OMG!Have you actually READ the Unattended CD Guide: Running RunOnceEx from CD? Perhaps try the SEARCH function???http://unattended.msfn.org/xp/runonceex_cd.htm I actually did read it...I think you've misunderstood my question. I don't want Windows XP setup to copy the files stored in $OEM/$1 to my C: drive, so I put them somewhere else on the cd...In RunOnceEx.cmd I should point to these files, but instead of using the system root variable (the files are only on the cd !), I should use something like %CDDRIVE%, only the right command.Don't get upset and so, I've already made a WORKING unattended cd... Taken from the afor mentioned site.....which you DIDN'T READ!In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. Open RunOnceEx.cmd in Notepad, and include the following after @echo off:IF 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:Create a blank txt file called CD.txt and place this in C:\XPCD. This allows the IF EXIST command to scan all the drive letters specified, then when it finds CD.txt it will set an environment variable of %CDROM% pointing to the correct drive letter.The next thing to do is take all your software out of C:\XPCD\$OEM$\$1\install\, and put it in C:\XPCD\Software\ or a folder name of your choice.Going back to the RunOnceEx.cmd file, we'll need to make further changes:Change all instances of %systemdrive% to %CDROM% Fix all the paths to the software installation file, i.e. "%CDROM%\Software\MSN_Messenger.msi /qn"
Alanoll Posted April 23, 2004 Posted April 23, 2004 its like during school, when a teacher tells you to read something that night, the next day the student says he did, then there is a test on it with OBVIOUS answers and he fails BADLY.
d0nut Posted April 24, 2004 Author Posted April 24, 2004 ps. I really doubt you have a WORKING unattended cd. How childish...Ok, I misread the post, you didn't...I admit having not read properly your post OR the website OR the forum...Still, feel better when acting in that way ?
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