Office: Specifying Working Directory in a Custom Setup ScriptID: Q122846
|
In Microsoft Office, you can automatically modify the working directory for
a program when you run the Setup program by editing the AddProgmanItem
line in the Setup.stf file.
NOTE: This applies to Microsoft Office for Windows 95 only under Microsoft
Windows NT with the standard user interface.
WARNING: This modification may not be supported by Microsoft Technical
Support (MTS). MTS will support some modifications to a BACKUP copy of the
Setup.stf file. Note also that while MTS may help customers modify specific
lines of an STF, we will not rewrite the entire file in order to achieve a
desired configuration. As a general rule, support is limited to options
that can normally be changed by a user during a standard installation of
the application.
The AddProgmanItem line has the following format (note that the headers in the table below are for illustration purposes only. They do not appear in the actual .stf file).
Office Directory, Program Directory, Program File, Working Directory
--------------------------------------------------------------------
'MSOffice<Microsoft Office>,MSExcel<Microsoft
Excel>,%s\EXCEL.EXE,C:\MyName<C:\MyName>,,,,,,
NOTE: Long file name directory names are enclosed in angle brackets.
Microsoft Office 4.x:
AddProgmanItem, Program Group, Icon Label, Path to .exe, Other
--------------------------------------------------------------------------
AddProgmanItem,"Microsoft Office","Microsoft Query","%s\MSQUERY.EXE",""
C:\Myname<C:\Myname>In Office 4.x, you specify the working directory for a program in the last parameter (the Other parameter). This parameter can contain several items. For example, if you want to set the working directory for Microsoft Query to the x:\User\Data directory, make the following modification to the AddProgramItem line:
AddProgmanItem "Microsoft Office","Microsoft Query","%s\MSQUERY.EXE", ",,,,X:\User\Data"
Q119357 OFF: "How to Create a Custom Installation Script" (WC1046)
Additional query words:
Keywords : kbsetup
Version : 4.20 4.30 7.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: May 20, 1999