BLD:E0017

PE file %s is invalid or damaged

An error occurred while InstallMate tried to update the Setup.exe stub in order to set its properties. As a result, the package cannot be built.

Parameters

%s
Path of the stub file that caused the error

Background information

During the build process, InstallMate must set some properties in the Setup.exe stubs of the installation package (for example, it sets the VERSIONINFO information to the product information of your project). This fails if the Setup.exe stub does not have the expected format.

Solution

Verify that you use the correct stub set in the package's Stub set attribute and that it was installed as part of the current InstallMate release. If that appears to be correct, then the actual stub files (stored in the InstallMate\Stubs folder) may be damaged. Try re-installing InstallMate to resolve this problem.