Groups | Blog | Home
all groups > visual studio .net setup > april 2005 >

visual studio .net setup : Problem removing previous version


MCB
4/4/2005 10:57:02 AM
I have created a Web Setup Project, which installs an ASP.NET Web
application. Now problem I am having is, when I install it again, I get error:

"Another version of this product is already installed...... Remove from
Control Panel ..."

I tried setting "RemovePreviousVersions" property to true and false BUT no
luck.

Any body had same problem or know how to resolve this?

Thanks
Phil Wilson
4/4/2005 7:30:17 PM
RemovePreviousVersions True is what you need, and you also need to increase
the Version in the setup project's properties. It will prompt you to change
Package and Product codes, say ok. RemovePreviousVersions won't remove the
same version, the internal mechanism is based on older versions.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

MCB
4/4/2005 7:39:07 PM
Thanks Phil. I figured that out and it did work the way it suppose to.
However my problem is, I have a nightly build process which builds the msi
file each night and pushes to the test server. Hence I can't change the Build
number manually. Is there any way, I can increase it automatically or any
work around?

Appreciate it.

- MCB



[quoted text, click to view]
AddThis Social Bookmark Button