I am trying to uninstall existing version of MSI automatically during the installation of newer MSI.
I referred N number of articles and blogs which refer to Upgrade Code, Product Code, the properties of Setup project (like RemovePreviousVersions, DetectNewerInstalledVersion, versions), versions of DLLs from AssemblyInfo file (AssemblyFileVersion) etc....
Using these informations, I have one solution with me to do the above task. But, in this case maintenance is a problem with this approach.
There is one more action that I have observed from Visual Studio which does the same task. Which exactly performs the activity that I require and for the same I have framed the question as follows. Please throw some light on this query...
"The 'Install' action by right clicking on setup project from VS 2010, uninstalls the older version of product (irrespective of the value of RemovePreviousVersions property) and then goes ahead with installation of latest version. The same doesn't happen when MSI is used to install (although RemovePreviousVersions property is set to TRUE). Just wanted to know what actions or commands triggered in the former installation procedure, so that the same can be applied somehow using the code"
Hope the question is clear and straight foward..Let me know for any inputs.. Thanks a million in advance