Restart while patching - 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!

arlttomi
Posts: 5
Joined: Tue Dec 12, 2006 2:14 pm

Restart while patching

Hi,

I am having trouble while generating a patch.

While generating the patch, custom actions are called. The problem is
that one of them has got a restart in it. The second problem is, that
when the PC reboots (I click the restart option) the patch creation
does not continue :).

Why does AI call CAs when generating a patch ??

Thanks forward,
Tomas
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Tomas,
Why does AI call CAs when generating a patch ??
AI does not execute any custom actions. How exactly you create the patch? When those CA are executed? When you build the patch or when you add the images? Please give me more details. Also please post here the build log.

However we have a tutorial about how to create a patch please see:
http://www.advancedinstaller.com/user-g ... patch.html

Also make sure you respect all patch creation rules:
http://www.advancedinstaller.com/user-g ... tches.html

Waiting for your reply.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
arlttomi
Posts: 5
Joined: Tue Dec 12, 2006 2:14 pm

Hi gigi,


First, sorry the problem does not lie in the CAs.

I have tested the situation, and came to the following:

When AI creates a patch of an installation which has cabinet files (.CAB)
inside, then it first creates the folder "images". This folder than later contains
the 2 uncompressed (target, update) file trees of the installation. It seems to me that AI "runs ??" somehow the installation of both (target, update) versions of the installation to create those 2 folders. So when the installation
contains a restart (the "Force REBOOT.." checkbox is set in the "Install Parameters" section), a reboot has to be made while generating the patch !

Tomas
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
It seems to me that AI "runs ??" somehow the installation of both (target, update) versions of the installation to create those 2 folders. So when the installation
contains a restart (the "Force REBOOT.." checkbox is set in the "Install Parameters" section), a reboot has to be made while generating the patch !
When you add the images (upgraded and target MSIs) administrative install is done and because of this reboot prompt appears. This is a normal behavior if you have "Force REBOOT after install" option in the "Install Parameters" page. So when this prompt appears choose "NO".

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
arlttomi
Posts: 5
Joined: Tue Dec 12, 2006 2:14 pm

Hi Gigi,

If I click "NO", the following error appears:

Building package: D:\MSI\temp\patch\ess\Update\ess_test.msp
Running MSI patch compatibility tests... done.
Creating PCP database... error.
Exception - Reason: Error calling Msi API: 1627 Method: MsiViewExecute Table: TargetImages Extended Error:
1: 2210 2: D:\MSI\temp\patch\ess\Update\ess_test.pcp 3: 1 .

Build finished because an error was encountered.


If I uncheck the "Force REBOOT.." option in both MSIs, the patch generation passes without problems..

thanks,
Tomas
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I can not reproduce this on my computer. Have you tried to reproduce this behavior on other computer?

However if the problem persist could you please send a simple similar test case that reproduce this behavior? (AIPs and MSIs files for both target and upgraded images and the patch) to support at advancedinstaller dot com.

They will help us greatly to provide a solution in the shortest possible time.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Tomas,

I manage to reproduce this. This behavior resides when administrative install is done at build time. Because of the "Force REBOOT" option an error code is returned by the MsiMsp. I don't really know why the error code is returned, we still investigate this.

The same error code is returned by the MsiMsp when you add the images but in this case Advanced Installer ignore the return code and the patch creation continue successfully.

The fix for this will be available in the next version of AI. Thank you for brining this to our attention.

As workaround if you delete the images folder make a "Refresh Image" from the toolbar menu before building the patch.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
arlttomi
Posts: 5
Joined: Tue Dec 12, 2006 2:14 pm

Hi Gheorghe,


Finally, it is possible to generate the patch. I think the workaround you described is satisfactory.


Thanks,
Tomas

Return to “Common Problems”