This was working fine with VS.NET 2003 on one of my big projects. I was able to configure the installer to remove a previous version of the software and that worked fine. Even if told it not to, it would still work fine.
In VS.NET 2005, if the application is already installed and i set the "RemovePreviousVersions" flag to true OR false, when running the setup file, I get this error:
"An error occured attempting to installer [AppName]"
Details:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
See the setup log file located at 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\VSDB04.tmp\install.log' for more information.
The log shows that everything is going well and as planned and these were the last entries:
'.NET Framework 2.0' RunCheck result: No Install Needed
Launching Application.
Using MsiInstallProduct with package path 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Project1\PARInstaller\Debug\PARInstaller.msi' and command line ''
MsiInstallProduct returned '1638'
Error: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
But what is causing the error I want setup to be able to remove an existing version if it exists. It worked fine with VS.NET 2003
Any ideas :-) I'm sure i'm doing something wrong somewhere :-)