在自定义安装程序中隐藏默认安装程序Windows. [英] Hide default installer Windows in custom installer.

查看:75
本文介绍了在自定义安装程序中隐藏默认安装程序Windows.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在创建自定义安装类,该类将调用我自己的表单.
我想在调用自己创建的表单时隐藏安装程序进程窗口.
Mu自定义安装程序类,如

Hi All,

I am creating Custom install class which call my own forms.
I want to hide installer process window when call my own created form.
Mu custom installer class like

[RunInstaller(true)]
    public partial class Installer1 : Installer
    {
        public Installer1()
        {
            InitializeComponent();
        }
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);
        }
        private void Installer1_AfterInstall(object sender, InstallEventArgs e)
        {
           Form1 topmostForm = new Form1();
            topmostForm.Focus();
            topmostForm.BringToFront();
            topmostForm.TopMost = true;
            topmostForm.ShowDialog();
      }
}



调用topmostForm.ShowDialog()时,还将显示默认安装程序窗口.但是我也想从任务栏上隐藏它.

请帮助我.



When topmostForm.ShowDialog() call that time default installer window is also display. But i want to hide it from task bar also.

Please help me in this.

Thanks in Advance.

推荐答案

ShowInTaskbar属性设置为False.


这篇关于在自定义安装程序中隐藏默认安装程序Windows.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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