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
FOLLOW US
Get the latest news in Application Packaging