安装

  1. 开拓VS2017:工具 –> 扩展和翻新
    –> 联机,搜索Microsoft Visual Studio 2017 Installer
    Projects,如下图:

    图片 1

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631508-240488127.png)


**在搜索中输入:Microsoft
Visual Studio 2017 Installer Projects,搜索结果如下:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631961-1132930659.png)
  1. 下载Microsoft Visual
    Studio 2017 Installer Projects,如下图:

    图片 2

    图片 3

    遵循提醒,关闭全数VS窗口,自动安装,如下图:

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633024-2032820377.png) 

**选择【修改】**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633227-193511756.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633493-32635505.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633727-1291502823.png) 

**安装完成**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633930-1367653316.png) 

 

**看看安装日志,了解下安装过程,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634243-1656513389.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634602-867315868.png) 

安装

  1. 开拓VS2017:工具 –> 扩大和立异–> 联机,搜索Microsoft Visual Studio 2017 Installer
    Projects,如下图:

    图片 4

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631508-240488127.png)


**在搜索中输入:Microsoft
Visual Studio 2017 Installer Projects,搜索结果如下:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631961-1132930659.png)
  1. 下载Microsoft Visual
    Studio 2017 Installer Projects,如下图:

    图片 5

    图片 6

    根据提醒,关闭全数VS窗口,自动安装,如下图:

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633024-2032820377.png) 

**选择【修改】**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633227-193511756.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633493-32635505.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633727-1291502823.png) 

**安装完成**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633930-1367653316.png) 

 

**看看安装日志,了解下安装过程,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634243-1656513389.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634602-867315868.png) 

新建项目

  1. 设置好。打开VS2017,在供给安装的消除方下,起首新建筑和安装装项目,如下图:
**【新建】-【项目】-【已安装】-【模板】-【其他项目类型】-【Visual
studio Installer】,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635040-1524030630.png) 

**选择【setup
project】如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635368-267221676.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635758-1918799959.png) 
  1. 添参与口文件,项目输出,选择消除方案点Add,如图所示:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636086-1321850433.png) 

**弹出项目输出窗口,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636461-60868074.png) 
  1. 创设飞速情势,右键主输出,如下图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636743-1973833163.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637149-203540149.png) 

**对快捷方式重新命名,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637430-816850032.png) 

**讲快捷方式拖到User's
Desktop,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637696-1093298440.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637946-516938019.png) 
  1. 在User’s
    Programs Menu 添加文书夹(你的种类名) –> 双击选汉语件夹
    –>在右侧右击 –> 创立新的迅速格局 –> 选用Applicaiton
    Folder –> 主输出 XXX –> 鲜明,如图:

    图片 7

    图片 8

    图片 9

    点【OK】即可

  1. 最后生成,如图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639180-1167002500.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639461-156230858.png) 
  1. 注意.NET框架,大家注意下,错误音信
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639696-41133240.png) 

**这个信息告诉我们目前打包的.NET框架是4.6.1.与要打包的应用程序不匹配,我们要打包的.NET框架是4.5.2,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640180-832318419.png) 

**于是我们修改.NET框架,修改如下**


**右键打包解决方案-【属性】,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640602-2145777618.png) 

**选择前提条件,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640961-1652402091.png) 

**打开后如下图,看到刚才错误的框架**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641305-1015168722.png) 

**我们修改成与打包方案一样的。框架。看看要打包的项目的.NET框架。如下图**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641727-1949226951.png) 

 

鲜明,同时再重复生成三回即可

新建项目

  1. 安装好。打开VS2017,在急需设置的消除方下,起初新建筑和安装装项目,如下图:
**【新建】-【项目】-【已安装】-【模板】-【其他项目类型】-【Visual
studio Installer】,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635040-1524030630.png) 

**选择【setup
project】如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635368-267221676.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635758-1918799959.png) 
  1. 添出席口文件,项目输出,选用化解方案点Add,如图所示:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636086-1321850433.png) 

**弹出项目输出窗口,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636461-60868074.png) 
  1. 始建急迅方式,右键主输出,如下图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636743-1973833163.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637149-203540149.png) 

**对快捷方式重新命名,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637430-816850032.png) 

**讲快捷方式拖到User's
Desktop,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637696-1093298440.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637946-516938019.png) 
  1. 在User’s
    Programs Menu 添加文书夹(你的门类名) –> 双击选中文件夹
    –>在左侧右击 –> 创立新的飞速格局 –> 选拔Applicaiton
    Folder –> 主输出 XXX –> 鲜明,如图:

    图片 10

    图片 11

    图片 12

    点【OK】即可

  1. 终极生成,如图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639180-1167002500.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639461-156230858.png) 
  1. 注意.NET框架,大家注意下,错误音信
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639696-41133240.png) 

**这个信息告诉我们目前打包的.NET框架是4.6.1.与要打包的应用程序不匹配,我们要打包的.NET框架是4.5.2,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640180-832318419.png) 

**于是我们修改.NET框架,修改如下**


**右键打包解决方案-【属性】,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640602-2145777618.png) 

**选择前提条件,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640961-1652402091.png) 

**打开后如下图,看到刚才错误的框架**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641305-1015168722.png) 

**我们修改成与打包方案一样的。框架。看看要打包的项目的.NET框架。如下图**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641727-1949226951.png) 

 

规定,同时再重新生成二回即可