Visual Studio 2008 安装项目不再生成 Setup.exe
我有一个 Visual Studio 2008 安装项目,过去编译时会在输出目录中生成一个 Setup.exe 以及 .msi 输出文件。 现在它不再生成我真正需要的Setup.exe。
我是否在没有意识到的情况下更改了项目设置? 我如何让它再次生成它?
I have a Visual Studio 2008 Setup Project that when compiled in the past would generate a Setup.exe in the output directory along with the .msi output file. Now it no longer generates the Setup.exe which I actually do need.
Did I change a project setting without realizing? How do I get it to generate it again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试打开项目属性,单击“先决条件”按钮,然后选中“创建安装程序以安装先决条件组件”。
这是针对 Visual Studio 2005 的,不确定是否适用于 Visual Studio 2008。
Try opening project properties, click Prerequisites button there and check "Create setup program to install prerequisite components".
This is for Visual Studio 2005, not sure if it works for Visual Studio 2008.
1、进入文件菜单> 单击添加> 新项目>现在出现“添加新项目”对话框。
2.选择“Other Project Types”,然后单击“Setup and Deployment”项目,选择“Setup Project”,在名称文本框中给出项目名称,最后单击“OK”。
3.新项目出现在解决方案资源管理器中,例如您指定名称“MyEXE”..它将以该名称显示。
4.右键单击MyEXE> 去查看> 点击“文件系统”
5.可以在三个文件夹下看到“目标机器上的文件系统”
申请文件夹
用户桌面
用户程序菜单
6.选择应用程序文件夹,然后右键单击添加>项目输出>选择主输出,
接下来>>
同样的过程也遵循用户的程序菜单
8.如果您想更改 exe 的制造商名称,只需右键单击该项目,转到属性,
根据您的要求更改属性
9.最后构建新项目 成功构建项目 myEXE(安装程序)将出现在应用程序调试或发布文件夹中(取决于属性设置)
EXE 可用@此位置
当您想在客户端计算机上安装 EXE 时,您应该在该 mc 上安装 .NET Framework,因为,应用程序和控件为 .NET Framework 2.0 版编写的应用程序或控件需要在运行应用程序或控件的计算机上安装 .NET Framework Redistributable Package 2.0 版。
1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.
2.Select “Other Project Types” and click “Setup and Deployment” projects,Choose “Setup Project”give name project name in name text box finally click OK.
3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.
4.right click the MyEXE > go View > click “File System”
5.You can see the “File System on TargetMachine”under three folders
Application Folder
User’s Desktop
User’s Program Menu
6.Select Application Folder and right click Add>Project Output>select Primary output
next >>
same procedure follows the user’s program menu also
8.If you want to change the Manufactures name for exe,just right click the project go to properties
change the properties as per you requirement
9.Finally Build the new project After successfully Build the project myEXE(Setup) will be appear in Application Debug or Release folder(depend upon the properties settings)
EXE available @ this location
When you want to install the EXE on the client machine,you should be installed .NET Framework on that mc because,Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs.