Hi,
I need to make a setup program for a project.
The project itself creates some registry values. The setup project
however should delete these values. Therefore I wrote a little
executable which I run as Custom Action on the uninstall node.
The code for this "uninstaller-exe" is the following:
<STAThread()> _
Shared Sub Main()
RemoveWeatherRegistryKeys()
End Sub
Shared Sub RemoveWeatherRegistryKeys()
Dim regKey As RegistryKey
Try
Registry.CurrentUser.DeleteSubKeyTree("Software\Ni sh")
Catch ex As Exception
MessageBox.Show("error: " & ex.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
However, after uninstalling, the values remain in the registry...
Am I doing something wrong here? Or is there a far better way of doing
this?