fabien
Posts: 9
Joined: Fri Jul 06, 2012 10:48 am

Conditional Restart

Hi,

According to this page I try to perform a conditional reboot based on installed features.

I create a custom action, which set the property REBOOT to Froce. I also try to define different Reboot Behavior on Installation option, but the reboot is never conditionnaly prompted...

Image

If anybody have an idee to help me :)


Fabien
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Restart

Hello Fabien,

In order to achieve what you want you can proceed like this:
- Go to "Install Parameters" page and set the "Reboot Behavior" field to "Prompt for Reboot when required".
- Go to "Custom Action" page and add a "Set installer property" custom action with sequence, after "Install Execution Stage" -> "Finish Execution" standard action, like this:
  • Property: REBOOT
    Formatted: FORCE
    Condition: Your Condition
- Build and run your project.

Let us know if this helps, otherwise give us more details about the scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fabien
Posts: 9
Joined: Fri Jul 06, 2012 10:48 am

Re: Conditional Restart

I try to set the property like to say... with a simple property... but it doesn't work...

Reboot is never prompt...

Image

Image
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Restart

Hello Fabien,

You could encounter this behavior if you are using our "Enhanced User Interface" feature. This seems to be an Advanced Installer issue. We will try to implement a fix in a future version of Advanced Installer.

Until then, a solution would be to disable the "Enhanced User Interface" or you can proceed like this in order to obtain what you want:
- Go to "Dialogs" page and select the "VerifyReadyDlg" from "First Time Install" dialogs tree.
- On [Install] button add a "SetProperty" published control event, using [New...] button, like this:
  • Name: [REBOOT]
    Argument: FORCE
    Condition: YOUR CONDITION
Our "Dialog Editor" feature needed to implement this solution is available only starting with an "Enterprise" project type.

Let us know if this helped.

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

Return to “Common Problems”