Novell Home

One Suite, Two Platforms, And a Little Registry Magic

Novell Cool Solutions: Tip

Digg This - Slashdot This

Posted: 4 May 1999
 

The very first Feature Article we posted on this site explained, much to everyone's delight, how to distribute Microsoft Office97. Admins everywhere seemed to chant their thanks almost in zen-like unison. Glad we could help!

In that article we noted (but didn't solve) the issue of a font problem that occurs as a result of distributing to a mixture of Windows 95 and Windows NT boxes. By popular demand, this week's Tip shows you a little "magic" to solve that problem.

What's the Problem?
The font problem arises because each platform looks for font information under different keys in the Registry. This means that if you distributed an Office97 Application object to a Windows NT 4.0 desktop that was created on Windows 95, Windows NT tried to get font information from:

HKEY_LOCAL_MACHINE
Software
Microsoft
Windows NT
CurrentVersion
Fonts

. . .when the information is actually stored in

HKEY_LOCAL_MACHINE
Software
Microsoft
Windows
CurrentVersion
Fonts

The only difference is "Windows" vs. "Windows NT." But the result is that the application cannot find font information and displays an error message. We don't like error messages, so let's apply some magic.

Registry Magic
In a nutshell, you are going to use an Office97 Application object that works flawlessly on the platform on which it was created and export that Application object to an .axt file. You will then edit the Application object and change the appropriate font Registry information, save the file, and create a new Application object from the modified .axt file.

1. Start nwadmn32.exe and select the Office97 Application object.

2. Choose Tools > Application Launcher Tools > Export Application Object.

3. Select the "Export Complete Application Object" radio button and click Next.

4. Click the Browse button, or type in the filename and location. Remember to export with the ".axt" extension.

5. Click Finish to create the .axt file.

6. Start a text editor program (we use WordPad) and open the .axt file you just created.

Note: The file will be pretty large, so be patient.

7. If the original Application object was created for Windows 95, search for "Windows\CurrentVersion\Fonts". If, however, the original Application object was created for Windows NT, search for "Windows NT\CurrentVersion\Fonts".

The heading of the section that this key is in is "[Registry Value Create]".

8. Scroll down to look at all of the font-related Registry entries. They should look like this:

[Registry Value Create]
Type=String
Flag=Write Always
Key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows\CurrentVersion\Fonts
Name=Arial Black (TrueType)
Value=Ariblk.ttf

9. Select all of these entries (they should be in sequence), copy them, and paste them right after the original entries.

10. Search and replace on the new section of font entries and either replace "Windows" with "Windows NT" or vice versa, depending on your point of reference.

11. Save the file in text mode and create a new Application object from this edited .axt file.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell