Moving the AcuCOBOL-GT bin directory

0 Likes

This article explains how to create the two directories Microsoft.VC80.MFC and Microsoft.VC80.CRT containing C libraries in order to move the AcuCOBOL-GT bin from its original location.

Problem:

AcuCOBOL-GT products require Microsoft Visual C libraries to run correctly. Original setup used to install these libraries directly in C:\Acucorp\AcucblXXX\AcuGT\bin directory. Since the release of version 8.0.0, these C libraries must be located in C:\WINDOWS\WinSxS and are strictly connected to the directory in which Acu products have been installed. This means that moving the bin directory from the original path can cause runtime to not start properly. This is a big issue for developers who want to create their own installer and for who is used to locate runtime in a shared directory over a network.

Resolution:

This may be solved in two ways.


  1. Download the Microsoft Visual C 2005 Redistributable Package (x86) from Microsoft's web site.

    For this solution, the redist.exe must be run over all the machines that try to work with shared runtime.

  2. Put the right C libraries directly into the bin directory.

This article focuses on the second solution, which lets you put your libraries directly in the bin directory:


  1. Identify which library version is needed:
    1. Open an Acu library (for example: acme.dll) using a text editor.
    2. Search for the word manifest

      The lines that follow this word show the version:

       
         
            
         
      
  2. Open C:\WINDOWS\WinSxS and determine the directories that refer to the identified version.

    The directory names are typically composed of the processor type, followed by the library type, then by a code, the version completed with subversion, and finally another code.

    For example, a C libraries set of version 8.0.50727.762 for Intel 32 bit has these directory names:


    • x86_Microsoft.VC80.MFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_3bf8fa05
    • x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700
    Important: In some cases it is possible to find different processor releases (x86, amd64) so it's important to locate the right one. This is also true of the version; for example, 8.0.50727.762 and 8.0.50727.4053 are not the same.
  3. Copy the two directories into the Acu bin directory, renaming them respectively as Microsoft.VC80.MFC and Microsoft.VC80.CRT.
  4. Open the C:\WINDOWS\WinSxS\Manifests directory and note the two .manifest files, for example:
    • x86_Microsoft.VC80.MFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_3bf8fa05.manifest
    • x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700.manifest
  5. Copy the two .manifest files into the newly created directories.
    For example:
    • The file x86_Microsoft.VC80.MFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_3bf8fa05.manifest should be copied to the Microsoft.VC80.MFC directory and must be renamed Microsoft.VC80.MFC.manifest.
    • The file x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700.manifest should be copied to the Microsoft.VC80.CRT directory and must be renamed Microsoft.VC80.CRT.manifest.

Now any 8.x Acu directory can be moved in another location or run via a shared directory and work properly.




Date:
 
Name:
 
Description of change: 
Date:
 
Name:
 
Description of change: 

Old KB# 14870
Comment List
Related
Recommended