Office: Specifying Working Directory in a Custom Setup ScriptLast reviewed: March 27, 1997Article ID: Q122846 |
The information in this article applies to:
SUMMARYIn 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.
MORE INFORMATIONThe 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).
AddProgmanItem LineMicrosoft Office for Windows 95: Office Directory, Program Directory, Program File, Working Directory
'MSOffice<Microsoft Office>,MSExcel<MicrosoftExcel>,%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",""
Specifying the Working DirectoryIn Microsoft Office for Windows 95, the working directory is the fourth item in the line. Remember that long file names for directories are enclosed in angle brackets. If the directory is the same for both the long and standard length file and directory names, you can place the same statement inside the brackets, for example:
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" Modifying the Setup.stf FileTo open the Setup.stf file and locate the AddProgmanItem line, use the following steps: CAUTION: Microsoft does not support modifications to the .stf file. Be sure to make a backup copy of this file before you attempt to modify it.
For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119357 TITLE : AppNote: "How to Create a Custom Installation Script" (WC1046) |
Keywords : kbsetup kbsetup
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |