ahmedilyas

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 :-)




Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

thargy

I'm getting exactly the same problem. I have the RemovePreviousVersions set to 'True' and the UpgradeCode has not been changed between builds (have confirmed).

However, whenever I run the .msi I get the same error, 'A previous version...', why is it not uninstalling the previous version

I'm using VS.Net 2005





Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

Blazing Moose

I'm looking for an answer to the same question also. Another MS bug



Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

King_Xerxes

Have you found the fix to this problem
I have the same issue with my VB.net 2005 project.





Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

Satch78

Me too! Me too! Has anybody solved this yet




Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

tarheit

Found a good reference on it at http://www.vbforums.com/printthread.php t=386199

In short you need to change the setup Version (it's not enough to change the Assembly and File versions). When you do this VS will prompt you to change the ProductCode. I found it doesn't work correctly unless you let it change the code as well.

-Tim




Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

saradav

wat about when we install older version

and where the logfile will located Can we customize the thing like log file location ...





Re: ClickOnce and Setup & Deployment Projects Deployment Installer issue/problem

Stanley_S

Yeah, changing/incrementing the version number of the installer project (Along with product code alert) works fine. But this does not allow a previous version to be installed. But why would you want your customer to install an older version