安装包是可以用的(其它机器也可以用),就是卸载不了报错信息如下:Error1001,在卸载的过程中发生异常。将忽略该异常并继续卸载。
但是,在卸载完成后应用程序可能未完全卸载。
--Cannot remove the security policy --错误:无效的标签和名称

解决方案 »

  1.   

     private void button1_Click(object sender, EventArgs e)
            {            ArrayList al = new ArrayList();
                for (int i = 0; i < dataGridView1.Rows.Count; i++)
                {
                    if (dataGridView1.Rows[i].Cells[0].Value != null &&
                        dataGridView1.Rows[i].Cells[0].Value.ToString() == "True")
                    {
                        al.Add(dataGridView1.Rows[i].Cells[1].Value.ToString() + ";" +
                            dataGridView1.Rows[i].Cells[2].Value.ToString());
                    }
                }            if (al.Count > 0)
                {                if (this.Owner.GetType().Name.ToString() == "Form1")
                    {
                        instanceForm = (Form1)this.Owner;
                        instanceForm.getDataFromAddress(al);
                    }
                }
                this.Close();
                
            }
      

  2.   

    【VSTO之家】
    http://vsto.5d6d.com【VSTO专家群】109033523