jadi Posted December 21, 2004 Posted December 21, 2004 I want to make an UI of XP and to test myself I started with Office 2003. And it works...But only from a partition of my HDD not from a CD I burned.I get the message that SETUP.exe cannot be found. The root of the cd is: J:\$oem$\$1\install\applications\office2003 J being the cd drive.In the same map as $oems$ is a file namend install.cmdthe contents reads: @echo offECHO.ECHO Installeren van Office XP Professional met FrontpageECHO Even geduld aub...start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=setup.MST /qb-("even geduld aub" is dutch for "a moment please")What am I doing wrong or what do I miss??Jadi
benners Posted December 21, 2004 Posted December 21, 2004 The %systemdrive% variable points to the drive windows is installed on, you will need to add a line that gets the cdrom letter.FOR %%i IN (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 %%i:\win51ip.SP2 SET CDROM=%%i: then use the %cdrom% variable. (I think), swap win51ip.sp2 for a filename that you have on the root of your CD
nfm Posted December 21, 2004 Posted December 21, 2004 or as with mineIF EXIST D:\WIN51 set CDROM=D:IF EXIST E:\WIN51 set CDROM=E:IF EXIST F:\WIN51 set CDROM=F:IF EXIST G:\WIN51 set CDROM=G:IF EXIST H:\WIN51 set CDROM=H:IF EXIST I:\WIN51 set CDROM=I:IF EXIST J:\WIN51 set CDROM=J:IF EXIST K:\WIN51 set CDROM=K:IF EXIST L:\WIN51 set CDROM=L:IF EXIST M:\WIN51 set CDROM=M:IF EXIST N:\WIN51 set CDROM=N:my batch looks like thisECHO.ECHO Installing Microsoft Office 2003 SP1 ProfessionalECHO Please wait...start /wait %cdrom%\Install\Office_2003_SP1\PRO11.MSI /QBECHO Installation Successful! and yes, benners, the variable is %cdrom%
Tsunami Posted December 21, 2004 Posted December 21, 2004 The %systemdrive% variable points to the drive windows is installed on, you will need to add a line that gets the cdrom letter.FOR %%i IN (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 %%i:\win51ip.SP2 SET CDROM=%%i: then use the %cdrom% variable. (I think), swap win51ip.sp2 for a filename that you have on the root of your CDHe put the files in $OEM$\$1\Install, so they will be copied to the harddrive during setup. Also, your batch file probably won't work, because %%i already has a : at the end, and you're adding another one to it.@jadi: Please verify if the files were copied to your harddrive (so if setup.exe really exists in C:\Install\Applications\Office2003). And a little bit offtopic, but your description says it's installing Office XP, but you're pointing to a folder called Office2003...
benners Posted December 21, 2004 Posted December 21, 2004 I thought he wanted to change his setup routine and run from CD?.Also, your batch file probably won't work, because %%i already has a : at the end, and you're adding another one to it.**** my bad eyes, 18 hrs infront of the 'puter, I deleted some extra text from the code and missed that, Thanks
Tsunami Posted December 21, 2004 Posted December 21, 2004 Hmm, well, you're right that the title implies that, but I couldn't see that from his post. If you want to do that jadi, don't put your files in $OEM$\$1
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