Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Dear Advanced Installer Support Team,

There are a few very interesting problems we found while testing your Auto Updater feature by trying to install a major update and a patch in one go:
1. the UAC dialog may appear unexpectedly
2. the patch could be never installed as it says "Installation failed...."

Here are the repro steps we did:

1. Installed our previous release (13.0.7) - that has been created by AI 12.0.0 - on a Windows 8.1 machine, so the PC will contains the updater.exe coming from Advanced Installer 12.0.0.
2. Created the latest major update (14.0.1) of our product by using the latest Advanced Installer (12.8).
3. Also created a patch for our latest major update (14.0.2 by keep existing version option).
4. Created the relevant updates config file, please find it attached.
5. Copied the proper executables (.exe and .msp files + updates config file) to the given Windows 8.1 machine and created a snapshot.
6. Triggered the update process by executing the following command:
path_to_the_Updater.exe /checknow -url "file://path\to\updates\config\TheClient.txt"

At this point we experience to different behaviors:
- Either your updater.exe starts doing something in the background (we see it from Task Manager) and then waits for a while and shows the UAC dialog for some reason.
- Or your updater.exe installs the major update without a UAC dialog, however prints "Installation failed..." message for our patch.

The most interesting thing is that we don't know the reason of getting the UAC dialog. We do exactly the same steps in every case: applying our snapshot and launching the updater.exe by the same command. Nothing else. Sometimes our major update is installed without UAC, sometimes the UAC comes, we click on NO, then we Cancel the updater.exe's dialog and restart the updater.exe by the exact same command and click on Next -> again we have 50% chance of getting our major update installed without UAC.

Note 1: The described behavior happens only if both of the updates are selected in the updater dialog. If the patch is unselected by us and the Next button is pressed, UAC never appears. So our major update and patch can be installed 1-by-1, trying to install them in one go is never working perfectly: either we get the UAC or the patch is simply not installed.

Note 2: Some time ago we performed many tests to install different update combinations and we remember installing a major update and a patch in one go was possible back then. That's why we're wondering if the newest AI version may cause this trouble for us.

Note 3: Is the order of the update section in the update config file matters? We'd like to show our major update at the top of the updater dialog's listview, then the patch comes. We suppose the order of installation should depend upon the version numbers. Is that correct? Anyway, we tested this issue by swapping the sections in the updates config file (patch is first, major update is second), but the updater.exe still could not install 2 updates in one go.

Could you please help us investigating this? As this issue is a very strange/difficult one, we don't think we can create proper sample project for it. Is there a way of debugging/logging your Auto Updater exe? We'd like to understand why the UAC dialog comes and why our patch can never be installed along with our major update. Could you please also check the attached update config file for us and let us know if you'd change something with it? Please consider that file which is installing our major update in 50% of the cases without UAC, so we think the file should be fine in a way.

Any kind of help/suggestions would be highly appreciated!

Best regards,
Zsolt Kollarits
Attachments
TheClient.txt
(1.64 KiB) Downloaded 495 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hello Zsolt,

In order to get a clear view of your project settings can you please send us to support at advancedinstaller dot com the following installation projects:
1. the AIP of your v13.0.7
1. the AIP of your v14.0.1
1. the AIP of your v14.0.2
4. the AIP of your patch project
5. and the AIP of your updates configuration project

I was able to replicate the second issue you reported, but I cannot replicate the first one either. In the meantime we'll investigate the second issue and try to find a resolution for it.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hi Daniel,

Sorry for the delayed answer, I´ve just sent you the sample projects you asked for to support@advancedinstaller.com.

As I earlier mentioned, the first issue (unexpected UAC) is reproducible in our side, however we can´t figure out the reason of it as the behavior is entirely non-deterministic. Applying the same snapshot of the same virtual machine and clicking on the same .exe sometimes shows us the UAC, sometimes not.

Could your please check our .aip projects and advise us something?

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hello Zsolt,

I've sent you by email two fixed modules of our application. Just let us know if they fixed your issues.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hi Daniel,

Thanks for your previous email and for the new files. I'd still need your help as I can still see the original issues, although I replaced the 2 files in the folder you pointed in your email. The things I've done:

