Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ C# VB.NET
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
    End Sub

But it not work, it give me error message "Could not open Install.log file"
Posted 9-Jan-13 23:18pm
pwasser at 10-Jan-13 4:27am
This is in the wrong forum. However the error message seems to be giving a clue.
alcitect at 10-Jan-13 4:30am
thanx for replay what it the solution??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have a look at this article
C# - Installing and uninstalling software[^]
alcitect at 10-Jan-13 5:39am
thank you let me see this
alcitect at 10-Jan-13 6:04am
it is nice program. but i should give the msi path for the program. i want a method to get this by itself.
thanks for help
Shanu2rick at 10-Jan-13 6:14am
How will it identify the program to be uninstalled, then?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917

Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100