Microsoft KB Archive/164536

= OFF97: Default Documents Folder Is Not Changed by NIW =

Article ID: 164536

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Office 97 Standard Edition
 * Microsoft PowerPoint 97 Standard Edition
 * Microsoft Word 97 Standard Edition
 * Microsoft Excel 97 Standard Edition
 * Microsoft Access 97 Standard Edition
 * Microsoft Office Binder 97
 * Microsoft Office 97 Professional Edition

-



This article was previously published under Q164536



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.



SYMPTOMS
When you run the Microsoft Office 97 Setup program, the default folder that is used to store your documents is not changed. This is true even when you change the default folder for documents in the Microsoft Office Network Installation Wizard (NIW).



CAUSE
This problem occurs because the Microsoft Office 97 Setup program does not change the default folder for documents if the folder already exists on the computer or if a registry entry refers to a default documents folder.

For example, if the current default folder for documents is already set to C:\My Documents, changing the default folder to C:\Data in the Network Installation Wizard, and then running Microsoft Office 97 Setup does NOT change the default folder to C:\Data.



WORKAROUND
To work around this behavior, use version 2.1 of the Network Installation Wizard and the method that applies to your configuration. To determine which method to use, see the "Determining Which Method to Use" section. If you're still unsure of the method to use, use method 1.

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

For more information about obtaining the Network Installation Wizard, please see the following article in the Microsoft Knowledge Base:

232967 OFF: How to Obtain the Network Installation Wizard

When to Use Method 1
Use method 1 if the following conditions are true:
 * You are using Microsoft Windows 95 with or without user profiles.

-and-


 * The person who uses the Microsoft Office programs is not necessarily the same person who runs the Office Setup program.

-or-
 * You are using Microsoft Windows NT versions 3.51 or 4.0.

-and-


 * The person who uses the Microsoft Office programs is not necessarily the same person who logs on to the workstation and runs the Office Setup program.

NOTE: The previous statement applies to the following scenarios:


 * The person who logs on to the workstation as Local Administrator to install Microsoft Office is not the person who will use Microsoft Office on the workstation.


 * The person logs on to the workstation as Local Administrator to install Microsoft Office is not necessarily the ONLY person who will use Microsoft Office on the workstation.


 * Microsoft Office was installed by a service that logs on to the workstation as Local Administrator and runs in background mode. For example, Package Command Manager (PCM) in Microsoft System Management Server does this.

When to Use Method 2
Use method 2 if the following conditions are true:
 * You are using Microsoft Windows 95 without user profiles.

-and-


 * You want all the Office programs to use the same default documents folder.

METHOD 1: YOU ARE USING WINDOWS 95 WITH USER PROFILES OR WINDOWS NT
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 cannot 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.

To use method 1, follow these steps:  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 six 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 Excel\Microsoft Excel

Value name:   DefaultPath

Value data:   

Key 2 -

Item          Value ---

Root:         HKEY_LOCAL_MACHINE

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\New User Settings Word\Options

Value name:   DOC-PATH

Value data:   

Key 3 -

Item          Value ---

Root:         HKEY_LOCAL_MACHINE

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\New User Settings PowerPoint\Recent Folder List\Default

Value name:   DefaultPath

Value data:   

Key 4 -

Item          Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Excel\Microsoft Excel

Value name:   DefaultPath

Value data:   

Key 5 -

Item          Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Word\Options

Value name:   DOC-PATH

Value data:   <folder you want to use for documents>

Key 6 -

Item          Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\PowerPoint Recent Folder List\Default

Value name:   DefaultPath

Value data:   <folder you want to use for documents>

NOTE: All settings can use the same folder name for "Value data" (for example, H:\Data or H:\Data\Word). </li> After you add the entries to the registry, click Next.</li> 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, enter the file names for your customized Setup files, and then click Finish.</li></ol>

Additional Steps for PowerPoint
Changing the PowerPoint default documents location requires that you make additional modifications to the STF file. 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.

To modify the STF file and change the PowerPoint default documents location, follow these steps: <ol> Use the steps in the "Opening the STF for Editing" section to open the STF file.</li>  Scroll to the end of the worksheet to the custom entries you added. Search column C for the PowerPoint entry for the HKEY_LOCAL_MACHINE entry. Change the entry in column F to the following:

<pre class="fixed_text">  "LOCAL", "Software\Microsoft\Office\8.0\New User Settings\PowerPoint Recent Folder List\Default", "", <Documents Folder>

including the quotations marks. Note that <Documents Folder> is the disk drive and folder name. For example, type the following

"H:\Data"

-or-

"H:\Data\PowerPoint"

</li>  Search column E for the PowerPoint entry for the HKEY_CURRENT_USER entry. Change the entry in column F to the following

<pre class="fixed_text">     "CURRENT", "Software\Microsoft\Office\8.0\PowerPoint\Recent Folder      List\Default", "", <Documents Folder>

including the quotations marks. Note that <Documents Folder> is the disk drive and folder name. For example, type the following

"H:\Data"

-or-

"H:\Data\PowerPoint"

</li> On the File menu, click Save.</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 folder for documents is automatically changed.

METHOD 2: USING WINDOWS 95 WITHOUT USER PROFILES
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 cannot 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.

