The SDK is correct. The user will have to delete the tile. Imagine what could happen if the RegisterSmartCenterApp were allowed to delete tiles indiscriminately. Deleting something has to be a user initiated action.
I want to be able to remove a tile from Touchsmart programmatically upon uninstall of an application.
But from the SDK document:
"To delete a file from the store, use delete as the first command-line argument. Note that updates and deletions are only effective as long as SmartCenter itself has not been run yet. If SmartCenter has been run, the user will still have to delete the tile by hand, but subsequently the tile should not show up in SmartCenter anymore, since it will be gone from the “store”."
I tried 'RegisterSmartCenterApp.exe delete "c:\path to\my.xml"' and it says it's successful, but the tile still exists when I launch Touchsmart. So I guess the blurb in the documentation is true...the user has to delete the tile manually.
Am I misunderstanding something here? Anybody come up with a way to remove a tile programmatically?
It appears that Touchsmart is smart enough to know to remove a tile from the store if it's exe is no longer on disk, but I don't have that situation.
Thanks for the comments GeekTieGuy.
My app is an "out-and-back" app, not a hosted tile. So Touchsmart minimizes and launches my app normally. In this scenario, I see the Touchsmart tile as being just another entry point into my app, akin to a desktop icon or Start menu shortcut.
When applications are installed, it's put to the publisher to create the desktop icons and Start menu shortcuts. So I think it should be my responsibility, not the user's to remove the tile for my app when it is uninstalled.
GTG, I think what you're worried about is Tile Sabotage? Do we not already have that danger in the Windows Start menu and how often is it exploited? What if the add/remove of a tile required UAC elevation?
When the app is uninstalled, the TouchSmart software will be aware of that and deal with it (if I remember correctly.)
I think I see what you are suggesting/asking for, but for the immediate future that functionality won't change.


RSS

