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

ID: Q238483


The information in this article applies to:


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:


MORE INFORMATION

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.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

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:

Q195950 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:
  1. Open the UsrLogon.cmd file, located in the c:\WTSRV\System32 folder. Add the following lines to the UsrLogon.cmd file:


  2. 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.

  3. 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:



  4. HKEY_LOCAL_MACHINE\Software\Microsoft\ClipArt Gallery
  5. Open Windows Explorer and browse to and double-click the Clip Gallery executable. It is typically located in the following location:


  6. c:\Program Files\Common Files\Microsoft Shared\Artgalry\Artgalry.exe
    NOTE: This will force Clip Gallery to be re-registered.

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



  8. HKEY_LOCAL_MACHINE\Software\Microsoft\ClipArt Gallery\2.0
    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.

  9. Set the values of all .cag files on the system to Read-only so they cannot be modified.


    1. On the Windows Start menu, point to Find and click Files or Folders. In the Named box, type *.cag and click Find Now.


    2. On the Edit menu, click Select All. On the File menu, click Properties. Click to select the Read-only check box. Click OK.


    3. 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.


    4. 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.


    5. Note the In Folder location for each .cag file found.


  10. Open Microsoft Clip Gallery, and import all Clip Gallery packages.


    1. Start Microsoft Word.


    2. On the Insert menu, point to Picture, and click Clip Art.


    3. Click Import clips.


    4. In the Files of Type list, select Clip Gallery Packages.


    5. Browse to the location, and select of one of the .cag files found in step 5e.


    6. Click Open.


    7. Repeat steps c through f until all .cag files are imported.


    8. 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.
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          : kbdta kbclip 
Version           : WINDOWS:3.0,4.0,97; winnt:4.0
Platform          : WINDOWS winnt 
Issue type        : kbhowto kbprb 

Last Reviewed: August 5, 1999