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



The information in this article applies to:

  • Microsoft Clip Gallery 4.0 for Windows
  • Microsoft Clip Gallery 3.0
  • Microsoft Office 97 for Windows
  • Microsoft Publisher 98
  • the operating system: 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:
  1. 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.

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

    HKEY_LOCAL_MACHINE\Software\Microsoft\ClipArt Gallery

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

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

    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.

  5. 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.
  6. 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.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.

Modification Type:MinorLast Reviewed:8/18/2005
Keywords:kbhowto kbprb KB238483