Use a search file find with file.find function. It does exist that file? Yes then not to delete. If result Not? select the variable table from file.find and set the selected item data or text ( item[1] for example from file.find) to delete only that selected soft and then the Listbox.SetUpdate function
Another way is once you uninstalled software deletes that item used to delete the soft and then update the listbox directly