Skip to Content
author's profile photo Former Member
Former Member

Removing Add-Ons (2004)


I want Uninstaller for my add-on, I have a installer and is OK. The installer must contain the Uninstaller, this is my question. I don`t know.

If somebody has an example in visual basic 6.0.....

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 09:51 AM

    Hi Santiago,

    When you create the add on registration data file, one of the parameters you can enter is "Uninstaller command line arguments". In here you can (for example) add a /u parameter. This means that when the user selects to remove add-on, your addon installer will be called with the /u parameter. You can catch this in your installer if you look at the command line parameters. Then the procedure you will invoke should look something like this (it's the only VB6 example I could find). You should also delete all the files in your directory manually.

    'BOOL UnRegisterAddOn(const TCHAR *installDataFile);
    Private Declare Function UnRegisterAddOn Lib "SBOAddonReg.dll" (ByVal installDataFile As String) As Boolean
    Private Sub CmdUnReg()
        Dim InstallStrFile  As String
        InstallStrFile = App.Path & "SBOAddOnRegData.sld"
        If UnRegisterAddOn(InstallStrFile) = 1 Then
            MsgBox "AddOn Was UnRegistered Successfully"
            MsgBox "Failed To UnRegister AddOn"
        End If
    End Sub

    Hope it helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.