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!

suilongj
Posts: 3
Joined: Tue Aug 24, 2010 8:47 pm

How to control files being uninstalled during upgrade

Currently my application is about 100MB, and the change in each newer version is only limited to a few files, of total size < 10MB. It is really not efficient to bundle all the files (~100MB) for each upgrade, wasting network bandwidth and being slow when 2000 users upgrade concurrently.
I wonder whether it is possible to:
1). create a stripped -down MSI package containing only modified files ( ~10MB)
AND
2). upgrade client with Advanced Updater by only adding these modified files without removing other files already installed.

To me, the requirement of uninstalling previous version by AI for an upgrade makes it impossible to retain any files. Hope there is a way to do so.

I do not want to use patch for the upgrade

Please kindly advise any options. Thanks a lot.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to control files being uninstalled during upgrade

Hi,
I do not want to use patch for the upgrade
I'm afraid this is the only method that would meet your requirements and also respect the standards of Windows Installer regarding the
upgrade of an application.

If you don't want to use patches you would have another option, but I don't recommend it. You could create a completely new project in Advanced Installer
that would install only the files that have changed in the corespondent location. The package must not be registered with Windows Installer (setting available
in the "Product Details" page).

All changes that are performed this way will not be visible in the list of programs from Control Panel, i.e. the version of the application will remain unchanged, therefore
management of the application would be complicated as you would not now what version is really installed on the machine.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
suilongj
Posts: 3
Joined: Tue Aug 24, 2010 8:47 pm

Re: How to control files being uninstalled during upgrade

Thanks Bogdan for your quick response.
I will consider your suggestion.
I believe to make this work, I have to pass the current APPDIR to the update MSI package and disable its own installation path which might be different from the APPDIR.

How can I achieve this? either through update.exe or another way
Appreciate everyone's help.
Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to control files being uninstalled during upgrade

Hi,
How can I achieve this? either through update.exe or another way
This is not done using the updater, what you need to create is a search to obtain the old installation path and then
use a "Property set with Formatted" predefined custom action that will set APPDIR to the value retrieve by the search.

Regards,
Bgdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”