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!

SHUGHES-QLDHEALTH
Posts: 18
Joined: Thu Oct 20, 2016 4:58 am

Upgrading problems - I need assistance

Good morning,

I am having an issue with trying to upgrade from say V2.1.0 to V2.2.0 in my application build.

While attempting use the option 'Install new version first and then uninstall old' but get an error indicating I can not use this as I have not meet certain conditions. The project contains some predefined custom actions that are not compatible with the upgrade order.
- Windows Features
- Temporary Files
- SQL

See attached PNG file

I cannot use the remove and then install as the application build is designed to install SQL database which contains data and historical information. I tried this and it wiped out my v2.1.0 installation which is not ideal.

From the way the process worked it uninstalled - even though I had checks in place to only upgrade. I am not sure if you can include a backup of the sql database prior to removal and then restore the databases before installation begins.

If I have it right the 'Install new version first and then uninstall old' should only replace what is new? it should not wipe anything that is already installed, aka SQL Databases.

I am finding the instructions difficult to navigate at times and a little confusing. If you can assist in anyway I greatly appreciate as I am at a point if I cannot resolve this I have to look for a different build method, not ideal.

Regards
Attachments
AI-error.PNG
AI-error.PNG (11.18 KiB) Viewed 2516 times
Stephen Hughes
Principal Analyst
Gold Coast Integrated Care - Gold Coast Health
Australia
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Upgrading problems - I need assistance

Hello Stephen,

Unfortunately, you cannot use the "Install new version first and then uninstall old version" upgrade order when using project features as "SQL", "Temporary Files, "Windows Features". These features are not compatible with this upgrade order.

The only workaround for you will be to backup your database on upgrade. For instance, if your database file is added as a regular file in "Files and Folders" page, then you can enable its "Do not overwrite existing file" option with the "OLDPRODUCTS" condition.

Let us know if this helped, otherwise please give us more details about your installation scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”