如何在Windows应用程序中创建exe [英] How to create exe in windows Application

查看:96
本文介绍了如何在Windows应用程序中创建exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在Windows应用程序中创建一个项目,最后创建了一个安装文件.运行此exe文件会引发此错误,如何解决.

无法打开此安装程序包.确认该软件包存在并且可以访问它.

我正在使用Visual Studio 2008,SQL Server 2008,Windows XP

Hi,

I am creating a project in windows application finally creating a setup file.Run this exe file this error is raising ,how to solve it.

This installation package could not be opened. verify that the package exists and that you can access it.

I am using Visual studio 2008,Sql server 2008,windows XP

推荐答案

如果您没有以管理员身份运行安装exe,请尝试这样做.如果仍然不能解决问题,请尝试以管理员身份实际登录.
If you''re not running the setup exe as administrator, try that. If that still doesn''t work, try actually logging in as an adminstrator.


此问题可能是由于某些原因造成的.您可以检查这种情况:
1.如果使用Dll或Assembly文件,则必须将所有Dll和Assembly文件嵌入安装程序包"中.
2.如果您使用第三方组件来设计表单,按钮的样式,则必须将所有程序集(Dll)嵌入到EXE文件中.
3.如果使用虚拟化技术,则必须检查所有配置

*对于嵌入的Dll或程序集或其他资源,请在EXE文件附近复制所有此文件.然后使用这些文件创建新的安装文件.

首先,执行EXE文件.如果运行正常,请执行上述解决方案
如果仍然有问题,请说出您的问题.
this problem maby has some reason. you can check this case:
1.if you use from Dll or Assembly file,you must Embaded all Dll and Assembly file in your "Setup Package".
2.if you use of third-part Component for styling of form, button,... you must Embaded all assembly(Dll) to your EXE file.
3.if you use of Virtualization Technique,you must examine all configuration

* for embaded Dll or assembly or another resource, copy all this file near the EXE file. then create new setup file with these files.

first of all, Excute the EXE file. if runing is OK then do above solution
if again has problem, say clear your problem.


这篇关于如何在Windows应用程序中创建exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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