The windows installer service uninstalls is called on the msi file used during installation to uninstall the package using the following command:
msiexec /qn /x <file path>
After msiexec is called the msi file is removed.