troubleshooting Question

Having 2 similar programs in one Computer

Avatar of Zaki Z
Zaki Z asked on
ProgrammingWindows BatchShell Scripting
4 Comments1 Solution294 ViewsLast Modified:
Hi there,
I was wondering if someone can help me, We recently upgraded an engineering application by the name RAM Structural System 11.3 to RAM Structural 12.1. This works fine

But recently I have a situation and one of the users needs both the applications in one computer. I am not sure how to do that. I have got some instructions from the vendor but I want to make sure it works. Also the problem is the users are only power user on their computers as we do not allow admin rights.

If some one with programming background can make the batch file will be very helpful.

The instructions are below.
The RAM Structural System is controlled by the RamManager.exe program. This program references a file on the windows directory (or the WinNT directory if that is the current operating system) called ramis.ini. This file stores all of the defaults as well as the path for which the Ram Manager will find the other module executables (e.g. RAM Modeler.exe). In order to run two different versions of RAM on one computer, it is therefore necessary to have two versions of the ramis.ini file as well.

When the program runs, several application extensions are referenced. These various .dll files must be registered for the program to run properly. Note, these .dll files are new additions to the program since v8 only.

In order to have two versions of the program running at one time you must follow these steps:

1.      Install one version the RAM Structural System (if it is not already installed).
2.      Make a copy of the ramis.ini file and give it a new name related to the existing version of RAM currently loaded on your machine (e.g. ramis80.ini).
3.      Install the new version of RAM and be sure to put the program into a different directory than the existing one from the first installation (e.g. c:\Ram81\prog).
4.      The ramis.ini file will be modified during the installation to recognize this new location for the program executables. Make a copy of this new ramis.ini file similar to step two (e.g. ramis81.ini)
5.      Create an extra RAM Manager shortcut on your desktop pointing to the new RamManager.exe file, so that you have one shortcut for each version. Before running a particular version, you need to make sure that the proper ramis.ini file exists in the windows folder and you also need to have the proper .dll files registered. The best way to do this is to create a simple batch file, similar to the one transcribed below. The batch file can swap your ramis.ini files and register the appropriate .dll files:


regsvr32  c:\Ram80\Prog\RAMConcreteColumn.dll /s
regsvr32  c:\Ram80\Prog\RAMConcreteBeam.dll /s
regsvr32  c:\Ram80\Prog\RAMDataAccess.dll /s
regsvr32  c:\Ram80\Prog\RAMConcAnalysis.dll /s
regsvr32  c:\Ram80\Prog\RAMConcColPMM.dll /s
regsvr32  c:\Ram80\Prog\Diagram.dll /s
regsvr32  c:\Ram80\Prog\RamFE.dll /s
regsvr32  c:\Ram80\Prog\SSSecurity.dll /s
regsvr32  c:\Ram80\Prog\StructMemberPainter.dll /s
regsvr32  c:\Ram80\Prog\RAMGe.dll /s
regsvr32  c:\Ram80\Prog\Space3d.dll /s
regsvr32  c:\Ram80\Prog\TurboDXF.dll /s
regsvr32  c:\Ram80\Prog\gl.dll /s
regsvr32  c:\Ram80\Prog\vmd.dll /s

c:
cd\windows
copy ramis80.ini ramis.ini
exit


This little program registers all of the program .dll files in the Ram80\Prog directory, then copies the file ramis80.ini over the file ramis.ini as desired. Note that the directory to change to will be WinNT rather than windows on machines with that operating system or Windows 2000. For each of the regsvr32 commands, be sure to select the patch to your files as installed in steps 1 and 3 above.

ASKER CERTIFIED SOLUTION
Bill Bach
President and Btrieve Guru

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros