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

Prerequisites either not recognized or reboot is missing

Dear Advanced Installer Support Team,

The following 2 in-build prerequisties are needed by, but we are not able to use them properly in our AI (13.6) project:
- Visual C++ Redistributable for Visual Studio 2015 Update 3 x64
- Visual C++ Redistributable for Visual Studio 2015 Update 3 x86


Problem 1: The default install conditions of the x64 version is wrong:

Scenario 1: neither x86 nor x64 version is pre-installed on the end-PC:
Expected behavior: Installer offers both versions for installation.
My test result: This scenario works fine, both versions were offered for installation.

Scenario 2: x64 version is pre-installed on the end-PC:
Expected behavior: Installer offers x86 version for installation.
My test result: This scenario works fine, x86 was offered.

Scenario 2: x86 version is pre-installed on the end-PC:
Expected behavior: Installer offers x64 version for installation.
My test result: PROBLEM! Both version were offered for installation.



Problem 2: Prerequisite installation requires a system reboot, but it´s not working properly:

We noticed that in a certain scenario, if an older version of Visual C++ Redistributable for Visual Studio 2015 is installed on the PC and its file is in use (blocked), the prerequisite installer dialog displays an error (see the screenshot) for us and the installation is getting suspended.

If the files of the older version are not blocked, the installer works as expected.

The error is displayed, because the new prerequistes (both) require a system reboot but we suppress it on purpose by having "/quite /noreboot" command line params in Prerequiste -> Setup Files -> Install Command Lines section.

Without having /noreboot there, the installer restarts the PC after each prerequisite. It means if we define 4-5 prerequisites, and all of them require a reboot because of something, the PC will be restarted 4-5 times until the user can really bypass the prerequisite dialog. This is something we would like to prevent, multiple reboots ruin the user experience. What is your suggestion? How could we convince our installer to install all the prerequisites and remember if any of the prerequisites require a reboot. If so, then the reboot should be triggered at the end of the complete installation. From user experience point of view, this solution would be the best.

While I tried to find a solution for this, /norestart was replaced by me to /promptrestart. I was curious whether the user will be asked after each prerequisite if he wants a reboot or not, but /promptrestart seems to be not handled by Advanced Installer 13.6. Automatic reboot happened after each prerequisite installation.

Please see my sample project attached. Could you please use it for testing? Note: Make sure you have an earlier version of Visual C++ Redistributable for Visual Studio 2015 installed on your test PC and his files are being used by a diff. process.

Thanks in advance,
Zsolt
Attachments
PrereqProblem.zip
(20.18 KiB) Downloaded 384 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites either not recognized or reboot is missing

Hi Zsolt,
Problem 1: The default install conditions of the x64 version is wrong:
Indeed, this problem appears, but only when both x64 and x86 versions of the prerequisite are installed and then the x64 version is uninstalled. You can see more details and also a solution described in the 5 and 6 points of the "Problem installing Microsoft Visual C++ 2015 Redistributable (x86)" thread.
Problem 2: Prerequisite installation requires a system reboot, but it´s not working properly:
I'm afraid that this is the normal behavior. The installer checks the versions of some files before installing those prerequisites and re-evaluates them after the installation, however, since those files are in use and cannot be updated unless a reboot is performed, the installer thinks that the prerequisites were not installed correctly. The normal approach is to let the reboot happen.

If you want to suppress the reboot and also continue the installation, you can check the "Continue with main installation even if the prerequisite is not installed" option for the prerequisites.

Let me know this helped.

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

Re: Prerequisites either not recognized or reboot is missing

Hi Eusebiu,

For Problem 2:
Our goal is suppressing the reboot operation to happen after the individual prerequisites are installed and trigger a reboot at the end of the prerequisite installation procedure (after the user is stepping through the prerequisite dialog) only. With other words: if the customer installs 4-5 prerequisites, the prereq dialog should install all of them without a reboot and after the dialog the user should be asked with a message like:

"Some of the prerequisites you installed require a reboot. Do you want to reboot your PC and continue installation afterwards?"

From user experience point of view this solutions would be the most favorable for the users.

All the other options
- completely suppressing the reboots -> chance of deprecated files
- rebooting after each prerequisite if it requires a reboot -> it´s possible to have 4-5 reboots in a row
- rebooting without the user is being asked -> possible data loss
are much worse from users point of view.

Could you please check what kind of other options AI can offer?

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites either not recognized or reboot is missing

Hi Zsolt,

I apologize for the delayed reply.

To reboot the machine only after all the prerequisites were installed, you can use the "/norestart" command for them, then set the "REBOOT" property to "Force" in the main package, so a reboot will be required after the main package is installed.

If you want to reboot the machine before the installation of the main package starts, you can select the last prerequisite from the sequence and check the "Reboot system after installing this prerequisite" option for it.

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

Re: Prerequisites either not recognized or reboot is missing

Hi Eusebiu,

Your second proposal (check the "Reboot system after installing this prerequisite" option for it) would be fine for us, but that solution is still not exactly what we would like to have: as we already reported it to you in a different thread
http://www.advancedinstaller.com/forums ... 017#p93017
our customers are complaining about unexpected reboots. Sometimes they simply lose data because of your reboots. They would like to get a confirmation dialog every time a reboot will occur on their PC. So similarly to the other AI ticket, we would like to reboot but with a confirmation dialog, thus our customers could still decide if they reboot immediately and continue installation or else they would like to continue working on something else.

This is the the source problem of both threads.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites either not recognized or reboot is missing

Hi Zsolt,

In this case you can implement the first solution that I suggested. Is there any reason the installation should be restarted after the prerequisites and before the main package installation?

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

Re: Prerequisites either not recognized or reboot is missing

Hi Eusebiu,

If I´m correct setting the "REBOOT" property to "Force" would result an automatic reboot - without a confirmation dialog - at the end of main package installation. As I already mentioned our customers are really pushing us to do something with unexpected/automatic reboots, they simply don´t accept it. They don´t want their PCs to be automatically restarted neither in full UI mode nor in silent install mode. For me it seems both of your proposals (setting "REBOOT" property to "Force" or enabling "Reboot system after installing this prerequisite") might cause an automatic reboot at some point of the installation, at least in silent mode.

The desired behavior would be to trigger a reboot with confirmation dialog only if either some of the prerequisties or the main package requires it. Performing a reboot after each installation makes no sense, in most of the cases (~95%) the installer can replace all the files without any problems so no reboot is needed at all. You could probably get some info from Windows Installer or else from the registry to determine if a reboot is needed or not. If so, a confirmation dialog should be displayed - even in silent mode (Auto Updater) - asking the customer if he allows a reboot at that time or he´s planning to do it later on. This scenario would be a modern way of managing reboots, but unfortunately it´s something we´re not able to achieve with the latest version of AI, no matter how we change our .aip project file.

Could you please advise me something? Do you think we could somehow achieve what we´d like to?

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites either not recognized or reboot is missing

Hi Zsolt,

Indeed, on a silent install, if a reboot is required, the machine will be automatically restarted. Unfortunately, this is the Windows Installer behavior.

In order to display a confirmation message after a silent install, would mean that the "Auto Updater" should be able to detect if a reboot is scheduled by Windows Installer and override that command in case the user refuses the reboot. As I mentioned in another thread, I already added this on our TODO list, but I cannot guarantee that this will be possible.

Meanwhile, you can suppress all the reboots and display a message to the user informing him that a reboot may be necessary, so he will manually restart the machine when he is able to.

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

Re: Prerequisites either not recognized or reboot is missing

Hi Eusebiu,

In a different AI ticket we collected all the issues we need a fixture for
http://www.advancedinstaller.com/forums ... 992#p93992

There we explained our problems with the reboots and your colleague, Daniel promised us that AI will try to find a solution for our scenarios. So currently we´re waiting for the outcome of that ticket and hope that a kind of reboot mechanism will be added to AI by you.

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

Re: Prerequisites either not recognized or reboot is missing

Hello Zsolt,

I'm very sorry for this, but there is really no improvement we can implement in this regard. Please have a look on my complete answer from "PC is rebooting without any confirmation after an update is installed by Auto Updater" thread.

Thank you for your understanding.

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

Return to “Common Problems”