Microsoft KB Archive/178373

= OFF97: Setting the Default Shared Templates Location =

Article ID: 178373

Article Last Modified on 10/1/2002

-

APPLIES TO


 * Microsoft Office 97 Standard Edition

-



This article was previously published under Q178373



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.



SUMMARY
This article contains instructions for setting the shared templates location using the Network Installation Wizard.

IMPORTANT: Use version 2.1 of the Network Installation Wizard to modify the Microsoft Office Setup files.

To access the Network Installation Wizard on the Web, connect to the following Web site:

http://www.microsoft.com/office/ork/

NOTE: Because the Microsoft Web site is regularly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:

http://www.microsoft.com/

NOTE: Another method of setting the shared workgroup templates location is through a system policy file. For more information about using System Policy Editor to create a policy file, see chapter 7 in the Microsoft Office 97 Resource Kit.



MORE INFORMATION
WARNING: This modification may not be supported by Microsoft. Microsoft support professionals will support some modifications to a BACKUP copy of the Setup.stf file. Note also that while support professionals 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.

NOTE: The following steps work only if you first perform an administrative installation (setup /a) of Office 97 to a server on your network. If you are performing a stand-alone installation using the Office 97 compact disc, you should not use the steps in this article.

Before you perform the following steps, make a backup copy of the Off97pro.stf or Off97std.stf file on your server. Rename the file to Backup.stf and do not open or edit it for any reason.  Start the Network Installation Wizard. Open the LST file that you want to use.

NOTE: The Network Installation Wizard opens the appropriate STF and INF files for editing. Click Next to continue through the wizard until you reach the Add Registry Entries dialog box.  Add the following two keys and the associated values to the registry.

   Key 1 -

Item           Value --

Root:          HKEY_Local_Machine

Data type:     SZ

Key:           Software\Microsoft\Office\8.0\New User Settings Common\FileNew\SharedTemplates

Value name:    SharedTemplates

Value data:    

Key 2 -

Item           Value --

Root:          HKEY_Current_User

Data type:     SZ

Key:           Software\Microsoft\Office\8.0\Common\FileNew SharedTemplates

Value name:    SharedTemplates

Value data:      After you add the settings to the registry, click Next. In the Select Quiet Mode dialog box, select the Quiet Level that you want, and then click Next.</li> In the Save Changes dialog box, type the file names for your customized Setup files, and then click Finish.</li></ol>

Additional Steps to Modify the STF
Before you continue with the steps in this section, see the "Opening the STF for Editing" section in this article for instructions for opening the STF file.

After you follow the instructions for opening the STF in Microsoft Excel, follow these steps to make the necessary changes: <ol>  Scroll to the end of the worksheet to the custom entries you added. Locate the first custom entry and change column F to the following (including the quotation marks):

<pre class="fixed_text">     "LOCAL", "Software\Microsoft\Office\8.0\New User Settings\Common FileNew\SharedTemplates", "", "<Templates Folder>", ""

Note that <Templates Folder> is the disk drive and folder name. For example, you could type the following:

"H:\Templates"

-or-

"H:\Templates\Word"

NOTE: You can use a universal naming convention (UNC) path for the <Templates Folder> setting, but do not include an environment variable. See the following examples:

Correct
"\\Server1\Templates"

Incorrect
"\\Server1\Templates\%UserName%"

NOTE: You can also delete the settings for columns B, C, and D for this row because they are not used. </li>  The second custom entry for the Shared Templates location should read as follows (including the quotation marks):

<pre class="fixed_text">      "CURRENT", "Software\Microsoft\Office\8.0\Common\FileNew SharedTemplates", "", "<Templates Folder>", ""

Note that <Templates Folder> is the disk drive and folder name.

NOTE: You can delete the settings for columns B, C, and D for this row because they are not used. </li></ol>

After you save the changes in the custom STF file, you can use the STF file by using the command line parameters in the last dialog box of the Network Installation Wizard.

When you run Microsoft Office 97 Setup by using the modified STF file, the default shared templates folder is automatically changed.

Opening the STF for Editing
When you open the Microsoft Office Setup Table File (STF), you must use a certain process to avoid damaging the integrity of the file. To do this, follow these steps: <ol> Make a backup copy of the original .stf file.</li> Open the document in Microsoft Word.</li> On the Edit menu, click Replace. In the Find What box, type the following (without the quotation marks):

^t

Note that there is a space after the letter "t."

In the Replace With box, type the following (without the quotation marks):

^t

Click Replace All. Click Close.

NOTE: You cannot use ^t^w in the Find What box because ^w replaces a tab followed by second tab as well as a tab followed by a space. You want to replace only tabs followed by spaces .</li> On the File menu, click Save As. In the Save As Type list, click Text Only (*.txt). The File Name box should contain either:

Off97Pro.stf.txt (for the Office 97 Professional Edition)

-or-

Off97Std.stf.txt (for the Office 97 Standard Edition)

Click Save, and then quit Microsoft Word.</li> Click Start, point to Programs, and then click Windows Explorer.</li> On the View menu, click Options, and then click the View tab.</li> Clear the "Hide file extensions for known file types" check box. Click OK.</li> In the folder in which you saved the .stf file, rename the file to its original file name of:

Off97Pro.stf (for the Office 97 Professional Edition)

-or-

Off97Std.stf (for the Office 97 Standard Edition)

</li> In Microsoft Excel, open the .stf file you want to edit.</li> In the Text Import Wizard dialog box, click Next twice to proceed to the Step 3 of 3 dialog box.</li> In the "Text Import Wizard - Step 3 Of 3" dialog box, under Data Preview, drag the vertical scroll box all the way down and drag the horizontal scroll box all the way to the right. Hold the SHIFT key down, and then click the last column. All of the columns should be selected.</li> Under Column Data Format, click Text, and then click Finish.</li></ol>

For more information about editing the STF file in Microsoft Excel, please see the following article in the Microsoft Knowledge Base:

162796 OFF97: Setup Error 932 After Modifying STF File

Additional query words: admin install workstation network server

Keywords: kbhowto KB178373

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.