| View previous topic :: View next topic |
| Author |
Message |
behdad
Joined: 22 Nov 2006 Posts: 16 Location: Australia
|
Posted: Thu Nov 23, 2006 4:49 am Post subject: DLL Registrations |
|
Hello,
I would like to know if there is a way that I could place the RanorexCore.dll and RanorexNet.dll under a different directory than my test executable?
I tried to use regasm and regsvr32 but no luck.
Does the ranorex dlls have to be in the same directory of the test dlls?
Thanks in advance for you help.
Cheers,
Behdad. |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Thu Nov 23, 2006 11:38 pm Post subject: |
|
| behdad wrote: |
| Does the ranorex dlls have to be in the same directory of the test dlls? |
No, you can do the following if you want the dlls only ones:
C++
You need only the RanorexCore.dll.
Copy the RanorexCore.dll into the Windows\System32 directory.
Python
You need the RanorexCore.dll and RanorexPython.dll.
Copy the Binaries RanorexCore.dll and RanorexPython.dll in the DLLs directory of the Python installation (e.g. C:\Python24\DLLs).
.NET
You need the RanorexCore.dll and RanorexNet.dll.
Copy the RanorexCore.dll into the Windows\System32 directory.
We don't suggest to put the RanorexNet dll into the GAC (Global Assembly Cache), it'a better way to add to the References and deploy it together with the test dlls.
Jenö Herget
Ranorex Team |
|
| Back to top |
|
 |
tkondal
Joined: 03 Nov 2006 Posts: 24
|
Posted: Wed Nov 29, 2006 3:50 pm Post subject: |
|
Actually, I have been using RanorexPython with custom paths.
Here are the steps in Python:
1. Create a .pth file in C:\Python24\Lib\site-packages
e.g. C:\Python24\Lib\site-packages\Ranorex.pth
2. Edit the file Ranorex.pth with a text editor and add the path to the folder containing the Ranorex DLLs.
e.g. D:\MyCustomPythonLibs\Ranorex\
3. Create an empty file called __init__.py in your DLL direcrory and it's parent.
e.g. D:\MyCustomPythonLibs\__init__.py
D:\MyCustomPythonLibs\Ranorex\__init__.py
4. You should be able to call import the module in your script as:
Code: click into code to enlarge
import MyCustomPythonLibs.Ranorex.RanorexPython as Ranorex;
|
|
| Back to top |
|
 |
behdad
Joined: 22 Nov 2006 Posts: 16 Location: Australia
|
Posted: Tue Dec 05, 2006 1:27 am Post subject: |
|
Thanks Jeno.
Also thanks tkondal. I will try to see if I can do the same in .Net.
Cheers,
Behdad. |
|
| Back to top |
|
 |
|