netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Installing prerequisite forces reboot without warning

I have a prerequisite that needs to be installed before my actual program. Installation of this prerequisite in some machines will create a reboot prompt, the result of this in the installer is that it will trigger a force reboot without warning.

I have already set the setting to suppress all reboot and force reboot prompts but it does not seem to have an effect on the prerequisite installation. Is there any way I can suppress this behavior?

Running v13.8.1 build 77369. Project files will be sent via email.
Attachments
Supressed.PNG
Supressed.PNG (7.32 KiB) Viewed 6954 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Installing prerequisite forces reboot without warning

Hello,

Please note that when installing a prerequisite, a new package installation will begin. The setting to suppress all reboots and reboot prompts can only have an effect on the main package itself.
Is there any way I can suppress this behavior
This can be done by using a command line option for the prerequisite. In order to achieve this. please go to "Prerequisites" page, select the prerequisite and go to "Setup Files" tab. You should enter your command line in the Install Command Lines section, on all the three modes: "Full UI", "Basic UI", "Silent (no UI)".

If the prerequisite is MSI based, you could use the following command line:
/norestart
For EXE prerequisites, you should determine if there is a command line option to run without reboot.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Installing prerequisite forces reboot without warning

Hi Sorin,
If the prerequisite is MSI based, you could use the following command line:
/norestart
Adding this in does stop the prerequisite from initiating a force restart. However it also resulted in the installer not proceeding as originally intended as the prerequisite complains that installation was not successful.
Prompt.PNG
Prompt.PNG (11.32 KiB) Viewed 6931 times
To fix this issue I have attempted to change the setting to continue installation even if prerequisite installation was not successful.
Setting.PNG
Setting.PNG (1.48 KiB) Viewed 6931 times
However I noticed the prerequisite wizard after this setting allows the user to uncheck the prerequisite checkbox which we dont want them to be able to. I believe the setting also means that if the prerequisite installation genuinely fails due to some other reason the main installation will still continue. The main program cannot function without the prerequisite so I cannot let this happen.
Prerequisite.PNG
Prerequisite.PNG (1.1 KiB) Viewed 6931 times
Any suggestions on how I can fix this situation? I will take it up with the MSI owner on the restart behavior but I am not optimistic about getting a resolution from them.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Installing prerequisite forces reboot without warning

Hello,

Yes, indeed, selecting "Continue with main installation even if the prerequisite is not installed" option will give the user the option to unselect the prerequisite in that list. A possible workaround for this could be, if you use feature based prerequisites, to go to "Organisation" page, select the feature associated to the prerequisite and choose "Not Displayed" option from "Feature Tree". In this way the prerequisite will not appear in the list.

By the way, how is your prerequisite added, as a feature-based or as a Pre-install one? Note that Pre-Install prerequisite do not create a feature entry in the Organization page. In this case you could just delete the PrerequisiteDlg from your "Dialogs" page.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Installing prerequisite forces reboot without warning

Hi Sorin,

It is added as a Pre-Install prerequisite. To confirm, you are saying to delete this dialog?
Capture.PNG
Capture.PNG (177.83 KiB) Viewed 6899 times
This will 'hide' the choice from the user thus ensuring that they will not uncheck this prerequisite. Is my previous statement still valid? Namely, if a genuine error occurs the main installation will still continue?

I am currently building the installer to test the above.
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Installing prerequisite forces reboot without warning

Hi Sorin,

I have tested this and it works, the prerequisite dialog is hidden and the installer proceeds as intended. With the caveat that my question from before is still pending confirmation :)
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Installing prerequisite forces reboot without warning

Hello,
This will 'hide' the choice from the user thus ensuring that they will not uncheck this prerequisite. Is my previous statement still valid? Namely, if a genuine error occurs the main installation will still continue?
Yes, if you keep "Continue with main installation even if the prerequisite is not installed" option selected.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”