Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900