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.
DLL Registrations
No, you can do the following if you want the dlls only ones:behdad wrote:Does the ranorex dlls have to be in the same directory of the test dlls?
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
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:
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: Select all
import MyCustomPythonLibs.Ranorex.RanorexPython as Ranorex;