Visual Studio 2008安装项目不再生成Setup.exe

时间:2023-01-16 14:28:08

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.

我有一个Visual Studio 2008安装项目,在过去编译时会在输出目录中生成一个Setup.exe以及.msi输出文件。现在它不再生成我实际需要的Setup.exe。

Did I change a project setting without realizing? How do I get it to generate it again?

我没有意识到改变了项目设置吗?如何让它再次生成它?

2 个解决方案

#1


2  

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.

这适用于Visual Studio 2005,不确定它是否适用于Visual Studio 2008。

#2


2  

1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.

1,转到文件菜单>单击添加>新项目>现在出现“添加新项目”对话框。

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.

2.选择“其他项目类型”并单击“设置和部署”项目,选择“设置项目”,在名称文本框中输入名称项目名称,最后单击“确定”。

3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.

3.新项目出现在解决方案资源管理器中,例如,您将命名为“MyEXE”..它将显示此名称。

4.right click the MyEXE > go View > click “File System”

4.右键单击MyEXE> go查看>单击“文件系统”

5.You can see the “File System on TargetMachine”under three folders Application Folder User’s Desktop User’s Program Menu

5.您可以在三个文件夹应用程序文件夹用户的桌面用户的程序菜单下看到“TargetMachine上的文件系统”

6.Select Application Folder and right click Add>Project Output>select Primary output

6.选择Application Folder并右键单击Add> Project Output>选择Primary output

  1. select User’s Desktop richt click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output name to MyEXE
  2. 选择用户桌面richt单击第二个窗口>单击创建新快捷方式>从应用程序文件夹中选择输出文件>将文件名从主输出名称更改为MyEXE

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

8.如果要更改exe的Manufactures名称,只需右键单击项目转到属性

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)

9.最终构建新项目成功构建项目后,myEXE(Setup)将出现在Application Debug或Release文件夹中(取决于属性设置)

EXE available @ this location

EXE可在此位置使用

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.

如果要在客户端计算机上安装EXE,则应在该mc上安装.NET Framework,因为为.NET Framework 2.0版编写的应用程序和控件需要在计算机上安装.NET Framework Redistributable Package 2.0版应用程序或控件运行的位置。

#1


2  

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.

这适用于Visual Studio 2005,不确定它是否适用于Visual Studio 2008。

#2


2  

1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.

1,转到文件菜单>单击添加>新项目>现在出现“添加新项目”对话框。

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.

2.选择“其他项目类型”并单击“设置和部署”项目,选择“设置项目”,在名称文本框中输入名称项目名称,最后单击“确定”。

3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.

3.新项目出现在解决方案资源管理器中,例如,您将命名为“MyEXE”..它将显示此名称。

4.right click the MyEXE > go View > click “File System”

4.右键单击MyEXE> go查看>单击“文件系统”

5.You can see the “File System on TargetMachine”under three folders Application Folder User’s Desktop User’s Program Menu

5.您可以在三个文件夹应用程序文件夹用户的桌面用户的程序菜单下看到“TargetMachine上的文件系统”

6.Select Application Folder and right click Add>Project Output>select Primary output

6.选择Application Folder并右键单击Add> Project Output>选择Primary output

  1. select User’s Desktop richt click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output name to MyEXE
  2. 选择用户桌面richt单击第二个窗口>单击创建新快捷方式>从应用程序文件夹中选择输出文件>将文件名从主输出名称更改为MyEXE

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

8.如果要更改exe的Manufactures名称,只需右键单击项目转到属性

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)

9.最终构建新项目成功构建项目后,myEXE(Setup)将出现在Application Debug或Release文件夹中(取决于属性设置)

EXE available @ this location

EXE可在此位置使用

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.

如果要在客户端计算机上安装EXE,则应在该mc上安装.NET Framework,因为为.NET Framework 2.0版编写的应用程序和控件需要在计算机上安装.NET Framework Redistributable Package 2.0版应用程序或控件运行的位置。