473,406 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

When upgrading my app, it shows up twice in add/remove programs dialog?Ifigure

I must be doing something wrong, since this is the first time i've
created an installer...

What's happening is this:
I want to release a new version of my app. I go into AssemblyInfo.cs
and change the version number. Then I change the version number in my
setup project (which in tern changes my product code). Then I send the
setup.msi file out. When this setup.msi file is run, everything goes
fine - the app is updated and all is good - that is until you look in
the add/remove programs dialog and see that there are two (or 4 if
you've done this 4 times!) items for my app!

How do you stop this from happening? Is there any way I can just make
it install over the old version without requiring the app to be
uninstalled before a new version is installed?

Looking at the properties of the setup file, I have
RemovePreviousVersions marked as true... I figured this would fix the
problem but alas it does not.

Thanks in advance!

~Benny
Nov 17 '05 #1
5 1739
Hi Benny,

Please refer to Windows Installer documentation on proper use of product and
upgrade codes. As far as I remember, the product code must always remain the
same for the same product.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:Of*************@TK2MSFTNGP12.phx.gbl...
I must be doing something wrong, since this is the first time i've created
an installer...

What's happening is this:
I want to release a new version of my app. I go into AssemblyInfo.cs and
change the version number. Then I change the version number in my setup
project (which in tern changes my product code). Then I send the
setup.msi file out. When this setup.msi file is run, everything goes
fine - the app is updated and all is good - that is until you look in the
add/remove programs dialog and see that there are two (or 4 if you've
done this 4 times!) items for my app!

How do you stop this from happening? Is there any way I can just make it
install over the old version without requiring the app to be uninstalled
before a new version is installed?

Looking at the properties of the setup file, I have RemovePreviousVersions
marked as true... I figured this would fix the problem but alas it does
not.

Thanks in advance!

~Benny


Nov 17 '05 #2
Will do, however why then does the installer want me to change the
product code every time i change the version?

Dmytro Lapshyn [MVP] wrote:
Hi Benny,

Please refer to Windows Installer documentation on proper use of product
and upgrade codes. As far as I remember, the product code must always
remain the same for the same product.

Nov 17 '05 #3
Just looked it over. The installer doesn't do anything if you don't
update the product code. The upgrade code is supposed to stay the same
(which it is). Anyone know what's going on?

ORIG:
======
Hi Benny,

Please refer to Windows Installer documentation on proper use of product
and upgrade codes. As far as I remember, the product code must always
remain the same for the same product.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:Of*************@TK2MSFTNGP12.phx.gbl...
I must be doing something wrong, since this is the first time i've created an installer...
What's happening is this:
I want to release a new version of my app. I go into AssemblyInfo.cs and change the version number. Then I change the version number in my
setup project (which in tern changes my product code). Then I send the
setup.msi file out. When this setup.msi file is run, everything goes
fine - the app is updated and all is good - that is until you look in
the add/remove programs dialog and see that there are two (or 4 if
you've done this 4 times!) items for my app!
How do you stop this from happening? Is there any way I can just make it install over the old version without requiring the app to be
uninstalled before a new version is installed?
Looking at the properties of the setup file, I have RemovePreviousVersions marked as true... I figured this would fix the
problem but alas it does not.
Thanks in advance!

~Benny

Nov 17 '05 #4


Hi Benny!

I've also created one of my first installer and had similar problem, but
I think I've found the reason of it. I noticed that when I change the
ProductCode but not the Version in the Properties Window of setup app
(the same where the ProductCode property is) I got an item for every app
in Add/Remove dialog. But when I change the version number in the
properties window everything is ok.

I hope it helps.

Sylwia
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5
Unfortunetly when I change the productcode and the version number this
still happens. I ended up making my auto updater uninstall the previous
version productcode before installing the new one - this means i have to
store a manifest for every version on the update server instead of just
one manifest :(

=== orig msg ===
Hi Benny!

I've also created one of my first installer and had similar problem, but
I think I've found the reason of it. I noticed that when I change the
ProductCode but not the Version in the Properties Window of setup app
(the same where the ProductCode property is) I got an item for every app
in Add/Remove dialog. But when I change the version number in the
properties window everything is ok.

I hope it helps.

Sylwia
Nov 17 '05 #6

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

Similar topics

4
by: Michael A. Covington | last post by:
Greetings, I am working on a program that is in beta testing and goes through a new version every week or so. When there's a new version, go into the setup project change the Product Code but...
3
by: bardo | last post by:
I am running into the following problem would like to know if this a bug or me doing something wrong. Using C# with visual studios 2003. I make a form and add a mainMenu Control. Now I type in...
7
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a...
13
by: Shawn | last post by:
After upgrading to IIS 6.0 /Windows Server 2003 Standard Ed, I get the following error message for regular .asp pages. How can I fix this? HTTP Error 403 403.1 Forbidden: Execute Access...
2
by: Samy | last post by:
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog...
2
by: DDevlin | last post by:
I have been looking to upgrade my VB6.0 Professional to VB.Net. Have not been able to figure out exactly what to look for either on-line or in a store. I have VB 6.0 but do not need to convert any...
7
by: therod | last post by:
I am running Windows Server 2003 SP1 and .Net Framework 1.1 I want to upgrade to .Net 2.0 and I'm pretty sure I should uninstall 1.1 first. Problem is that .NET 1.1 doesn't show up in Control...
4
by: Lester | last post by:
I have main application (with main window) created in C++/MFC. From there I call function in C# class library to display a modal WPF dialog. Dialog shows up OK, but it doesn't behave really modal....
9
by: Daniel Klein | last post by:
Are there any guidelines for upgrading from 2.5 to 2.6? Do you have to uninstall 2.5, or does the installer do that for you? I have wxPython, mod_python and Django installed. Will these have to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
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,...

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.