invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Update.exe is Hanging Rarely

Update.exe works most of the time. But there are occasions when it does not in the field and it has taken us a long time to capture it in the lab. I have a VM exhibiting this problem now in our lab.

Update.exe is launched by our Windows Service when it is notified by our cloud to do so. Eg. command line:

Code: Select all

Update.exe /silentall -nofreqcheck -url http://example.net/download/update/Update%20for3.1.0.115.txt
If I look in the task manager update.exe is running and never exits. (msiexec.exe is also running)

A new update log file is emitted but I need assistance decoding it (attached). Does it give a clue as to why update is not working? If not, what other investigative steps do you recommend?

Also, I was surprised to find the update log file in c:\windows\temp and not in %temp% which in this case would be C:\Users\qaW7-64\AppData\Local\Temp.
Attachments
Update.log
Sanitized Update.log
(6.08 KiB) Downloaded 458 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update.exe is Hanging Rarely

Hello,

Please take a look on our "Launching AutoUpdater from service" thread which may be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Update.exe is Hanging Rarely

Note to future self:

* Add "/qn" to MSI Command line for the update build in bootstrapper. This will make it launch quiet with no UI.

* Change Extract Location in bootstrapper from "[AppDataFolder][|Manufacturer]\[|ProductName] [|ProductVersion]\install" to " [TempFolder]\[|ProductName] [|ProductVersion]\install". The Windows service does not have access to [AppDataFolder].
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Update.exe is Hanging Rarely

So this remains problematic for us when running as a service under Win7 64-bit.

[TempFolder]\[|ProductName] [|ProductVersion]\install is resulting in: c:\windows\temp\install (without any of the parameters).

We didn't see this until now because it requires an Install 1.0 -> Update to 1.1 and then the second Update to 1.2 fails. Because we're running into this problem.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update.exe is Hanging Rarely

Hello,

I'm not sure why this happens. Please keep in mind that the above extraction path should be resolved to:

Code: Select all

C:\DOCUME~1\<user>\LOCALS~1\Temp\Your Application 1.0.0\install
on Windows XP target machines, and to:

Code: Select all

C:\Users\<user>\AppData\Local\Temp\Your Application 1.0.0\install
on Vista or above target machines.

So, can you check the above locations to see if the extraction mechanism works?

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

Return to “Common Problems”