Jump to content

Recommended Posts

Posted

I have created a unattended vista install and now I want to add office 2007 to it. the problem I am running into is that I don't know how to tell the firstlogon.cmd where the files are. does anyone know how to either:

reference the dvd drive even though I don't know what letter it will be.

or

copy office files to a specific folder on the C drive so I can just put a path into the firstlogon.cmd like c:\install\officd2007\setup.exe?

Thanks in advance for your help.


Posted

for %%i 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 %%i\Path\To\File\anyname.txt set CDROM=%%i

Place that at the beginning of your batch file.

Change: "Path\To\File\anyname.txt"

To whatever the path on your disk to a specific file is.

For instance if you had a file named Office2k7.dat at the root of your disk your code would look like:

for %%i 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 %%i\Office2k7.dat set CDROM=%%i

Enjoy! :D

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...