安装我们的安装其他应用程序 - VS2010的桌面应用程序部署应用程序、桌面

2023-09-03 07:07:22 作者:怪你过分妖娆

我需要嵌入PowerPoint播放器与我的设置在VS 2010中。 当用户运行安装程序由我创建,PowerPoint播放器的设置都会自动安装过程中启动。 谢谢

I need to embed powerpoint viewer with my setup in vs 2010. When user run setup created by me, powerpoint viewer setup get automatically launch during installation. thanks

推荐答案

添加安装程序类来开发

namespace CLT
{
    [RunInstaller(true)]
    public partial class ClientInstall : Installer
    {
        public ClientInstall()
        {
            InitializeComponent();
        }

        public override void Install(IDictionary stateSaver)
        {
                base.Install(stateSaver);
                System.Diagnostics.Process.Start(@"\Powerpoint.exe");
        }
}

要记住,自定义操作添加到您的设置

And remember to add Custom actions to your setup