PDA

View Full Version : New GUID not reflected in Uninstall Shortcut



andyguest13
03-12-2008, 10:00 AM
Hi,
I made myself an MSI, shipped it - all OK. So then i come to ship the next iteration of it, and i generated a new Product code on the General Info screen. BUT - this new GUID was NOT reflected in the Shortcuts/Folders page, so my iteration 2 installer 'pointed' at my iteration #1 package still. To get around it i just manually copied and pasted the new GUID across. But, is this a bug or a feature or what?

thanks
andy

joshstechnij
04-11-2008, 04:26 PM
This behavior is a limitation of the uninstall shortcut functionality. When the Product Code for the project is changed, the shortcut does not get updated.

Instead of using a hard-coded GUID, you should be able to use:
[ProductCode]

Which will resolve at runtime to the current Product Code for your installation and write that into the shortcut.