使用我们的设置 - vs2010桌面应用程序部署安装其他应用程序 [英] Install other apps with our setup - vs2010 Desktop App Deployment

查看:143
本文介绍了使用我们的设置 - vs2010桌面应用程序部署安装其他应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在vs 2010中嵌入我的设置的powerpoint查看器。
当我创建用户运行安装程序时,powerpoint viewer setup在安装过程中自动启动。
谢谢

解决方案

将安装程序类添加到开发中

 命名空间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);
}
}

请记住将自定义操作添加到您的设置


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

解决方案

Add Installer Class to your development

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

这篇关于使用我们的设置 - vs2010桌面应用程序部署安装其他应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