Is it possible to embed the rximg file into the compiled exe

Best practices, code snippets for common functionality, examples, and guidelines.
DushkoJ
Posts: 1
Joined: Mon Mar 27, 2017 2:05 pm

Is it possible to embed the rximg file into the compiled exe

Post by DushkoJ » Mon Mar 27, 2017 2:23 pm

In my test suite I have a repository with a few images. When compiling the solution for distribution there's a folder being generated named RepositoryImages, and contains an .rximgres file.

Is it possible to avoid creating this folder and file and embed this content in the executable?

Using Ranorex 5.4.4

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Is it possible to embed the rximg file into the compiled exe

Post by asdf » Tue Mar 28, 2017 3:17 pm

Hi Dushkoj,

These files are needed, when performing a image based action. That means it wouldn't be the best idea to prevent this file to be created.
Furthermore, it is not possible to merge these files into the executable, since this would ruin your image based actions.

Hope this helps.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Is it possible to embed the rximg file into the compiled exe

Post by krstcs » Tue Mar 28, 2017 3:24 pm

First, update to a current version of Ranorex. 5.4.4 is no longer supported. Currently supported versions are 6.1.1 and 6.2.1.

Second, it is not possible to embed the images in the exe file. If you need it all packaged up (such as a ZIP) you should do that right after you build it. This is pretty easily done if you are using a Continuous Integration solution like Jenkins. You can also do it using the POST BUILD action in the project's properties file.
Shortcuts usually aren't...