[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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?
0
Francis515
Asked:
Francis515
  • 4
  • 2
1 Solution
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now