[wix-users] Restart from MBA

Farrukh Waheed farrukh1 at gmail.com
Mon Jun 6 04:22:19 PDT 2016


I'm currently fighting with my MBA with the installation of a Windows
Update (.msu package), which requires a restart.

Here is what I have achieved so far as working thing;
If there is a restart required due to any Package, then, in
ExecutePackageComplet() {
if(e.Restart==ApplyRestart.RestartRequired)
 DoReboot=true;
//But this is not necessary, because in  ApplyComplete(), e.Restart would
also be RestartRequired i.e.
ApplyComplete()
{
  if(e.Restart==ApplyRestart.RestartRequired)
  {
    //Here you can ask if system should be restarted
    //if yes, then
    e.Result=Result.Restart;
   }
}

Hope it would help....



On 6 June 2016 at 15:33, Parkes, Kevin <Kevin.Parkes at wacom.eu> wrote:

> My MBA appears to uninstall successfully but if I subsequently re-install
> (without a manual reboot) the install fails. The log file includes:
>
>   Apply complete, result: 0x8007015e, restart: Required, ba requested
> restart:  No
>
> I presume that indicates the uninstall should have requested/triggered a
> restart? I had assumed (hoped) restart would be handled by the Burn engine
> but either that's not the case or (more likely) I'm am doing something (or
> not doing something) in my MBA which is screwing it up.
>
> I have looked at the WiX sources but haven't managed to figure out how I
> should be handling restart. Does anyone know of samples or pointers for
> what I should be doing? Or suggestions where to start looking for what I
> might be doing wrong?
>
> Thanks
> Kev
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list