08-26-2022 01:54 AM
I know this request is quite old but would like to know if anyone successfully converted the exe file to vi (2013 labview exe file). I have exe file but would like to check the code, and I tried several ways but no success,,it would be great if anyone can help me to convert this back to vi.
08-26-2022 02:04 AM
There is generally no way to revert a compiled exe back to the VI code. While the VIs are indeed embedded in the executable and could be extracted with some trouble, they normally only contain the compiled binary code (and for the VIs that are configured to show their front panel at any time also their front panel). All other VIs do not even have their front panel present anymore, and none has their diagram.
There is a very very faint chance that the person who created that executable did select to build a debug version of it, in which the Application Builder will not remove the diagrams and front panels from the VIs before putting them into the executable but that is a non default setting and usually only done in very specific cases and almost never when building an executable for release to customers, as it is meant for debugging purposes. It makes the resulting executable considerably larger and that alone is already reason enough for most to not bother about that setting unless it is really needed. Also the average software manufacturer usually likes that his "precious IP" isn't on the street that way (another slang for saying that they do not want outsiders to be able to see their messy code 😁).
08-26-2022 03:28 AM - edited 08-26-2022 03:38 AM
It's possible to get (some) VIs without diagram from the exe.
It's possible (if no countermeasures where taken) to set VI's input values run it and read the output values by injecting VI's into the exe...
This is tedious, perhaps even illegal.
There's no way you can get any code from the exe that you can use for development.