Link to home
Start Free TrialLog in
Avatar of Francis515
Francis515Flag for United States of America

asked on

Using a mst file with Office 2003

I have created a custom mst file for use in installing Office 2003. What I'm looking for is some type of script or batch file or something that will launch the setup file (setuppro.exe), complete with the transform to use the mst file. I know how to setup a command line to use it (setuppro.exe TRANSFORMS=e:\software\office2003\office2003customsettings.mst /q) and I can create a batch file to launch it, but the problem is that this method depends on a hard coded reference to a drive letter and depending on the machine, the drive letter assigned to the removable drive may be different. So, my question is, is there any way to create a file that would launch both of these from the hard drive regardless of the assigned drive letter?
Avatar of AmazingTech
AmazingTech

Where is your batch file?
Where is your setuppro.exe?
Where is your MST file?

Are they on the same media?
Are some from the network?
Avatar of Francis515

ASKER

Sorry, in the process of editing my question I edited out some information. The setup file and the mst file are on a removable hard drive, which is also where I'd want the batch, vbs or whatever file to reside. The problem I'm having is that I have to hard code the drive letter into the path and the drive letter isn't consistent.
ASKER CERTIFIED SOLUTION
Avatar of AmazingTech
AmazingTech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could also ignore the drive letter and reference the path by using the root.
\Software\Office2003\setuppro.exe TRANSFORMS=\Software\Office2003\office2003customsettings.mst /q
 

Open in new window

Thanks, great solution.
I use %~dp0 quite a bit to reference Drive and Path where the batch file resides. This even works with UNC path.