我的解决方案中有两个项目:
1)。自定义操作类(CustomAction)
2)。Wix安装项目(TestSetup)
CustomAction项目中有CustomAction.cs:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.Deployment.WindowsInstaller;
namespace CustomAction
{
public class CustomActions