如何卸载应用程序 [英] how to Uninstall applications

查看:87
本文介绍了如何卸载应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

你可以帮我从电脑上卸载和申请。

我用这段代码:

Hi guys
can you help me to Uninstall and application from the pc.
I use this code:

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim uninstallString As String = GetUninstallStr("Yahoo")
        Dim UninstallProcess As New System.Diagnostics.Process()
        'temp will hold something like this:  /I{AC76BA86-7AD7-1033-7B44-A81200000003} 
        Dim temp As String = uninstallString.Substring(12)
        
        'The FileName will be: MsiExec.exe
        UninstallProcess.StartInfo.FileName = uninstallString.Split("/".ToCharArray)(0)
        UninstallProcess.StartInfo.Arguments = temp
        UninstallProcess.Start()
    End Sub





但它不起作用,它给我错误消息无法打开Install.log文件



But it not work, it give me error message "Could not open Install.log file"

推荐答案

看看这篇文章

C# - 安装和卸载软件 [ ^ ]


foll link可能会帮到你



http ://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/1b7764a7-cca2-426f-8bbd-14e551d607c5 [ ^ ]
THe foll link might help you

http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/1b7764a7-cca2-426f-8bbd-14e551d607c5[^]


这篇关于如何卸载应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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