Shortcuts have incorrect behavior

We are using the command line to generate the updates using something like the following xml:<?xml version="1.0" encoding="utf-8"?><Versions><AddVersion><Version>1.0.0</Version><Files dir="basedir"><Folder source="C:\FirstVersion" insideonly="true" /></Files><Files dir="commstartmenu"> <Shortcut source="%basedir%App.exe" startin="%basedir%">AppFolder\App 1.0.0.lnk</Shortcut> </Files> <Files dir="commdesktop"> <Shortcut source="%basedir%App.exe" startin="%basedir%">App 1.0.0.lnk</Shortcut> </Files></AddVersion><AddVersion><Version>1.0.1</Version><Files dir="basedir"><Folder source="C:\SecondVersion" insideonly="true" /></Files><Files dir="commstartmenu"> <Shortcut source="%basedir%App.exe" startin="%basedir%">AppFolder\App.lnk</Shortcut> </Files> <Files dir="commdesktop"> <Shortcut source="%basedir%App.exe" startin="%basedir%">App.lnk</Shortcut> </Files></AddVersion></Versions>

Instead of creating new shortcuts the updater just deletes the old ones.If we remove the version 1.0.0 commstartmenu and commdesktop files from the xml, then it ends up keeping the old shortcuts and creates new ones. How can we remove the old shortcuts and create the new ones?

We can't reproduce the behavior you're describing. Also make note of the "Only add shortcuts if one of more shortcuts previously existed" setting inside wyBuild. File -> Properties -> General.

So, the above xml is supposed to work? And what should be the expected behavior of "Only add shortcuts if one of more shortcuts previously existed" that you mention?I wonder if the updater first removes the old shortcuts, then checks the value of the checkbox, decides there are no shortcuts and does not create any new ones.

I checked this again, so seems like the updater first removes the old shortcuts, then checks the value of the checkbox, decides there are no shortcuts and does not create any new ones.Isn't this a bug?If I change the checkbox you mention it creates a shortcut.