Patch Old Installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sdc
Posts: 3
Joined: Tue Feb 05, 2008 3:55 am

Patch Old Installation

I have a product that was using an old version of InstallShield Pro 5.5. Is there any way to do a patch for this product? If no, then how would I create and installer to only update the exe file?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Since a patch is the difference between two MSI packages both installation packages should be created with the same installation package authoring tool (for example Advanced Installer).

This is because the patch must respect some rules which may be hard to apply when using MSI packages created with different authoring tools. You can try to build a patch by using the two MSI packages (the one created with InstallShield and the one created with Advanced Installer), but most likely the patch will not apply correctly.

Also, you can edit the old MSI package with Orca to ensure that the two packages meet the patch rules:
http://www.advancedinstaller.com/user-g ... tches.html

For your case I recommend that you create a full installation package that will upgrade the old one (this can be done by specifying the old MSI package in the "Upgrades" page). After that, whenever you update your application you can release a small patch which performs the update.

You can read more about the "Upgrades" page here:
http://www.advancedinstaller.com/user-g ... rades.html

Also, you can find more information about patches here:
http://www.advancedinstaller.com/user-g ... patch.html
http://www.advancedinstaller.com/user-g ... tches.html
http://www.advancedinstaller.com/user-g ... oject.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sdc
Posts: 3
Joined: Tue Feb 05, 2008 3:55 am

The old install was not an MSI. It used the old InstallShield setup.exe with a compressed data file called data1.cab, though it is not really a cab file. Is there a way to get an upgrade code for this? My old InstallShield patch script looked up the installed path in the registry. If I can't get an upgrade code is there a way to do the same thing then run the InstallShield uninstaller before proceeding with the Advanced Installer installation?

If I run the Advanced Installer with the old InstallShield installation present it does recognize the old product and give me a dialog that says:
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 Control Panel.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here are the steps to find the Upgrade Code:
- install the old application
- open Advanced Installer and go to the "Prerequisites" page
- select the "Software" tab and click the "New" button
- in the "Select a setup file" dialog click the "Cancel" button
- in the "New Prerequisite" dialog set the "Exact Size" field to any numerical value
- go to the "Install Conditions" tab and click the "New" button
- in the "Criteria" combo select the "Product Version (identify by Upgrade Code)" option
- click the "..." button in the "Upgrade Code" field
- in the "Select a Windows Installer-based product" dialog use the "Installed on this machine combo to select your application
- after you click OK you will see the Upgrade Code of your application
http://www.advancedinstaller.com/user-g ... icker.html

You can use this upgrade code in the "Upgrades" page of the new MSI package. Note that if these installations have the same Product Name, you should set a higher Product Version for the Upgraded package (the old and new installations shouldn't have the same version).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sdc
Posts: 3
Joined: Tue Feb 05, 2008 3:55 am

The installed application does not show up in the "Installed on this Machine" list. It does show up in Add/Remove programs. What to do now?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The only solution for this is to use a custom action which launches the Uninstall of the old installation.

Here are the steps:
- in the "Search" page create a search for the file which uninstalls the package
http://www.advancedinstaller.com/user-guide/search.html
- in the "Custom Actions" page create a "Launch file or Open URL" custom action under the "InstallUISequence" -> "FindRelatedProducts" standard action
http://www.advancedinstaller.com/user-g ... -page.html
- in order to see a standard action you can use the "Show standard action" button on the toolbar in the "Custom Actions" page

Note that the result of the search will be used to define the path of the file for the custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”