Installation takes longer after upgrading to AI 22.8 (from 19.7) - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Installation takes longer after upgrading to AI 22.8 (from 19.7)

Dear Advanced Installer,

Let me send you few installation logfiles.

Scenario 1: Fast scenario:
Until our previous releases our TheServer.exe was installed usually in 2-3 minutes. We used AI version 19.7 for the previous releases.

Scenario 2: Slow scenario:
Nowadays we´ve found out, that installation time went up to 10 minutes or more. Same feature set is installed, almost identical .aip file, the major difference is that we started to use AI version 22.8.

Could you please check the logfiles and give us a hint why the install time is increased?

Best regards,
Zsolt
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hello Zsolt,

I have checked our email and could not see any log files - could you please check this again to make sure the logs have been sent?

Just to make sure, please resend them so I can have a look.

This seems like quite a strange scenario, to be honest. Are you able to consistently reproduce this on more machines?

Not so long ago I investigated the prerequisite issue from your side and the installation definitely did not take that long, so I'm thinking perhaps this only happens in isolation.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi,

The logs are attached again!

Best regards,
Zsolt
Attachments
TheServerMSI_FAST.zip
(548.88 KiB) Downloaded 2995 times
TheServerSetup_SLOW.zip
(639.84 KiB) Downloaded 3123 times
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hello Zsolt,

Although this started happening after the upgrade, I do not think the behavior is related to the upgrade.

In the log file, we can see the delay is not actually coming from any of our Custom Actions:

Code: Select all

Action start 12:40:26: AI_CleanPrereq.
MSI (c) (F0:68) [12:40:26:424]: Invoking remote custom action. DLL: C:\Users\TADEPL~1\AppData\Local\Temp\MSIB3E1.tmp, Entrypoint: CleanPrereq
Action ended 12:40:26: AI_CleanPrereq. Return value 1.
MSI (c) (F0:64) [12:47:10:947]: Destroying RemoteAPI object.
MSI (c) (F0:14) [12:47:10:947]: Custom Action Manager thread ending.
Our custom action, AI_CleanPrereq returns almost instantly. This Custom Action is executed via MSI’s Remote Custom Action Server (msiexec.exe spawned as a separate process).

The sequence would be:

- MSI launches the remote CA server

- CleanPrereq executes and returns immediately

- MSI waits for the remote CA process to terminate

- Something delays that termination

- MSI eventually cleans it up, 7 minutes later

This delay seems to be external to Advanced Installer logic (e.g. custom actions). These issues are usually hard for me to pinpoint exactly what causes them, so I can't say the reason. From what I can see, even in the "FAST" log file, there still is a 2 minutes delay before the last executed action and "Destroying RemoteAPI Object" line.

Is there some external factor here that you think might interfere with this - perhaps a AV product or something alike. If you test this on a clean VM (with a clean installed Windows), does the issue still reproduce?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Dear Catalin

This issue is getting more serious now, many customers are complaining about it, unfortunately. There are automatic update mechanism which broke down now, because the installation time is much longer.

Regarding this part of your email:
"
MSI eventually cleans it up, 7 minutes later

This delay seems to be external to Advanced Installer logic (e.g. custom actions). These issues are usually hard for me to pinpoint exactly what causes them, so I can't say the reason. From what I can see, even in the "FAST" log file, there still is a 2 minutes delay before the last executed action and "Destroying RemoteAPI Object" line.

Is there some external factor here that you think might interfere with this - perhaps a AV product or something alike. If you test this on a clean VM (with a clean installed Windows), does the issue still reproduce?
"

We can reproduce the issue on a clean machine.
The .aip is the same, the machine is the same, the only difference is the AI version.
If we build an exe with AI 19.7 and we install that .exe, the installation time is usually between 5-6 minutes.
If we build an exe with a newer AI like 22.7 or 23.6, the installation time is 10 minutes more. From the log I saw that IIS preparation phase sometimes takes for 7 minutes.

As you are between us and Windows Installer, I think you should understand this better, why a newer version of your product is generating an exe which takes much longer to be installed.

What would be the next step, what do you propose? We need to understand why the installation is long, and we need to do something about it.

Best regards,
Zsolt
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Dear Catalin,

We made some further tests, and just would like to share with you a snipplet from one of our installation logfiles:

MSI (s) (E0:58) [10:40:42:291]: Executing op: CustomActionSchedule(Action=AI_IIsConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (E0:B8) [10:40:42:295]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIE012.tmp, Entrypoint: OnIIsConfig
MSI (s) (E0:58) [10:47:55:775]: Executing op: ActionStart(Name=AI_AiRestoreDeferred,Description=Executing restore operation,Template=Path: [1])
MSI (s) (E0:58) [10:47:55:775]: Executing op: CustomActionSchedule(Action=AI_AiRestoreDeferred,ActionType=11265,Source=BinaryData,Target=**********,)
M

OnIIsConfig took 7 minutes, previously we have never seen anything like that, when we used older AI versions like 19.7

Best regards,
Zsolt
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi Advanced Installer Team,

This ticket is rather important for us, do you have any updates? I've sent my last message 6 days ago, and we really would like to know why nowadays our installer takes much longer, and sometimes crashing as well. Some customers of ours are waiting for the outcome of this ticket.

Thank you!
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi Zsolt,

We apologize for the delayed reply on this.

To further investigate and check on this, can you please send us the following resources from your side:

1. the .AIP (setup project) file built with AI 19.7
2. the .EXE setup file built with AI 19.7
3. the .AIP (setup project) file built with AI 22.8
4. the .EXE setup file built with AI 22.8

so we can run a set of tests on our side too?

I have sent you by email an upload link where you can share with us the above resources.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi Daniel,

I've just sent the files via WeTransfer.

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi Zsolt,

Thank you for your sent files.

I have tested your EXE setup files and replicated the additional installation time triggered by our "AI_IIsConfig" action when using the setup built with Advanced Installer 23.6.

Recently my development team worked on some improvements (not release yet) for IIS feature and we tend to believe this should help you too.

I have sent you over email a download link for our IIS module that implements those improvements.

Just give it a trial and let us know if this fixes the tedious installation time on your side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation takes longer after upgrading to AI 22.8 (from 19.7)

Hi Zsolt,

Here it is the IIS.ZIP attachment.
iis.zip
(860.51 KiB) Downloaded 2554 times
Just download and then extract the iis.dll module and replace it in your Advanced Installer installation folder; i.e. "C:\Program Files (x86)\Caphyon\Advanced Installer 23.6\custact\x86\iis.dll"

Then just rebuild your setup project with Advanced Installer 23.6 and run a few tests on the machines where you replicated the tedious installation time.

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

Return to “Common Problems”