Auto Update service error message - Advanced Installer Community
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Auto Update service error message

Often in my testing on an Oracle Virtual Box when I'm testing our automatic update implementation of AI, I get this error message:

"Error : The support service has encountered an error".

However, that message seems to be bogus, in that the installer completed successfully in auto-updating my test system. In addition when I look at the Install.log file that I create I see no reference to this error. Whether I get the error or not, I can see that Updater EXE is going through the "downloading..." phase, then on to the "installing phase..." where I notice that the existing app is removed (the desktop icon is removed as well as the program files\myapplication tree) and then the app is installed (the desktop icon appears again, and the files are installed to the program files\myapplication tree).

What's the most odd about it is that it's not consistent either. One time I do the steps to test it and it works, another time I do the steps to test it and it throws that error. It appears to me that the problem is most prevalent if I do back-to-back installations of the system without doing a reboot. Our installer does not require a reboot.

The net effect of this is I lack the confidence to move forward with the latest versions of AI, because testing is more difficult and if we get the auto update feature wrong it takes two releases and a lot of grief to fix it.

I wonder if anyone else has encountered this message and if you can give me some hints about what I can do to decipher why it is popping up.

Thanks,
Kevin
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: Auto Update service error message

I am wondering if I was querying the wrong RegKey all along and maybe that is where the "Error : The support service has encountered an error" message was coming from?

I was querying this key:
HKUD\Software\<Manufacturer>\<ProductName>\Version

Yet all of the examples I've seen recently seem to suggest this key as the one that should be searched:
HKLM\Software\<Manufacturer>\<ProductName>\Version

Since making that correction to my Updates Config AIP file I haven't encountered the error again but keep in mind the # of test iterations is still relatively small.

EDIT: I had a typo, should have been HKLM for the second hive, so I've modified it above.
Last edited by kjullion on Mon May 16, 2016 4:17 pm, edited 1 time in total.
Strongsson
Posts: 1
Joined: Mon May 09, 2016 1:25 pm

Re: Auto Update service error message

I had the same error but now it's gone. Somehow.
Know we know more about upcoming Brett Eldredge tour in 2016.
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: Auto Update service error message

I found the problem to be intermittent. So, it's possible you will see it again.
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: Auto Update service error message

For the AI Tech Support folks:

In an Update Config project what is the recommended / correct hive that we should query for the "update Installed Detection" > "Registry Value".

My AIP now has "HKLM\Software\<Manufacturer>\<ProductName>\Version"

And, can you please give me a little background on whether or not these actual registry keys are equivalent?

"HKLM\Software\<Manufacturer>\<ProductName>\Version" <=======> "HKLM\SOFTWARE\Wow6432Node\<Manufacturer>\<ProductName>\Version"

Thanks, in advance.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Auto Update service error message

Hello Kevin, Strongsson,
My AIP now has "HKLM\Software\<Manufacturer>\<ProductName>\Version"
The default search uses HKUD registry hive which makes the Updater check both HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE.
And, can you please give me a little background on whether or not these actual registry keys are equivalent?

"HKLM\Software\<Manufacturer>\<ProductName>\Version" <=======> "HKLM\SOFTWARE\Wow6432Node\<Manufacturer>\<ProductName>\Version"
On a 64-bit machine only 32-bit registry entries will be checked if the 64-bit option is not enabled. So, the HKLM\Software\<Manufacturer>\<ProductName>\Version will be resolved to HKLM\SOFTWARE\Wow6432Node\<Manufacturer>\<ProductName>\Version during the search operation.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”