[wix-users] Restart from MBA
Farrukh Waheed
farrukh1 at gmail.com
Wed Jun 8 07:55:33 PDT 2016
Its actually e.Restart==ApplyRestart.RestartRequired
I only tried with ApplyComplete and in same, I returned
e.Result=Result.Restart and it restarted windows....
On 8 June 2016 at 07:53, Farrukh Waheed <farrukh1 at gmail.com> wrote:
> e.Restart==ApplyRestart.RestartRequired
>
> On 7 June 2016 at 09:02, Parkes, Kevin <Kevin.Parkes at wacom.eu> wrote:
>
>> The original error (described below) is intermittent (tester report it
>> occurring approx. once in 10 attempts)
>>
>> For debugging purposes, I am leaving the installed program running and
>> setting e.Result to Result.Restart in ExecuteFilesInUse. However, I'm not
>> seeing e.Restart == RestartRequired in either ExecutePackageComplete or
>> ApplyComplete.
>>
>> I'm sure I must be doing something wrong, somewhere but I have no idea
>> what...
>>
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of Farrukh Waheed
>> Sent: 06 June 2016 12:22
>> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> Subject: Re: [wix-users] Restart from MBA
>>
>> 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/
>> >
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>
More information about the wix-users
mailing list