Hi,
I use "Uninstall prvious version" custom action to remove my old prducts if any.
If the older versions of your product have the same "Upgrade Code" (which is normal) with the version that you want to create, then they will be automatically uninstalled if the "Automatically upgrade older product versions" option is selected in the Upgrades page. So, I don't think you need the "UninstallPreviousVersion" custom action anymore.
On the other hand, if they don't have the same "Upgrade Code", then you can use the method I recommended to you in my previous post, to uninstall the old product.
Now I am trying to remove this custom action and selecting "Install new version first and then uninstall old version". If I do this way, the upgrade is sucusfull but I see the old version shortCut in Start- all programes and also entry in Add/Remove programs . So I see old prodect details wich was uninstalled. How to avoid this ????
I'm not sure why you encounter this behavior, it might happen if the "Upgrade Code" of the two versions of your application is not the same. Also, as long as you install a new version of the application, the entry of the older version in Add/Remove Programs should be replaced by the entry of the newer version.
Is this about the Dll names or class files and XML names?????
I'm not so sure, but I think they must not cause your product entry not to be removed from Add/Remove Programs.
Also, I would suggest you to use the "Uninstall old version first and then install new version" option because this is more safe.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging