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

B

Benny Raymond

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
 
D

Dmytro Lapshyn [MVP]

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

Benny Raymond

Will do, however why then does the installer want me to change the
product code every time i change the version?
 
B

Benny Raymond

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]


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

Sylwia Lubaczuk

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
 
B

Benny Raymond

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top