Managing product upgrades - 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!

Christian Surieux
Posts: 10
Joined: Mon Aug 17, 2009 11:00 am

Managing product upgrades

Hello,

I manage a web application setup with AI.
The application is .net 3.5: it is made with a Core Application setup and several additional packages setup.
To keep things as simple as possible, on the core setup I have not used any registry setting and when installing the packages, I just copied addittional files to the core application folder, without any testing to see if core app is already there.
Packages code need some assemblies from the core, so if I upgrade the core, users must upgrade the installed packages before being able to use my product.
In another way if the upgraded core is installed, the web site will be unusable until the packages related assemblies depending on core assemblies been upgraded .
I don't deliver today the common files with packages.
Could I use the normal setup programm to detect the old version (even if I don't mark it in some registry key) and automatically do an update (in this case it should not change some files, especially the web.config ...which must be updated) but change most of the others: .dll, aspx, css,etc.
On the upgrade I have some change to do in web.config concerning the Version of some assemblies, how to do it ?
Last: I would appreciate that my users could see the upgrades in the windows 2003->2008r2 Installed programms.

I need now to deliver upgrades to users, with all the implied problems, what is the best way to go ?
As an exemple, one customer has installed the core and one package, what to build with AI to allows him to upgrade gracefully ?

Some small complementary questions:
1) when I uninstall, 2 external cutom actions assemblies built with VS don't get unintsalled.
2) I try installing my asssemblies in GAC but get some kind of lock after an uninstall and trying to reinstall ?
3) I installed some documentation files in a menu and a shortcut to an html page but they are not removed by the uninstall, When I try to deleted them manually I get a windows messsage saying they are in use (even if I close any browser and restart IIS) the only solution is to reboot.


I would appreciate AI team recommandations, your product is very powerfull, and get not time testing every possibility.

Thanks for help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Managing product upgrades

Hello,

You can use the OLDPRODUCTS property to detect if there are previous versions of your program.
For working with XML files (web.config is one as you most likely know), you can check the following guide page on XML Files.
Check our tutorial on updates to learn how updates work.
Last: I would appreciate that my users could see the upgrades in the windows 2003->2008r2 Installed programms.
Updates work by removing the previous version completely, then installing the new one. Users will see the latest version in the Add/Remove Programs utility.
1) when I uninstall, 2 external cutom actions assemblies built with VS don't get unintsalled.
Are they installed custom actions? If so, create a log for the uninstall and check it for the reason why they did not uninstall. You might want to look for the component the custom actions belong to.
2) I try installing my asssemblies in GAC but get some kind of lock after an uninstall and trying to reinstall ?
I'm not sure I understand this. Could you elaborate?
3) I installed some documentation files in a menu and a shortcut to an html page but they are not removed by the uninstall, When I try to deleted them manually I get a windows messsage saying they are in use (even if I close any browser and restart IIS) the only solution is to reboot.
Use this utility called Unlocker to detect which program uses it.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Christian Surieux
Posts: 10
Joined: Mon Aug 17, 2009 11:00 am

Re: Managing product upgrades

Thanks, I will try this and get back later.
CS

Return to “Common Problems”