Sorry I never got back to you, but I worked out what causes this: I had run a copy of Visual studio 2005 (90 day trial) and then uninstalled it. I think when VS is removed from a windows machine then it causes this problem.
I'm going to try on another PC. Like you I never get this error with any other file on my system. I'm generating a .exe file and I'm using the Java version of the product.
FOLLOW US
Get the latest news in Application Packaging