Microsoft KB Archive/238483

= CG: How to Run Microsoft Clip Gallery on a Windows Terminal Server =

Article ID: 238483

Article Last Modified on 8/18/2005

-

APPLIES TO


 * Microsoft Clip Gallery 4.0
 * Microsoft Bookshelf 1993 Standard Edition
 * Microsoft Office 97 Standard Edition
 * Microsoft Publisher 98 Standard Edition
 * Microsoft Windows NT 4.0

-



This article was previously published under Q238483



SUMMARY
When you install Microsoft Clip Gallery on a Windows Terminal Server, the Clip Gallery database is shared, and can only be used by one user at a time. When more than one user attempts to use the Clip Gallery at a time, they will receive the following message:

The Clip Gallery is already running. You can run only one instance of Clip Gallery at a time.

This article will attempt to help you work around the drawbacks to sharing the Clip Gallery database:
 * The error message that is given when more than one user attempts to access the clip gallery at the same time.
 * On Terminal Server, all user imported and custom clips are shared by all Clip Gallery users.



MORE INFORMATION
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

NOTE: These steps require that you have mapped each users Home directory (Profile) folder to a drive letter (Root Drive). For example, W:\ may represent %Homedrive%%Homepath%. For additional information about the Root Drive in Windows Terminal Server, please refer to the following article in the Microsoft Knowledge Base:

195950 How and Why ROOTDRIVE Is Used on Windows Terminal Server

To setup your Terminal Server so that Clip Gallery can be used by multiple users, follow these steps:  Open the UsrLogon.cmd file, located in the c:\WTSRV\System32 folder. Add the following lines to the UsrLogon.cmd file:Clip Gallery 3.0

If Exist "%Homedrive%Homepath%\Windows\artgalry.dmy Goto ArtGal:

Copy %SystemRoot%\Artgalry.cag %Homedrive%%Homepath%\Windows > NUL:

Copy NUL: %Homedrive%%Homepath%\Windows\artgalry.dmy > NUL: attrib +h %Homedrive%%Homepath%\Windows\artgalry.dmy > NUL:


 * ArtGal

Clip Gallery 4.0

If Exist "%Homedrive%Homepath%\Windows\artgalry.dmy Goto ArtGal:

Copy "%programfiles%\Common Files\Microsoft Shared\Artgalry\Artgal40.cag" %Homedrive%%Homepath%\Windows > NUL:

Copy NUL: %Homedrive%%Homepath%\Windows\artgalry.dmy > NUL: attrib +h %Homedrive%%Homepath%\Windows\artgalry.dmy > NUL:


 * ArtGal

NOTE: This step creates a new copy of the main Clip Gallery database (Artgalry.cag) for each user of the Terminal Server when they log on for the first time after these changes are made.

 On the Windows Start menu, click Run. Type Regedit, and click OK. Locate and delete the following key from the Windows registry, then close the Registry editor:

 Open Windows Explorer and browse to and double-click the Clip Gallery executable. It is typically located in the following location:

c:\Program Files\Common Files\Microsoft Shared\Artgalry\Artgalry.exe

NOTE: This will force Clip Gallery to be re-registered.

 On the Windows Start menu, click Run. Type Regedit, and click OK. Locate the following key in the Windows registry editor:

Select the Database value on the right side. On the Edit menu, click Modify, and change the value to:

w:\Windows\artgalry.cag

NOTE: Where w:\ is the users Root Drive.

 Set the values of all .cag files on the system to Read-only so they cannot be modified.  On the Windows Start menu, point to Find and click Files or Folders. In the Named box, type *.cag and click Find Now.</li> On the Edit menu, click Select All. On the File menu, click Properties. Click to select the Read-only check box. Click OK.</li> For Clip Gallery 3.0: Locate and select the file Artgalry.cag. On the File menu, click Properties. Click to clear the Read-only check box.</li> For Clip Gallery 4.0: Locate and select the file Artgal40.cag. On the File menu, click Properties. Click to clear the Read-only check box. Click OK.</li> Note the In Folder location for each .cag file found.</li></ol> </li> Open Microsoft Clip Gallery, and import all Clip Gallery packages. <ol style="list-style-type: lower-alpha;"> Start Microsoft Word.</li> On the Insert menu, point to Picture, and click Clip Art.</li> Click Import clips.</li> In the Files of Type list, select Clip Gallery Packages.</li> Browse to the location, and select of one of the .cag files found in step 5e.</li> Click Open.</li> Repeat steps c through f until all .cag files are imported.NOTE: This last step (6) will only have to be performed this one time. This process will add the selected .cag files (and their associated previews) for all users of the Terminal Server.</li></ol> </li></ol>

Now, all users of the Terminal Server will be able to run Clip Gallery at the same time, and each user will have their own Clip Gallery database.

Additional query words: termserv terminalserver ts wts cag cg4 cg3 clipgallery clipgal artgallery artgal powerpoint word office 97 publisher 98 pub ppt wd off97 wd97 ppt97 pub97 pub98 inserting errors sharing environment os shared

Keywords: kbhowto kbprb KB238483

-

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

© Microsoft Corporation. All rights reserved.