473,471 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Setup should remove existing version

Hi.
I have written a .NET C# program and have also made a setup project for it.
Everything works fine, except that I would like my setup application to
remove any existing version of my program before proceeding with the setup.
This is because I get the following message if there is a previous version of
my program installed:

'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.'

I would like to avoid having my user to use Add/Remove Programs on the
Control Panel. I would like my setup to silently remove any existing version
of my app and then proceeding with the installation of the new version.

Regards,
Gudni
Jan 27 '08 #1
1 5038
On the project properties (via F4 - not the context menu 'Properties' - I
know, this is not very intuitive), set 'RemovePreviousVersions' to true.
Also, whenever you create a new setup, increment the version number - you'll
get a message about updating some guid automatically - say yes to this also.
Once you've done this, you'll see that everything installs as you want it (no
idea why this wouldn't be the default...).

I've found it very odd that Microsoft makes it hard to get to these
properties on setup projects (and there are two different properties in 2005
- one via F4 and one via the context menu, and they're totally different
dialogs...).
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
Instant C#: VB to C#
Instant VB: C# to VB
Instant C++ VB Edition: VB to C++/CLI
Instant C++ C# Edition: C# to C++/CLI
"Gudni G. Sigurdsson" wrote:
Hi.
I have written a .NET C# program and have also made a setup project for it.
Everything works fine, except that I would like my setup application to
remove any existing version of my program before proceeding with the setup.
This is because I get the following message if there is a previous version of
my program installed:

'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.'

I would like to avoid having my user to use Add/Remove Programs on the
Control Panel. I would like my setup to silently remove any existing version
of my app and then proceeding with the installation of the new version.

Regards,
Gudni
Jan 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rajesh Abraham | last post by:
I would like to Exclude MyApp.Exe.Config from my Setup Package as I don't want it to get overwritten during upgrade installation of my application. If I remove app.config while building the...
1
by: Amy L. | last post by:
I have a project that is deployed using a MSI. When the user attempts to install a new version of the program I require them to remove the existing version first. Is it possible to do the...
4
by: Bob | last post by:
Could anyone suggest me some examples/articles on creating a setup program in VS.NET that can install the assembly into the GAC? I have done some search and research myself and have some basic...
1
by: lyl209 | last post by:
Hi, I am trying to create a web setup project for my asp.net 2.0 website and I had some problems. It worked fine until I want to add some custom actions into it. As some of you already knew,...
14
by: =?Utf-8?B?R2F1cmF2?= | last post by:
Hi, I use the Setup project in C# to create a .msi file to be distributed to the clients. The size of .msi is 12 MB. This file works fine on all the target machines, but on the development...
4
by: =?Utf-8?B?R2F1cmF2?= | last post by:
Hello... I posted this a couple of weeks back, but could't get a reply, so trying again! I use the Setup project in C# to create a .msi file to be distributed to the clients. The size of...
6
by: Boaz Ben-Porat | last post by:
Hi all I guess it is not the right group for this problem, but I can't find a Newsgroup about Setup projects. Visual studio 2005 SP1 My Setup project (.vdproj) is very simple. The project's...
0
by: JDeats | last post by:
I have a Setup & Deployment project that results in an MSI and Setup.exe. When I run the resulting MSI if a previously installed instance exist the default behavior is for the MSI to prompt and ask...
0
by: henkya | last post by:
Language Used: C# Project Typed: Setup Project (for .NET Window Service) Hi Bump into this issue and seriously have a hunch that this is a bug in the .NET setup project. These are the scenario:...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.