how to embed manifest along with exe available in setup project? - TechRepublic
Question
May 18, 2010 at 03:39 AM
sakaleswararao

how to embed manifest along with exe available in setup project?

by sakaleswararao . Updated 16 years, 1 month ago

My manifest file contains below information:




















(1st manifest file)

I have a below post build event to embed the manifest along with application exe in my project:

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

I do have a setup project to create the installer. I built the installer and installed in Win 7 machine and ran the application which throws error.
I?ve copied my application.exe file to my desktop then opened in visual studio and exported the manifest info. This manifest info looks like below:










(2nd manifest file)

By comparing these, I found that the dependency tag is missing in installers exe manifest.

Now I?ve checked with my project there were no build errors. Also it shows the post build event executed successfully. To confirm with, I?ve opened the exe (available in project?s debug folder) in visual studio then exported the manifest. This shows exactly my 1st manifest file only. If I copy this exe to windows 7 machine then my application started functioning correctly.

My question is: how do I embed the manifest along with my exe available in setup project also?

This discussion is locked

All Comments