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?
Francis515Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmazingTechCommented:
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?
0
Francis515Author Commented:
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.
0
AmazingTechCommented:
Put the batch file on the removable drive and use %~d0 to reference the same drive letter as the batch file.

Your batch file could look like the one attached
%~d0\Software\Office2003\setuppro.exe TRANSFORMS=%~d0\Software\Office2003\office2003customsettings.mst /q

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

AmazingTechCommented:
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

0
Francis515Author Commented:
Thanks, great solution.
0
AmazingTechCommented:
I use %~dp0 quite a bit to reference Drive and Path where the batch file resides. This even works with UNC path.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.