Microsoft KB Archive/298023

= Content added with a transform is not added in a reinstallation or second installation of Office =

Article ID: 298023

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Office XP Professional Edition
 * Microsoft Office XP Standard Edition
 * Microsoft Office XP Developer Edition
 * Microsoft Office Standard Edition 2003

-



This article was previously published under Q298023



For a Microsoft Office 2000 version of this article, see 229715.

Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



SYMPTOMS
When you reinstall Microsoft Office, either in Maintenance Mode or after you completely remove Office, modifications that you made with a Custom Installation Wizard (CIW) transform are not used.

None of the files, registry keys, added installations, or programs that you included in the transform are reinstalled or run again. For example, if you add a file called Test.txt to your transform, and you run Office Setup for the first time, Test.txt is installed to the specified folder. However, if you manually delete Test.txt and then click Reinstall in Maintenance Mode Setup, Test.txt is not reinstalled.

If you remove Office, Test.txt is not removed. If you then run Setup by using the same transform, Test.txt is not installed on this second installation of Office, even if you manually delete it before you run Office Setup.



CAUSE
Any files, registry keys, shortcuts, or added installations and programs are considered user data. Therefore, to protect any changes that may have been made to these items, the changes are not lost during a reinstallation of Office.



To determine the product code
To find the Product Code for the Office product that you installed, follow these steps:
 * 1) Locate and select the transform that you used with Office Setup.
 * 2) Right-click the transform, and then click Properties on the shortcut menu.
 * 3) Click the Statistics tab in Properties.
 * 4) Look at the first 36 characters, including the dashes (-), between the braces {} listed next to Revision Number.

NOTE: On Microsoft Windows 2000, the Product Code appears on the Summary tab and is called the Revision number.

To force the reinstallation of files, registry keys, and shortcuts
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To force the reinstallation of files, registry keys, shortcuts, and user settings from a transform, follow these steps:  Click Start and then click Run. In the Open box, type regedit and then move to the following key:

HKEY_CURRENT_USER\Software\Microsoft\OfficeCustomizeWizard\2.0\RegKeyPaths

 Select the subkey below RegKeyPaths that matches the Product Code (a GUID) for the Office product that you installed. To determine the Product Code, see the &quot;To Determine the Product Code&quot; section of this article. Delete the value OCWAddedContentWritten_PerUser_Permanent. On the Registry menu, click Exit.</ol>

To force an additional program to run
If you added a program to run after the Office installation, the steps to follow vary, depending on how you configured the program to run when you created your transform.

Determining how the additional program was configured
If you are not sure how the additional program was configured to run, please follow these steps:
 * 1) Start the Custom Installation Wizard (CIW).
 * 2) In the Open the MST File dialog box, select Open an existing MST file, and then browse to your existing transform (.mst) file. Click Next.
 * 3) In the Select the MST File to Save dialog box, click Next.
 * 4) Click Yes when prompted to overwrite the existing MST file.
 * 5) Continue through the CIW dialog boxes until you reach the Add Installations and Run Programs dialog box. Any program that you specified to run with the Office installation will be listed along with its configuration type, for example, [per user] [every time].


 * 1) Click Cancel and then click Yes to quit the CIW.
 * 2) Use the steps outlined in either the &quot;Programs Configured to Run Per User&quot; section or the &quot;Programs Configured to Run Per Machine&quot; section later in this article.

Programs configured to run per user
<ol> Click Start and then click Run.</li> In the Open box, type regedit and then move to the following key:

HKEY_CURRENT_USER\Software\Microsoft\OfficeCustomizeWizard\2.0\RegKeyPaths

</li> Select the subkey below RegKeyPaths that matches the Product Code (a GUID) for the Office product that you installed. To determine the Product Code, see the &quot;To Determine the Product Code&quot; section of this article.</li>  Delete the value that is listed in the following table that matches the configuration for the additional program. <pre class="fixed_text">Additional program configuration                Registry value to delete --- [per user] [every time]      OCWAddedContentWritten_PerUser_Removeable [per user] [first time]      OCWAddedContentWritten_PerUser_Permanent </li> On the Registry menu, click Exit.</li></ol>

Programs configured to run per machine
<ol> Click Start and then click Run.</li> In the Open box, type regedit and then move to the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\OfficeCustomizeWizard\2.0\RegKeyPaths

</li> Select the subkey below RegKeyPaths that matches the Product Code (a GUID) for the Office product that you installed. To determine the Product Code, see the &quot;To Determine the Product Code&quot; section.</li>  Delete the value listed in the following table that matches the configuration for the additional program. <pre class="fixed_text">Additional program configuration                Registry value to delete --- [per machine] [every time]   OCWAddedContentWritten_PerMachine_Removeable [per machine] [first time]   OCWAddedContentWritten_PerMachine_Permanent </li> On the Registry menu, click Exit.</li></ol>

If Office is installed
If Office is installed, you must reinstall Office. To reinstall Office, follow these steps:
 * 1) Click Start, point to Settings, and then click Control Panel.
 * 2) In Add/Remove Programs, double-click the Office 2000 product that you installed.
 * 3) Click Repair Office.
 * 4) Click Reinstall Office, and then click Finish.

If Office is not currently installed, run Office Setup by using the transform you created.

<div class="moreinformation_section">

MORE INFORMATION
When you click Add in the Add Installations and Run Programs dialog box of the CIW, there are four ways to configure the additional program to run. The following table outlines these four different configurations, along with the text that is displayed for each configuration in the Add Installations and Run Programs dialog box. <pre class="fixed_text">Configuration                                  Display text -- Run this program only once per machine + run this program only the first time this      [per machine] [first time] product is installed.

Run this program only once per machine + run this program every time this               [per machine] [every time] product is installed.

Run this program once for each user + run this program only the first time this      [per user] [first time] product is installed.

Run this program once for each user + run this program only the first time this      [per user] [every time] product is installed.

<div class="references_section">