fix uninstall program on wm platform