To use method 2, follow these steps: <ol> Start the Network Installation Wizard. Open the LST file or STF file that you want to modify.</li> In the Primary Location dialog box, specify the primary location for Microsoft Office 97. Note that it is not necessary to change anything in this dialog box. Click Next.</li> In the Documents Folder dialog box, type the name of the default folder that you want to use to store documents (for example, C:\Data). Then, click Next.</li> Proceed through the rest of the Network Installation Wizard until you reach the Add Registry Entries dialog box.</li>  Add the following three registry keys and the associated values to the registry. To add a key, click Add. In the Add dialog box, specify the values, and then click OK.

<pre class="fixed_text">     Key 1 -

Item          Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Windows\CurrentVersion\Explorer Shell Folders

Value name:   Personal

Value data:   <folder you want to use for documents>

Key 2 -

Item          Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Windows\CurrentVersion\Explorer User Shell Folders

Value name:   Personal

Value data:   <folder you want to use for documents>

Key 3 -

Item          Value ---

Root:         HKEY_LOCAL_MACHINE

Data type:    SZ

Key:          SOFTWARE\Microsoft\Windows\CurrentVersion\explorer User Shell Folders

Value name:   Personal

Value data:   <folder you want to use for documents> Note that all three keys must use the same folder name for "Value data" (for example, C:\Data). This is the same name you specify in step 3. </li> After you add the three keys to the registry, click Next.</li> 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, enter the file names for your customized setup files, and then click Finish.</li></ol>

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

Method 1
<ol> Open Access 97. <ol style="list-style-type: lower-alpha;"> <li>On the Tools menu click Options and click the General Tab.</li> <li>Set the Default Database Folder option to the desired setting.</li> <li>Exit Access 97.</li></ol> </li> <li>Open Binder 97. <ol style="list-style-type: lower-alpha;"> <li>On the File menu, click Binder Options</li> <li>Set the Default Binder File Location field to the desired location.</li> <li>Exit Binder 97.</li></ol> </li> <li>Export registry keys by doing the following: <ol style="list-style-type: lower-alpha;"> <li>On the Start menu, click Run.</li> <li>In the "Open" box, type Regedit and then click OK.</li> <li>In the Registry Editor, select the following keys: <ol> <li>On the Start menu, click Run.</li> <li>In the "Open" box, type Regedit and then click OK.</li> <li> In the Registry Editor, select the following keys:

<pre class="fixed_text">     [HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Binder]

[HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Access\Settings] </li></ol> </li> <li>Click "Export Registry File", on the Registry menu and verify that you have selected the correct branch by checking the "Selected Branch" box in the "Export Range" section of the dialog.</li> <li>Select a folder to save the Registry Key to.</li> <li>Type a name for the file that will hold the Registry Key in the File Name box and then click Save.</li></ol> </li> <li>Run the Network Installation Wizard version 2.1.</li> <li>In the "Add Registry Keys" dialog box choose the Add button.</li> <li> For Binder do the following:

<pre class="fixed_text">        Item           Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Binder

Value name:   Default Directory

Value data:   <folder you want to use for documents> </li> <li> For Access, do the following:

<pre class="fixed_text">        Item           Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Access\Settings

Value name:   Default Database Directory

Value data:   <folder you want to use for documents> </li> <li>Office 97 setup will automatically write the registry keys above so that once you launch Binder 97 and Access 97 they will both default to their respective locations.</li></ol>

Method 2
<ol> <li>Run the Network Installation Wizard version 2.1.</li> <li>In the "Add Registry Keys" dialog box choose the Add button. <ol style="list-style-type: lower-alpha;"> <li> For Binder do the following:

<pre class="fixed_text">        Item           Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Binder

Value name:   Default Directory

Value data:   <folder you want to use for documents> </li> <li> For Access 97, in the "Add Registry Keys" dialog box, choose the Add button and input the following values:

<pre class="fixed_text">        Item           Value ---

Root:         HKEY_CURRENT_USER

Data type:    SZ

Key:          Software\Microsoft\Office\8.0\Access\Settings

Value name:   Default Database Directory

Value data:   <folder you want to use for documents> </li></ol> </li> <li>Office 97 setup will automatically write the registry keys above so that once you launch Binder 97 and Access 97 they will both default to their respective locations.

Note: Information applies to default users only.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
The Microsoft Office Network Installation Wizard version 2.1 allows you to modify the Setup files (.lst, .stf, and .inf files) that are used in an administrative installation of Microsoft Office. You can customize many aspects of the Microsoft Office installation process, including the name of the default folder that you want to use to store your documents. In Microsoft Windows 95, the default folder for storing documents is the My Documents folder. If this folder exists on the computer or a Microsoft Windows registry key exists that points to a default documents folder, the Microsoft Office 97 Setup program does not change the setting unless you use one of the workarounds in this article.

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> <li>Make a backup copy of the original .stf file.</li> <li>Open the document in Microsoft Word.</li> <li>On the Edit menu, click Replace. In the Find What box, type the following:

^t

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

In the Replace With box, type the following:

^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> <li>On the File menu, click Save As. In the Save As Type box, select 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> <li>Click Start, point to Programs, and then click Windows Explorer.</li> <li>On the View menu, click Options, and then click the View tab.</li> <li>Clear the "Hide file extensions for known file types" box. Click OK.</li> <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> <li>In Microsoft Excel, open the .stf file you want to edit.</li> <li>In the Text Import Wizard dialog box, click Next twice to proceed to the Step 3 of 3 dialog box.</li> <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> <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: OFF97 STF file

Keywords: kbprb kbsetup KB164536

-

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

© Microsoft Corporation. All rights reserved.