• 大小: 0.13M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: c#  卸载  

资源简介

利用C#制作的卸载方式,将对应的打包好的安装程序id替换之后,就可以变成专用的卸载程序

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace uninst
{
    /// 
    /// Class1 的摘要说明。
    /// 

    public class UnInstall
    {
        [STAThread]
        static void Main(string[] args)
        {
            string sysroot = System.Environment.SystemDirectory;
            System.Diagnostics.Process.Start(sysroot + “\\msiexec.exe““/x {所卸载程序的id} /qr“);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-07-09 17:20  uninstall\
     目录           0  2014-07-09 17:20  uninstall\uninstall\
     文件         869  2014-07-02 10:18  uninstall\uninstall.sln
     文件       16896  2014-07-09 17:21  uninstall\uninstall.suo
     目录           0  2014-07-09 17:20  uninstall\uninstall\bin\
     目录           0  2014-07-09 17:20  uninstall\uninstall\bin\Debug\
     文件       11600  2014-07-02 10:18  uninstall\uninstall\bin\Debug\uninstall.vshost.exe
     文件         490  2010-03-17 22:39  uninstall\uninstall\bin\Debug\uninstall.vshost.exe.manifest
     目录           0  2014-07-09 17:20  uninstall\uninstall\bin\Release\
     文件       73216  2014-07-08 09:55  uninstall\uninstall\bin\Release\uninstall.exe
     文件       11776  2014-07-08 09:55  uninstall\uninstall\bin\Release\uninstall.pdb
     文件       11600  2014-07-09 17:23  uninstall\uninstall\bin\Release\uninstall.vshost.exe
     文件         490  2010-03-17 22:39  uninstall\uninstall\bin\Release\uninstall.vshost.exe.manifest
     目录           0  2014-07-09 17:20  uninstall\uninstall\obj\
     目录           0  2014-07-09 17:20  uninstall\uninstall\obj\x86\
     目录           0  2014-07-09 17:20  uninstall\uninstall\obj\x86\Debug\
     文件        5920  2014-07-02 10:18  uninstall\uninstall\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2014-07-02 10:18  uninstall\uninstall\obj\x86\Debug\TempPE\
     目录           0  2014-07-09 17:20  uninstall\uninstall\obj\x86\Release\
     文件        5928  2014-07-09 17:20  uninstall\uninstall\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache
     文件        6038  2014-07-02 10:40  uninstall\uninstall\obj\x86\Release\ResolveAssemblyReference.cache
     目录           0  2014-07-02 10:18  uninstall\uninstall\obj\x86\Release\TempPE\
     文件         698  2014-07-09 17:23  uninstall\uninstall\obj\x86\Release\uninstall.csproj.FileListAbsolute.txt
     文件       73216  2014-07-08 09:55  uninstall\uninstall\obj\x86\Release\uninstall.exe
     文件       11776  2014-07-08 09:55  uninstall\uninstall\obj\x86\Release\uninstall.pdb
     文件         489  2014-07-09 17:21  uninstall\uninstall\Program.cs
     目录           0  2014-07-09 17:20  uninstall\uninstall\Properties\
     文件        1368  2014-07-02 10:18  uninstall\uninstall\Properties\AssemblyInfo.cs
     文件        2669  2014-07-08 09:55  uninstall\uninstall\uninstall.csproj
     文件       67646  2014-07-08 09:55  uninstall\uninstall\uninstall.ico

评论

共有 条评论