Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / January 2004

Tip: Looking for answers? Try searching our database.

Add-In installation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Selgin - 06 Jan 2004 04:00 GMT
Hi all,

I've created a VB6 COM Add-In (self-registering DLL file)
for Outlook 2000 and have used Visual Studio (6) installer
to create a setup (.msi) file to deploy it.  It all works
fine, but for one issue.

If I update the DLL (and increase the version number) and
build a new .msi with the updated DLL (and higher version
number), when I run the setup it doesn't overwrite the
existing DLL, thus  not reflecting the updated DLL.  The
setup asks me if I want to repair or remove the add-in,
and if I choose repair it doesn't update the DLL, just
leaves the current existing one.

My queries up to this point indicate that I need to change
the PackageCode property.  I cannot see how this can be
done in Visual Studio Installer, and when I run
MsiInfo.exe on the .msi file, I get the message:
"Error 0x80030020. Could not open as a storage file"

Can anyone kindly offer some guidance?

Thanks in advance,
Selgin
Patrick Baker [MSFT] - 07 Jan 2004 23:47 GMT
I don't remember VSI exactly, but did you look under the property pages for
the VSI project. I seem to recall a version section or something that
should contain packagecode, productcode, upgradecode, etc.

Patrick Baker - Visual Basic/Deployment Quality Assurance Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Content-Class: urn:content-classes:message
>From: "Selgin" <anonymous@discussions.microsoft.com>
[quoted text clipped - 41 lines]
>Thanks in advance,
>Selgin
Selgin - 08 Jan 2004 22:43 GMT
Hi Patrick,

Thanks for the reply. You can access the Product and
Upgrade codes using VSI, but not the package code.  I
changed the PackageCode using Orca, as well as doing the
below:

* I have given the updated DLL the same Component ID as
the original, but a higher version number
* I have given the update package a higher version number
* I have placed the same UpgradeCode in the Upgrade Table
of the update package using Orca, as the original
* ProductCodes are the same
* I have added the RemoveExistingProducts action in the
InstallExecuteSequence table between InstallValidate and
InstallInitialize.

Reading material on the MS site seems to imply this should
have worked, but I am getting the message:

"Another version of this product is already installed.
Installation of this package cannot continue..." ie. must
uninstall first.

Any ideas?

regards,

Selgin
>-----Original Message-----
>I don't remember VSI exactly, but did you look under the property pages for
[quoted text clipped - 3 lines]
>Patrick Baker - Visual Basic/Deployment Quality Assurance Team
>This posting is provided "AS IS" with no warranties, and confers no rights.

>Hi all,
>
[quoted text clipped - 21 lines]
>Thanks in advance,
>Selgin
Patrick Baker [MSFT] - 21 Jan 2004 22:26 GMT
Hmm. I think you also need to change the ProductCode. It is a bit confusing
but if I remember correctly the upgrade code should remain the same for the
life of your product, and the product code should be unique to each version
of your product. Here is some infro from the MSI SDK:

Every application, or suite of applications, should be assigned an
UpgradeCode Property, ProductVersion Property, and ProductLanguage
Property. The UpgradeCode property indicates a family of related
applications consisting of different versions and different language
versions of the same product.

A major upgrade is a comprehensive update of the product that warrants a
change in the ProductCode property. A major upgrade can be shipped as a
patch package or as a full product installation package. Major upgrades are
available in Microsoft® Windows® Installer version 1.1 and later versions.
Installer version 1.0 does not support updates that change the product
code.

Note that Windows Installer uses only the first three fields of the product
version. See ProductVersion property. If you include a fourth field in your
product version, the installer ignores the fourth field.

The product code is a GUID that is the principal identification of an
application or product. For more information, see the ProductCode property.
If significant changes are made to a product then the product code should
also be changed to reflect this. It is not however a requirement that the
product code be changed if the changes to the product are relatively minor.

A product upgrade that updates a product into an entirely new product must
also change the product code. The 32-bit and 64-bit versions of an
application's package must be assigned different product codes.

The package code is a GUID identifying a particular Microsoft® Windows®
Installer package. The package code associates an .msi file with an
application or product and can also be used for the verification of
sources. The product and package codes are not interchangeable. No two
non-identical .msi files should ever have the same package code. Although
it is common to ship an application that has the same package code and
product code, the two values can diverge as the application is updated. For
more information, see Package Codes.

Hope this goo helps. Sorry it took so long.

Patrick Baker - Visual Basic/Deployment Quality Assurance Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Content-Class: urn:content-classes:message
>From: "Selgin" <anonymous@discussions.microsoft.com>
>Sender: "Selgin" <anonymous@discussions.microsoft.com>
>References: <060201c3d409$a0935470$a401280a@phx.gbl>
<7557SiX1DHA.2900@cpmsftngxa07.phx.gbl>
>Subject: RE: Add-In installation
>Date: Thu, 8 Jan 2004 14:43:22 -0800
[quoted text clipped - 81 lines]
>>Thanks in advance,
>>Selgin
Bart - 10 Jan 2004 16:08 GMT
bad luck!
this is the wrong newsgroup!

> Hi all,
>
[quoted text clipped - 21 lines]
> Thanks in advance,
> Selgin
Selgin - 13 Jan 2004 04:05 GMT
Get a life man
>-----Original Message-----
>bad luck!
[quoted text clipped - 32 lines]
>
>.
Carsten Hecht - 26 Jan 2004 16:04 GMT
You need a msi database editor called Orca to change the package code.
See http://support.microsoft.com/default.aspx?scid=KB;en-us;255905

Every time you want to create a minor update package you have to
update the package code. To change the package code, open your msi
package with Orca, create a random GUID (there are some tools
available -> google) and overwrite the existing GUID by selecting
View->Summary Information... from the menu

> Hi all,
>
[quoted text clipped - 21 lines]
> Thanks in advance,
> Selgin
Carsten Hecht - 26 Jan 2004 22:49 GMT
On a target machine an update is performed by

msiexec /fvomus yourpackage.msi

AFAIK the package must have the same filename as the original package.

See the msiexec documentation for command line options:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/comma
nd_line_options.asp


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.