Install other apps with our setup - vs2010 Desktop App Deployment

后端 未结 2 1811
执笔经年
执笔经年 2021-01-24 00:27

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

2条回答
  •  离开以前
    2021-01-24 00:55

    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

    enter image description here

提交回复
热议问题