The shortcuts are created by scripts.
So there is another function that is used to remove the shortcut.
It works well when do the uninstallation.
But when clicks Cancel button during installation,the shortcuts are not removed.
Pls tell me how to deal with this condition.
Yeah I have a custom action that call that funtion and it is a rollback execution and the install exec sequence is "After StartService" , the install exec condition is "Not Installed"
However it didn't work?

