无法将清单文件与exe一起嵌入为部署安装项目的构建后事件 [英] Unable to embed the manifest along with exe as a post-build event for deploying the setup project

查看:114
本文介绍了无法将清单文件与exe一起嵌入为部署安装项目的构建后事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要与exe一起嵌入其他清单文件以与NT系列OS一起使用,我使用了以下命令:

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

现在,将其部署为安装项目时遇到了问题.

我已经在我的应用程序构建后事件中添加了以上命令.我的项目有一个Windows项目和一个安装项目来部署它.我一直选择在构建解决方案时都构建两个项目.

我构建了解决方案并将其安装在Windows 7计算机上,但安装仍然很好,但错误仍然弹出无法找到COM dll".当我去查看我的应用程序发布文件夹时,我可以看到清单与exe一起嵌入,因为安装的exe没有我的postbuild事件的清单信息.

在这里,我怀疑安装项目在应用后期构建事件之前正在使用exe.

在构建应用程序时如何解决此问题.

返回以获取所需的更多信息.

预先感谢.

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.

推荐答案

(TargetDir)
(TargetDir)


(TargetFileName).manifest"-outputresource:"
(TargetFileName).manifest" -outputresource:"


(TargetPath)"

现在,将其部署为安装项目时遇到了问题.

我已经在我的应用程序构建后事件中添加了以上命令.我的项目有一个Windows项目和一个安装项目来部署它.我一直选择在构建解决方案时都构建两个项目.

我构建了解决方案并将其安装在Windows 7计算机上,但安装仍然很好,但错误仍然弹出无法找到COM dll".当我去查看我的应用程序发布文件夹时,我可以看到清单与exe一起嵌入,因为安装的exe没有我的postbuild事件的清单信息.

在这里,我怀疑安装项目在应用后期构建事件之前正在使用exe.

在构建应用程序时如何解决此问题.

返回以获取所需的更多信息.

预先感谢.
(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.


这篇关于无法将清单文件与exe一起嵌入为部署安装项目的构建后事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