tmwoods
Posts: 11
Joined: Thu Dec 19, 2019 10:32 pm

Installer hangs for 10-15 minutes

Tue Nov 23, 2021 6:50 pm

I have a rather light-weight installer that executes a few custom actions and installs a Windows Service. In the install action, it appears to hang before even executing the action for anywhere between 10-15 minutes. I am executing this install silently with msiexec.

The logs:

Code: Select all

MSI (s) (6C:48) [09:22:03:777]: Executing op: ActionStart(Name=AI_XmlConfig,Description=Executing XML file configurations,Template=Configuring XML file: "[1]")
MSI (s) (6C:48) [09:22:03:792]: Executing op: CustomActionSchedule(Action=AI_XmlConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (6C:80) [09:22:03:792]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIBC7D.tmp, Entrypoint: OnXmlConfig
MSI (s) (6C:A8) [09:22:03:792]: Generating random cookie.
MSI (s) (6C:A8) [09:22:03:792]: Created Custom Action Server with PID 3808 (0xEE0).
MSI (s) (6C:FC) [09:22:03:808]: Running as a service.
MSI (s) (6C:FC) [09:22:03:808]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
MSI (s) (6C:48) [09:34:41:114]: Executing op: ActionStart(Name=InstallServices,Description=Installing new services,Template=Service: [2])
MSI (s) (6C:48) [09:34:41:114]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (6C:48) [09:34:41:114]: Executing op: ServiceInstall(Name=myService.exe (myVersion_v1.108.0.0),DisplayName=My ServiceHub (myVersion_v1.108.0.0),ImagePath="c:\Program Files (x86)\somePath\myDir\myVersion_v1.108.0.0\myService.exe",ServiceType=272,StartType=2,ErrorControl=1,,Dependencies=[~],,,Password=**********,Description=Service used by my code,,)
Note that it took 12.5 minutes before continuing. The system resources are flat, not sure what would be causing this.

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer hangs for 10-15 minutes

Wed Nov 24, 2021 1:33 pm

Hello,

Unfortunately, I can not say for sure why this is happening.

A possible cause for this can be an AntiVirus product that keeps the file in use for that duration.

Does the machine where you are testing this have an AntiVirus product installed? If so, could you please disable it momentarily and retest the scenario?

If that is not possible, perhaps you can try to test the setup on a clean machine (e.g. a Virtual Machine).

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”