2023年12月29日发(作者:)
Vs2008打包安装步骤
一、打包后安装后自动运行程序
i. 第一点击项目右键-->添加-->新建项-->安装程序类
using System;
using tions;
using c;
using entModel;
using l;
using ;
using ;
using stics;
using ;
namespace Concordancer2
{
[RunInstaller(true)]
public partial class Installer1 : Installer
{
public Installer1()
{
InitializeComponent();
}
protected override void OnCommitted(IDictionary savedState)
{
itted(savedState);
string fullName = ters["targetdir"] + @"";
if ((fullName))
{
(fullName);
}
}
}
}
ii. 打开setup部署项目属性--->自定义操作编辑器
iii. 分别在安装和提交里添加自定义操作--->添加输出
iv.
v. 分别修改两个主输出属性
二、添加快捷方式
i. 先添加一个.ico图片
选择执行文件属性-->浏览找到图标
三、添加卸载程序
添加之后创建快捷方式
编辑属性(该Arguments和setup属性中的ProductCode一样才能有卸载该软件的权限)
四、添加自动卸载功能(必须设置版本比原版本高)


发布评论