欢迎来到天天文库
浏览记录
ID:18586789
大小:282.00 KB
页数:8页
时间:2018-09-19
《winform安装卸载包制作全解》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1.创建“安装部署项目”如下图:2.添加主输出.打开新建的安装项目,打开“文件系统视图”在左边列表中选中“应用程序文件夹”然后在右边的窗口中“右键”—》“添加项目输出”打开项目输出选择窗口在窗口中选择要安装的winform项目作为主输出。good,noloosening.6.5.2DCSsidewiringtocompletetheenclosureandtheothersideafterthewiringiscompleted,DCSwithintheenclosurewhenthepowermoduleshouldbeloosenedorthepowergoesout.6.6
2、lowvoltagecableterminalmaking6.6.1first3.添加卸载工具打开系统目录C:WINDOWSsystem32找到文件msiexec.exe,复制到刚创建的安装项目文件系统视图的应用程序文件夹中。4.创建用户”程序”菜单在文件系统中选择,然后在右边的窗口创建到主输出的快捷方式和卸载快捷方式(建议建立文件夹)a).卸载快捷方式方法:在右边窗口“右键”—》“创建快捷方式”打开鞋面窗口:选中msiexec.exe,“确定”然后打开卸载快捷方式的“属性”窗口配置Arguments参数值为:/xxxxx-xxxxxx-xxx如下图:/x为命令,xxxx-x
3、xxxxx-xxx为刚才创建的安装项目的产品号,在项目的属性窗口中可找到:good,noloosening.6.5.2DCSsidewiringtocompletetheenclosureandtheothersideafterthewiringiscompleted,DCSwithintheenclosurewhenthepowermoduleshouldbeloosenedorthepowergoesout.6.6lowvoltagecableterminalmaking6.6.1firstb)快捷方式创建方法:与卸载快捷方式类似,选择的主输出不一样而已,且不学要配参数:5.
4、添加安装过程的自定义操作a).现在解决方案中添加一个类库项目:b)在新建项目中添加“安装程序类”:good,noloosening.6.5.2DCSsidewiringtocompletetheenclosureandtheothersideafterthewiringiscompleted,DCSwithintheenclosurewhenthepowermoduleshouldbeloosenedorthepowergoesout.6.6lowvoltagecableterminalmaking6.6.1firstc).在安装程序类中我们就可以进行自己的操作了。通过重写方法:
5、publicoverridevoidInstall(System.Collections.IDictionarystateSaver)和publicoverridevoidUninstall(IDictionarysavedState)6.将自定义操作加入到安装项目中。到此,我们完成了自定义操作部分的处理过程,但还没有将安装类键入到安装项目中。a).打开安装项目的用户操作界面视图,如图:在这里我们可以新增我们一些界面;(在“启动”上“右键”)打开如下对话框:选择自己需要的界面:b)配置参数,这些参数可以在我们刚才新建的安装类中获得。操作如下:good,noloosening.6.
6、5.2DCSsidewiringtocompletetheenclosureandtheothersideafterthewiringiscompleted,DCSwithintheenclosurewhenthepowermoduleshouldbeloosenedorthepowergoesout.6.6lowvoltagecableterminalmaking6.6.1first打开我们新建的界面属性页面这里配置参数名称.7.完成将我们自定义的安装类接入到安装过程。及相关参数数据的传递。a),将我们新建的类库作为主输出添加到安装项目中。good,noloosening.6.
7、5.2DCSsidewiringtocompletetheenclosureandtheothersideafterthewiringiscompleted,DCSwithintheenclosurewhenthepowermoduleshouldbeloosenedorthepowergoesout.6.6lowvoltagecableterminalmaking6.6.1firstb).打开安装项目的“自定义操作视图”然后在相应的节点上“右键”添加自定义操作:添加的自定义操作
此文档下载收益归作者所有