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!

TarakAI
Posts: 4
Joined: Tue Apr 30, 2013 3:00 pm

Question on Upgrades and Patches

Hello,
We are working with trial version of AI and have below questions for upgrades and patches:

1. For Major Upgrade by - Uninstall old version first and then install new version:
- We need certain directories like "uploads", "CKeditorImgs" and few other dir in our web application that we don't want to upgrade. i.e. Those files are uploaded by user and we don't want to upgrade it with new version upgrade. Is it possible and how?
- Is it possible to execute SQL scripts during Upgrade installation?

2. For Patches: Is it possible to execute SQL scripts during patch installation?

3. Need to know how upgrade will work in below case, we have customer A and had given below versions:

CustomerA - Version 1.0.0 - major upgrade - deploy date 10-apr-13
CustomerA - Version 1.0.1 - Patch - deploy date 12-may-13
CustomerA - Version 1.0.2 - Patch - deploy date 15-july-13
CustomerA - Version 1.0.3 - Patch - deploy date 01-aug-13

Now, say that new customer B on 01-sept wants our software in that case, How we need to prepare installer so that it covers 1.0.0 + all 3 patches + some changes done after 1.0.3 patch released?
Do we need to give new version no to this release?

Now, consider we have given installer to customer B with above patches and changes, now on 01-dec we need to now give patch to Customer A. How we will accomplish this?

Thanks
Tarak
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Question on Upgrades and Patches

Hi Tarak,
- We need certain directories like "uploads", "CKeditorImgs" and few other dir in our web application that we don't want to upgrade. i.e. Those files are uploaded by user and we don't want to upgrade it with new version upgrade.
By default any MSI package registered with Windows Installer will not remove during uninstall/upgrade any resources (files/registry) that were not created by the installation process.
So if the files are placed there by the user after the installation has completed, for example when running your application, they should not be touched. You do not have to do
anything to support this, it is a built-in support of the package.
- Is it possible to execute SQL scripts during Upgrade installation?
Yes, you can execute them during a major upgrade or a patch installation. The following thread contains more details and some sample aip files for you to analyze.
It also contains information about SQL execution during a patch installation.
3. Need to know how upgrade will work in below case, we have customer A and had given below versions:
To make a patch you need to create a new full version package every time, as you can see in the linked tutorial. So, at each moment in time you will have a full package, that
can be installed by itself, available for the latest version of your application.

Also, an user can skip installing a patch without any problems. For example you can have user A install version 1.0.0 and 1.0.1 and afterwards install directly 1.0.3 or the version released in 01-dec.
To do that you need to make sure that the new version you created uses as target images all the previous versions in the patch project, linked above.

Also, of course, if you choose to create a major upgrade instead of a patch, it is even easier as the new package will simply take care of uninstalling the old one and installing the new files, just as you configure it in Upgrades page.

I recommend you try the patch tutorial and a couple of upgrade scenarios to see how this works with our trial version. This will allow you get a much more better understanding
of the entire process. If you need more time for the trial just write us an e-mail at support at advancedinstaller dot com and we'll send you a trial extension.

Please let me know if you have any questions or if I missed something from your previous set.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TarakAI
Posts: 4
Joined: Tue Apr 30, 2013 3:00 pm

Re: Question on Upgrades and Patches

Hello Bogdan,

Thanks for your reply. I have one question related to point 1:
By default any MSI package registered with Windows Installer will not remove during uninstall/upgrade any resources (files/registry) that were not created by the installation process.
So if the files are placed there by the user after the installation has completed, for example when running your application, they should not be touched. You do not have to do
anything to support this, it is a built-in support of the package.
Here, it is clear that if any files are added to folder, Installer will not remove during uninstall/upgrade any resources (files/registry) that were not created by the installation process. However, if we want certain folder Not to delete (no matter its updated or not) during upgrades, is it possible? i.e. folder like "uploadimgs" might not changed (as user might not have used it) and in our upgrades we have not included that folder.

For the patches, I am working on it considering different cases.

Thanks,
Tarak
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question on Upgrades and Patches

Hello Tarak,

I apologize for my delayed reply. In order to achieve what you want you can go to "Files and Folders" page, select the related folder and from its context menu choose "Properties..." option. Then, from "Folder Operations Tab" you should enable the "Do not overwrite existing files" option with a desired condition (e.g. 1).

Let us know if you have any questions.

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

Return to “Building Installers”