on 09-26-2005 10:38 AM
Hello,
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.....
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"
Else
MsgBox "Failed To UnRegister AddOn"
End If
End Sub
Hope it helps,
Adele
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.