Details from *.exe

Ask general questions here.
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Details from *.exe

Post by SanMan » Wed Jan 12, 2011 3:25 pm

Beginners question:

Is it possible to get value from My_App.exe / Details / Product version without that it must be opened?

I have added to repository My_App ContainerDetails retrieved with RanorexSpy, but is it possible to get the version automatically so, that Properties of My_App.exe is not opened?

I tried to get it with:

string version = repo.My_App_exe_Properties.ContainerDetails1.Version.Text;

-> this only works when the Properties of My_App.exe / Details is open...

Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: Details from *.exe

Post by SanMan » Wed Jan 12, 2011 4:05 pm

I got it;

must use FileVersionInfo myFI = FileVersionInfo.GetVersionInfo("yourexe.exe")

Posts: 1
Joined: Thu Mar 21, 2013 11:46 am

Re: Details from *.exe

Post by salmiakk » Thu Mar 21, 2013 12:01 pm


How can you include that version in the final report?
I know I can just use e.g. Report.Info() but is there a way to put this somewhere before the test results? Can it be put in the top section of report where there is Execution time, Computer name, Operating system Windows?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12167
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Details from *.exe

Post by Support Team » Fri Mar 22, 2013 3:13 pm


In general it is possible to customize a Ranorex Report, but you need to know a lot about XML, CSS and JavaScript to get it right. Currently, we do not provide support for customizing Reports in that way.
It would be easier to write the Version of the *.exe file using the Rnaorex.Info() as you mentioned in your post.