R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Patch installation with AI Updater ends up with UAC Dialog *urgent*

Hi,

we have the following situation:
  • Our latest major version was released in May (we call it Update 0)
  • A short time later, a new version was released (Update 1), which has fixed some major glitches of U0
  • We want now to release the next version (Update 2) as a normal patch update
Due to a number of issues Update 1 was released as an .exe file (msi packed into setup.exe with prerequisites), not as patch like it was planned originally.
I realized today, that this setup is violating a lot of MSI patch rules, nevertheless it was published with "install MSI as minor update if applicable" and the same product code as the first version.

We have now created the Update 2 patches (32- and 64-bit), for targeting Update 1 installations only. On the first tests it seems, that these patches are working as expected, at least as long as you try to install the patches manually as administrator. But we have also implemented the AI Updater mechanism, that we would like to use to update non-admin users to the latest version. Here the trouble starts.

Issue A): When installing Update 2 using the resulting .msp files an UAC dialog pops up, and the following error is written to the MSI log file

Code: Select all

MSI (s) (28:20) [15:14:57:290]: Note: 1: 3 
MSI (s) (28:20) [15:14:57:290]: SECUREREPAIR: SecureRepair Failed. Error code: 3B6DBE438
MSI (s) (28:20) [15:14:57:307]: Note: 1: 2265 2:  3: -2147287035 
MSI (s) (28:20) [15:14:57:307]: User policy value 'DisableRollback' is 0
MSI (s) (28:20) [15:14:57:307]: Machine policy value 'DisableRollback' is 0
Action ended 15:14:57: InstallExecute. Return value 2.
I found a post from you and from other people mentioning this issue (to add the product to the securewhitelist), this seems to solve that issue (see here). Unfortunately this key is not installed by default on our customer's computers yet.
I also found somewhere in the microsoft Daniel's posts and somewhere else another guy stated, that the issue might be depending of the author of the package, because it does not seem to be an MS issue.

Issue B) When installing the setup.exe file (same method as with Update 1), the Advanced Updater starts, it takes a while and an UAC dialog is shown.
No log file is written until this point, independently if this was configured in the update.txt file or not.

Issue C) When installing the setup.exe as Major Update (after changing product code) the same behavior happens as with issue B) - the UAC dialog is shown.

Issue D) When installing the setup.exe over an Update 0 installation, everything works fine. No UAC pops up, installation is continued and at the end we have Update 2 installed.

My final conclusion is, without better knowledge we have something destroyed with Update 1. We cannot even update to a new major version now (to fix something general), without entering the Administrator credentials on the UAC dialog (I can already hear our customers yelling at me, yeah :shock:).

This might be an side effect of some other issue, but I noticed another problem in the scenarios with setup.exe + UAC dialog: When I compare the installation of setup.exe over Update 0 with the installation over Update 1 + UAC + Admin credentials, then the command line statement was missing in the second case and the UI was starting not silently. I can provide further log files for that too, if required.

Any ideas how to analyze the underlying issue and to solve it?

I will send our project files of U0, U1 and U2 and the patch project to support@....staller.com with the same subject as this post to speed up analysis of this issue.

Thanks for helping,

Roland
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Patch installation with AI Updater ends up with UAC Dialog *urgent*

Hi,

some news here:

First of all, we have used AI 12.8 for the setup. After hours of testing we found out, that the updater.exe is causing the issues as described above.

Due to another issue (see here) we replaced updater.exe following your recommendation by an intermediate version provided by you (please see our email communication) which is based on the AI 13.0 version.

We replaced in a test environment the updated updater.exe by the original version provided with AI 12.8 and the issue was gone.

Now we are stuck. Is it possible to get a fix which is fixing both issues somehow? Is it save to replace updater.exe and external_ui.dll by the version officially delivered with AI 13 or AI 13.1?

Please respond!

Thank you,

Roland
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Patch installation with AI Updater ends up with UAC Dialog *urgent*

Hi Roland,

First of all thank you for the follow up message.
Is it save to replace updater.exe and external_ui.dll by the version officially delivered with AI 13 or AI 13.1?
Yes, you can replace the Updater.exe and Updater-res.dll from a newer version of Advanced Installer. However, you should test after replacing the resources in order to make sure that everything is working as expected. You need to replace both Updater.exe (you can find it in the /Advanced Installer 13.1/stubs/res) and Updater-res.dll (you can find it in the Advanced Installer 13.1/stubs/x86).

Please let me know if the behaviour still persists.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Patch installation with AI Updater ends up with UAC Dialog *urgent*

Hi Dan,

last time Support instruced us also to replace "c:\Program Files (x86)\Caphyon\Advanced Installer 12.8\stubs\x86\ExternalUi.exe".

What about this file?

Regards,

Roland
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Patch installation with AI Updater ends up with UAC Dialog *urgent*

Just a quick summary from me, what happened so far.

After hours of testing different scenarios and comparing different MSIs and MSPs, it turns out, that a previously installed Advanced Installer hotfix is causing that issue. You can read this post for more details about that. To make it short, at this time we experienced problems when upgrading our product to a later version, when a major and a following patch are ready for installation and listed in the update.txt file. The user must start the installation twice instead of get Major+Patch installed in one run. The hotfix was fixing that, but now also broke the installation of the current update. Sure we have tested that, but it for some reason it is not working right now.

Basically AI support advised us to replace updater.exe and Updater-res.dll, as recommended in this post by files taken from Advanced Installer 13.1. This is fixing the current problem, but leaves another gap: How do we update already existing client installations, when we can't run anything without getting either an error (Issue A) or an UAC prompt (Issue B and C) ?

Regards,

Roland
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Patch installation with AI Updater ends up with UAC Dialog *urgent*

Hello Roland,

I think this happens because building a patch with AI 12.8 between your setup including the fixed Updater of AI 13.1 and the new setup (Update 2) is not possible.

Can you please build your next version (Update 2) of your setup as a major upgrade with 13.1 version of Advanced Installer, and test again the update installation? If the issue still persists please send us by e-mail a download link for all three setups: Update 0, Update 1 and Update 2 to support at advancedinstaller dot com so we can fully test your current installation setup on our side.
last time Support instruced us also to replace "c:\Program Files (x86)\Caphyon\Advanced Installer 12.8\stubs\x86\ExternalUi.exe".

What about this file?
This file should not be replaced for further setup packages. Just make sure you create the new major upgrade setup with AI 13.1.

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

Return to “Building Installers”