Updater Service downloads updates but fails to install with 1053 - Advanced Installer Community
arend.danielek
Posts: 1
Joined: Tue Jan 29, 2019 7:48 pm

Updater Service downloads updates but fails to install with 1053

Hello, my company's application uses the Advanced Installer updater.

We are running into an issue where the updater scheduled task tries to run the service for a quiet non-elevated update, but we receive the following in the updater log:

```
<< Advanced Installer (x86) Log >>
OS Version: 10.0.17134 SP0 (workstation) [x64]
# 2019-01-29 13-58-27 [PID=14392|Thread=15112] | Service running from path: "C:\Program Files (x86)\<MANAFACTURER_NAME>\<APPDIR>\<UPDATER_FILE_NAME>.exe" /runservice /set loglevel "Error|Debug"
# 2019-01-29 13-58-27 [PID=14392|Thread=15112] | LegacyIpcObjectBaseName:
# 2019-01-29 13-58-27 [PID=14392|Thread=15112] | Unable to start service: <SERVICE NAME> LastError: 1053
```
This results in the updates downloading but not being installed.

Here are some screenshots of the pertinent settings for the service:

Updater
UpdaterConfig.png
UpdaterConfig.png (34.07 KiB) Viewed 1836 times
Updater Service
UpdaterServiceConfig.png
UpdaterServiceConfig.png (27.6 KiB) Viewed 1836 times
Updater Control
UpdaterServiceControl.png
UpdaterServiceControl.png (8.81 KiB) Viewed 1836 times
I've been investigating this for a bit, but all the info I can find on the 1053 error is related to other applications and the suggested fix I keep finding is to increase the timeout registry entry. That does not seem like a viable distributable solution.

Is it possible the service is timing out during the download of our update(s)? The updates average around ~250mb each so they can take awhile to download over slower connections.

I'm also curious what the message `LegacyIpcObjectBaseName` is about.

My current leads as of making this post are the !note on this page: https://www.advancedinstaller.com/user- ... dates.html
In particular does the requirement "The service name must match the name of the Updater file." require matching whitespace or lack there of in the service and updater file names?

The elevated updates page also seems to conflict with the `/runservice` entry on this page: https://www.advancedinstaller.com/user- ... dater.html.

```
Enables the Updater to run as a service. It can only be used if you want to manually install the service required by our Install updates without elevation support. The Updater service should be configured to start using the /runservice command line argument.
```

Or does "manually install the service" refer to checking the "Install support service" option for the updater?

Also as an aside what is the expected behavior if the update has "Use check frequency" set to true with the scheduled task set up? and are the service and scheduled task intended to be used together?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater Service downloads updates but fails to install with 1053

Hi and welcome to our forums.

This problem most likely appears because you added the "/set loglevel "Error|Debug"" command in the "Arguments" field of the service properties. Please keep in mind that this command is intended to be sent to the Updater to enable its logging, but it does not work for the updater service. Can you remove that and see if the problem disappears?
Is it possible the service is timing out during the download of our update(s)? The updates average around ~250mb each so they can take awhile to download over slower connections.
No, the size of the updated and the internet connection should not cause such problems.
In particular does the requirement "The service name must match the name of the Updater file." require matching whitespace or lack there of in the service and updater file names?
Yes, this is the recommendation. Furthermore, when you check the "Install support service" option from the "Updater" page, the service is automatically configured with the correct name.
Or does "manually install the service" refer to checking the "Install support service" option for the updater?
Yes, this refers to checking the "Install support service" option from the "Updater" page.
Also as an aside what is the expected behavior if the update has "Use check frequency" set to true with the scheduled task set up? and are the service and scheduled task intended to be used together?
If the "Use check frequency" option is set a check frequency interval is set for the Updater. When the Updater is launched, if the check frequency has passed and updates are found, they will downloaded and installed, otherwise the Updater will exit immediately.

The service and the scheduled task are not especially bound to each other, but they can be set to work together or not based on your needs.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”