Question
May 16, 2010 at 09:41 PM
sakaleswararao

Unable to embed the manifest along with exe as a post-build event for deploying the setup project.

by sakaleswararao . Updated 16 years, 3 months ago

To embed the additional manifest files along with the exe to work with NT family OS, i’ve used the below command:

“C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\mt.exe” -manifest “$(TargetDir)$(TargetFileName).manifest” -outputresource:”$(TargetPath)”

now i’ve a problem when deploying it as a setup project.

i’ve added the above command in my application post-build event. my project is having one windows project and one setup project to deploy it. i’ve selected to build both the projects all the times i build solution.

i built the solution and installed on the Windows 7 machine, the installation went fine still the error pops up “Unable to find the COM dll”. when i go and see my application release folder i could see the manifest is embedded along with exe where as the installed exe is not having the manifest info of my postbuild event.

here i suspect the setup project is taking the exe before applying the post build event.

how to overcome this issue while building the app.

Revert back for any more information required.

Thanks in advance.

This discussion is locked

All Comments