473,796 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installer question: Spurious entries in Add/Remove Programs

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 leave the Upgrade Code and version number unchanged.

RemovePreviousV ersions is set to True.

When the user installs the program, it overwrites the previous (nominally
same) version just fine.

But there are then two entries in Add/Remove Programs. "Removing" either
one of them will remove the program. If I then "remove" the other one, it
does something that doesn't raise any errors, but doesn't seem to have any
effect either.

Have I found a bug in Visual Studio 2003 or the Microsoft Installer? What's
up?

Thanks!
--
Michael Covington
Consultant
www.covingtoninnovations.com
Nov 15 '05 #1
4 1899
I've gotten a partial answer which leads to a bigger question.

Microsoft, at
http://support.microsoft.com/default...b;en-us;300540
says that in this situation I should be changing only PackageCode, not
ProductCode.

OK... where on earth is PackageCode?

I can't find it in Setup Project Properties or even the help system.
Nov 15 '05 #2
Still more news.

Apparently the Package Code changes every time an .msi file is gnerated. So
far so good.

The problem is in setup.exe.

After rebuilding my deployment project, if I want to reinstall using
myapp.msi, over what the Installer thinks is the same version of the program
already there, I can choose "Repair" and everything goes just fine.

But SETUP.EXE refuses to run in that situation. It tells me the current
version is already installed and I must go to Add/Remove Programs and
"Change" it. If I try to do that, I get told that the .msi file is not
valid.

What is the PROPER way to distribute MINOR upgrades of a product, with
either the same or a slightly different version number?

Thanks to anyone who can shed light on it!


"Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s> wrote
in message news:%2******** **********@TK2M SFTNGP10.phx.gb l...
I've gotten a partial answer which leads to a bigger question.

Microsoft, at
http://support.microsoft.com/default...b;en-us;300540
says that in this situation I should be changing only PackageCode, not
ProductCode.

OK... where on earth is PackageCode?

I can't find it in Setup Project Properties or even the help system.

Nov 15 '05 #3
More news: I was wrong. Behavior of myapp.msi is just the same as
setup.exe

If I rebuild my deployment application, I can't install it until I remove
the previous "version".

"Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s> wrote
in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Still more news.

Apparently the Package Code changes every time an .msi file is gnerated. So far so good.

The problem is in setup.exe.

After rebuilding my deployment project, if I want to reinstall using
myapp.msi, over what the Installer thinks is the same version of the program already there, I can choose "Repair" and everything goes just fine.

But SETUP.EXE refuses to run in that situation. It tells me the current
version is already installed and I must go to Add/Remove Programs and
"Change" it. If I try to do that, I get told that the .msi file is not
valid.

What is the PROPER way to distribute MINOR upgrades of a product, with
either the same or a slightly different version number?

Thanks to anyone who can shed light on it!


"Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s> wrote in message news:%2******** **********@TK2M SFTNGP10.phx.gb l...
I've gotten a partial answer which leads to a bigger question.

Microsoft, at
http://support.microsoft.com/default...b;en-us;300540
says that in this situation I should be changing only PackageCode, not
ProductCode.

OK... where on earth is PackageCode?

I can't find it in Setup Project Properties or even the help system.


Nov 15 '05 #4
So, I'm a little lost on this thread, but one thing I noticed... you MUST
change the version of your setup project, otherwise RemovePreviousV ersions
doesn't understand that there's an older version, just the same version.
But since the PackageCode has changed, it installs it, instead of going to
the repair/remove dialog.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s>References: <um************ **@TK2MSFTNGP12 .phx.gbl> <##************ **@TK2MSFTNGP10 .phx.gbl>
<#B************ **@TK2MSFTNGP11 .phx.gbl>Subject: Re: Installer question: Spurious entries in Add/Remove Programs
Date: Sat, 8 Nov 2003 17:22:38 -0500
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eu************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: 66-23-192-94.clients.spee dfactory.net 66.23.192.94
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1976 47
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

More news: I was wrong. Behavior of myapp.msi is just the same as
setup.exe

If I rebuild my deployment application, I can't install it until I remove
the previous "version".

"Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s> wrotein message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Still more news.

Apparently the Package Code changes every time an .msi file is gnerated.

So
far so good.

The problem is in setup.exe.

After rebuilding my deployment project, if I want to reinstall using
myapp.msi, over what the Installer thinks is the same version of the

program
already there, I can choose "Repair" and everything goes just fine.

But SETUP.EXE refuses to run in that situation. It tells me the current
version is already installed and I must go to Add/Remove Programs and
"Change" it. If I try to do that, I get told that the .msi file is not
valid.

What is the PROPER way to distribute MINOR upgrades of a product, with
either the same or a slightly different version number?

Thanks to anyone who can shed light on it!


"Michael A. Covington" <lo**@www.covin gtoninnovations .com.for.addres s>

wrote
in message news:%2******** **********@TK2M SFTNGP10.phx.gb l...
> I've gotten a partial answer which leads to a bigger question.
>
> Microsoft, at
> http://support.microsoft.com/default...b;en-us;300540
> says that in this situation I should be changing only PackageCode, not
> ProductCode.
>
> OK... where on earth is PackageCode?
>
> I can't find it in Setup Project Properties or even the help system.
>
>




Nov 15 '05 #5

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

Similar topics

7
3688
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added to it, using installutil.exe OR is it must to have an installer to the service project to be able to
5
4929
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET 1.1 -> MsiNetAssembly Support.) I have a few issues and questions regarding the MSI and its properties. * This may be my biggest annoyance at the moment. When the installer creates the target directory, it's setting them as read-only. When the...
0
2769
by: Jan | last post by:
Hello, I'm trying to uninstall VS.NET Trial 2003 but I get this dialog box stating "The Windows Installer package: C:\Program Files\Microsoft Visual Studio .NET 2003 .NET 2003\vs_setup.msi could not be opened. Setup will not continue. OK button below. I did "Add or Remove Programs" but it doesn't work like above statement. How
0
2108
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. My main project is a band object (Explorer Bar) in an assembly (.DLL) that needs to be registered on installation and unregisted on uninstallation. In addition, during installation, Setup creates registry subkeys, sets registry values, installs...
49
632
by: Thom Little | last post by:
I developed a C# application and a windows installer application that properly installs the C# application on a new machine. After the C# application is installed I would like to automatically start it on the User's machine. - How do I instruct the setup program to start execution of the newly installed program? - Is there a good general resource that documents the use of the installer?
7
1410
by: al | last post by:
Greetings, I have just finished packaging and deploying winapp. Packing went fine and so did the deplo. However, I have noticed that there are two files, not one, that were created by VB.NET. One is application.exe and the other one is installer that has all the dependencies. Any idea why is that?? MTIA, Grawsha
6
2104
by: Brett | last post by:
I've created a Windows setup project in VS.NET 2003. The first setup ran fine minus creating the Program's group. I made some changes and rebuilt the MSI and setup.exe files. Now when I run the setup.exe, I get this popup: Windows Installer: 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...
4
6436
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm thinking the following might help. I would appreciate if someone could comment on this idea and possibly suggest a better one: The environement variable in question is 'Path' in the HKCU registry folder's Environment key. I want to add some...
0
1878
by: Rob R. Ainscough | last post by:
I've posted this before and after doing some research discovered that the "DeleteAtUninstall" setting in the Registry view of my Setup project is a useless and meaningless option that doesn't work at all -- to retain Windows Logo compatibility setting DeleteAtUninstall to either true or false results in the registry entry being deleted regardless. Now this begs the question: 1. Why even provide the option if the result is always to...
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10456
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5442
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
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.