Unfortunately, ClickOnce really doesn't support this scenario.
You've stepped outside ClickOnce by writing custom code that creates the shortcut. That works fine, but the downside is that there's nothing to hook into to trigger code that will uninstall the shortcut.
I'm sorry I don't have a better answer.
|