matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Please check my reboot behaviour settings

Hi there,

My installer needs to reboot:

-> on install
-> on un-install
-> but NEVER on major updates (not using specific update project)

For specific reasons to do with our product that runs as a windows service and it hooking into standard windows processes, I had to set the reboot behaviour to "Suppress all Reboots and Reboot prompts", otherwise a major upgrade always wanted to do a reboot due to the "files in use" during the removal of the old product stage in the upgrade process.

I have a custom action to set the REBOOT property to "Force" which is supposed to run on every fresh install, and every complete removal.

The problem i have is that it won't execute on first install. It works fine for major updates and complete removal. I have tried this with minimal UI and the default UI. No difference.

I ran it with verbose logging enabled, the log, at least to me, looks like it popped the reboot prompt but the user selected to defer. However that reboot prompt never shows.

I am sending you the .AIP and the verbose log.
out.txt
(549.34 KiB) Downloaded 415 times
CapisceClient64.aip
(106.66 KiB) Downloaded 584 times
Thanks,
Matt Luthi
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Please check my reboot behaviour settings

Hello Matt,
My installer needs to reboot:

-> on install
-> on un-install
-> but NEVER on major updates (not using specific update project)
In order to achieve that you can go in the Custom Actions page and change the Execution Stage Condition options for the SetRebootProperty custom action as it can be seen in the attached image:
printscreen.png
printscreen.png (15.72 KiB) Viewed 5973 times
Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Please check my reboot behaviour settings

Oh my.. I've never thought of clicking on that *label*
Those extra options don't take up too much space - perhaps you could just show them there.

Anyway, thanks for this, I'll check this out next.
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Please check my reboot behaviour settings

I have changed my settings as per your instructions but I still don't get the reboot prompt on first install. Could you please have another look? I have run this on 6 different computers with the same result.
CapisceClient64.aip
(100.57 KiB) Downloaded 655 times
Thanks,
Matt
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Please check my reboot behaviour settings

I think I should also send the verbose log...
out.txt
(683.15 KiB) Downloaded 710 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Please check my reboot behaviour settings

Hi Matt,

This is happening because you have selected the Suppress all Reboots and Reboot prompts option for the Reboot Behavior in the Install Parameters page.

In you case, you can go in the Install Parameters page and select for the Reboot Behavior the Prompt for Reboot when required option. Also you can enable Perform the reboot if required without showing any prompts option if you want to reboot automatically without prompting the user.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”