none
InstallShield Question RRS feed

  • Question

  • Hi again guys,

    I feel like I am always posting in this Outlook forum ;)

    Just a quick question with regards to InstallShield.

    If I gave someone a setup file and they installed the add on, and they I provided them another setup file. Would this overwrite the old version of the add on?

    Thanks in advance :)

    Friday, May 29, 2015 9:59 AM

Answers

  • Hello Darryl,

    First of all, it depends on the on the installer properties. The ProductCode property of MSI installers (InstallShield in your case) is advertised as a product property, and is the primary method of specifying the product. Here is what MSDN states:

    The ProductCode property is a unique identifier for the particular product release, represented as a string GUID, for example "{12345678-1234-1234-1234-123456789012}". Letters used in this GUID must be uppercase. This ID must vary for different versions and languages.

    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.

    Typically end users are asked to uninstall the previous (old) versions of the software before installing a new one. So, keeping the ProductCode property set to the same value may guarantee that an old version will be replaced with a new one.

    Even if you decide to publish a patch with a different product code you can replace the add-in assembly when the host application is shut down and the target add-in assembly corresponds to the data written to the windows registry, see Registry Entries for Application-Level Add-Ins .

    P.S. You may find the Patching and Upgrades page in MSDN helpful. 
    Saturday, May 30, 2015 8:40 PM

All replies

  • If the addin has the same name and you install it into the same folder...

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Friday, May 29, 2015 1:33 PM
  • Hello Darryl,

    First of all, it depends on the on the installer properties. The ProductCode property of MSI installers (InstallShield in your case) is advertised as a product property, and is the primary method of specifying the product. Here is what MSDN states:

    The ProductCode property is a unique identifier for the particular product release, represented as a string GUID, for example "{12345678-1234-1234-1234-123456789012}". Letters used in this GUID must be uppercase. This ID must vary for different versions and languages.

    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.

    Typically end users are asked to uninstall the previous (old) versions of the software before installing a new one. So, keeping the ProductCode property set to the same value may guarantee that an old version will be replaced with a new one.

    Even if you decide to publish a patch with a different product code you can replace the add-in assembly when the host application is shut down and the target add-in assembly corresponds to the data written to the windows registry, see Registry Entries for Application-Level Add-Ins .

    P.S. You may find the Patching and Upgrades page in MSDN helpful. 
    Saturday, May 30, 2015 8:40 PM