1. Copied the files you sent me to my
C:\Program Files (x86)\Caphyon\Advanced Installer 12.8\stubs\x86 folder.
This part was a little bit confusing for me as you told me in your mail that I have to insert the files to C:\Program Files (x86)\Caphyon\Advanced Installer 13.0\stubs\x86, however the latest version of the Advanced Installer (at least what I could see on your webpage) is 12.8.

2. I used our.aip projects - I already sent them to you - and recreated our major (.exe) file and our patch (.msp) files. Also I recreated the update config files by using the relevant .aip projects.

3. Tried to use the updated files in our test VMs in the exact same way (exact same snapshots) like I did before and expected a different outcome.

4. Unfortunately I still cannot install a major update and a patch update in one go. In most of the cases the full-UI installation is getting started instead of the silent installation. Further the patch can never be installed, only the major updated will be on the VM after the operation is done.

Could you please advise me something how to continue? Should we wait for AI 13.0? It appears you're already using that version.

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hello Zsolt,

Indeed, you should have replaced the received files in the "C:\Program Files (x86)\Caphyon\Advanced Installer 12.8\stubs\x86" folder. Can you let us know if did you also rebuild the setup package which installs the Updater.exe tool which you are launching to install updates (major and patch)? If not, please also rebuild the old product version (the one which installs the Updater on target machine) and then test again the scenario.

Our AI 13.0 version is in beta stage and its official release should be available in the next two weeks.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Dear Daniel,

Thanks for the tip to refresh the old product version before starting the Auto Updater, it´s quite obvious that the old product´s Updater.exe will be used in this case. I´ll do another round of tests.

Nevertheless there are some furher question I´d like to ask:

1.
Let´s say we release the 2015´s version of our product by using Advanced Installer 12.0.0, because that was the newest back then. We create update packs for our 2015´s release, all the update packs are released as MSP files, therefore we always have to use 12.0.0. In 2015 update 4 we enabled the Auto Updater feature (Updater.exe is coming from Advanced Installer 12.0) and released it as it is.

Later we released our 2016´s versions by using Advanced Installer 12.8.0. At this point we found the bug this incident is about: installing 2015 U4 on a virtual machine and then trying to install 2016 (14.0.1) and 2016 update 1 (14.0.2) in one go by using your Auto Updater feature is not working as expected. Let´s say you fix the bug, but I think we don´t have the chance to fix our original issue since our clients have the old product version 2015 update 4 with the old Auto Updater.exe on their PCs.

2.
The 2016´s version of our product is already out, it has been prepared by Advanced Installer 12.8.0. Apparently the bug this incident is about will be fixed in Advanced Installer 13.0.0, so we could get a fixed updater.exe if we´d build a new .EXE file for our product by using AI 13.0.0. In the meantime our plan is to release our update packs (e.g update 1) as MSP files so we must use Advanced Installer 12.8.0 to generate our future packages. How can we include your bugfix into our next update packs? Why upgrading Advanced Installer is breaking the patch rules?

Thanks in advance for your answers! Clarifying these question would be really appreciated!

Best regards,
Zsolt
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hello,

The issue related with the Updater working as a service fails to install patch update alongside a major upgrade was fixed in version 13.0 of Advanced Installer released on June 2nd, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hi Daniel, Dan,

Thanks for your response. Basically we re-created all of our executables by using your latest Advanced Installer (13.0) and re-tested everything - all of the scenarios/repro steps we´ve done originally - by using the new executables: unfortunately we saw the same problem like before. This time we also replaced the updater.exe file (generated by your Auto Updater feature) of our old product before triggering the update mechanism, but we still could not install a major update and a patch in one go. Could you please advise us something?

In addition some more questions came into our minds while doing some tests, you can find those questions in my previous post. Could you please have a look at those too?

Thanks in advance for your help!

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hello Zsolt,

This is strange. Can you let us know on which Windows OS version do you test the updates installation scenario?

Also, could you please send us again all of your AIPs (project files) to support at advancedinstaller dot com so we can investigate their settings again (just to double check the settings)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Auto Updater: UAC appears unexpectedly if installing 2 updates in one go

Hi Daniel,

I just sent the project files to support@advancedinstaller.com.

The client PC we use for testings is a Win 8.1 64 bit machine.

Best regards,
Zsolt

Return to “Common Problems”