Extract files from ranorex app exe file

Ask general questions here.
zshadow
Posts: 28
Joined: Sat Aug 30, 2014 5:17 pm

Extract files from ranorex app exe file

Post by zshadow » Sat Apr 04, 2015 6:46 pm

Hi ,

Does anyone know of a tool that will extract the contents of the ranorex exe file, have tried the UniversaI Extractor tool, but did'nt extract the files.

Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Extract files from ranorex app exe file

Post by odklizec » Sat Apr 04, 2015 7:23 pm

Hi,

What exactly you want to achieve? To restore source files from exe? Ranorex compiled exe is .net based exe. So in a theory, you may try any available .net decompiler. The question is, how useful would be the decompiled result? I don't have any experience with decompiling .net exes, but I'm quite sure you will never get back the original solution structure, especially not recording modules or repository file (if this is what you are after?). This is why it's strongly recommended to use source control system (svn, git, tfs,...). It's the first thing you should setup for any sw development.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

zshadow
Posts: 28
Joined: Sat Aug 30, 2014 5:17 pm

Re: Extract files from ranorex app exe file

Post by zshadow » Sun Apr 05, 2015 12:36 pm

Hi,

The project is under version control but some of the files were'nt commited when the VM crashed. Also how do you include a folder back into project after it was excluded please.

Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Extract files from ranorex app exe file

Post by odklizec » Sun Apr 05, 2015 2:06 pm

As mentioned before, it's unlikely you will get back recording modules or repository file from decompiled exe. You can only hope for cs files and some other files, which are used by MS build. Recording modules and repository are Ranorex specific files, from which are generated cs files. Once lost, there is no automatic way to restore them from cs files. But it should be possible to use cs files as code modules? But again, it all depends on what you get from decompiler.

As for including folder to project, you should be able to add folders/files either via Ranorex Studio or version control system you use? As for Studio, check this post how to add files to project...
http://www.ranorex.com/forum/data-sourc ... tml#p31249
The same should be applicable to folders? Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration