Update of main package with chained packages doesn't work

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Update of main package with chained packages doesn't work

Postby igi » Thu Apr 05, 2012 8:44 am

Hi,

I defined a main package with some chained prerequisites. If I increase the version nr of the main package (major upgrade) and nothing changes in chained packages the update of main package doesn't work. The main package installer is limited to basic UI.
If limit to basic UI is disabled the chained packages are uninstalled and reinstalled again and the new main package is installed.
Is something wrong in my mind? I attached my .AIP.

Best regards,
Igor
Attachments
AIP-Druckertreiber.aip
(31.24 KiB) Downloaded 35 times
igi
 
Posts: 36
Joined: Tue Nov 15, 2011 3:45 pm

Re: Update of main package with chained packages doesn't wor

Postby Bogdan » Thu Apr 05, 2012 2:35 pm

Hi Igor,

I am not sure why this is happening. Can you please enable verbose logging for all the chained packages so we can see what happens when you have the basic UI option enabled?

You can post the logs in a zip on the forums or send it by e-mail at support at advancedinstaller dot com, with a reference to this thread.

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2403
Joined: Tue Jul 07, 2009 7:34 am

Re: Update of main package with chained packages doesn't wor

Postby igi » Thu Apr 05, 2012 6:06 pm

Hi Bogdan,

I attached teh logs.

Best regards,
Igor
Attachments
install_logs.zip
(91.05 KiB) Downloaded 11 times
igi
 
Posts: 36
Joined: Tue Nov 15, 2011 3:45 pm

Re: Update of main package with chained packages doesn't wor

Postby Bogdan » Fri Apr 06, 2012 10:25 am

Hi Igor,

I created my own packages with a configuration similar with your projects but there were no problems during the upgrade. So I started analyzing more carefully the logs of your chained packages.

In the log file "AIP-Druckertreiber-Skripte_1.0.0.log", as the end, you can see this "Eine andere Version des Produkts ist bereits installiert. Die Installation dieser Version kann nicht fortgesetzt werden. Verwenden Sie die Systemsteuerungsoption "Software", um die vorhandene Version dieses Produkts zu konfigurieren oder zu entfernen.". The following article explains the error.

Can you please make sure none of the chained packages have not changed between the two versions. From what I can see in the log the action "RemoveExistingProducts" is executed successfully, so the removal of the old version should not be a problem.

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2403
Joined: Tue Jul 07, 2009 7:34 am

Re: Update of main package with chained packages doesn't wor

Postby igi » Fri Apr 06, 2012 10:48 am

Thank you Bogdan,

you are right. I changed something in this chained package but didn't increase the version number. Now, with increased version number the old MSI was uninstalled and new package installed, also the main package was updated.
If I want to force uninstall all chained MSI packages on update of main package, how to do it?
And a second question: I have to stop the spooler service before uninstall/update of one of the chained packages. I defined a custom action as you can see it in my .AIP. It works. But how to start the service again after MSI was uninstalled before a new version of chained MSI will be installed?

Many thanks,
Igor
igi
 
Posts: 36
Joined: Tue Nov 15, 2011 3:45 pm

Re: Update of main package with chained packages doesn't wor

Postby Bogdan » Fri Apr 06, 2012 11:59 am

Hi Igor,
If I want to force uninstall all chained MSI packages on update of main package, how to do it?

There is no need for that as the scenario you've encountered cannot be met by your users. They will always have access only to your official version of the package. The error you've seen appears only during the development time of a package.

To start the service you can define a Control Operation in Services page. This should be executed before the chained packages from the upgraded version will install.

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2403
Joined: Tue Jul 07, 2009 7:34 am


Return to Common Problems

Who is online

Users browsing this forum: Alex99, Google [Bot] and 6 guests