[wix-users] BootstrapperApplication.RestartRequired
Tyler Gustafson
tgustafson at solacom.com
Mon Oct 24 12:45:32 PDT 2016
I'll be the first to admit that I'm nowhere close to an expert with this stuff yet and I'm especially shaky with bootstrapper stuff. I see the files in use dialog when I lock something with this script and I can see in the msi log that a reboot will be required, but if that doesn't bubble up to the bootstrapper in some way then I'm afraid that's as far as I can help. Hopefully someone else has some insight for you.
PROPERTY CHANGE: Adding MsiSystemRebootPending property. Its value is '1'.
RESTART MANAGER: The user chose to go on with the installation, although a reboot will be required.
Tyler
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: October-24-16 3:04 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] BootstrapperApplication.RestartRequired
btw, don't you think FileInUse should be used here?
On 24 October 2016 at 12:01, Farrukh Waheed <farrukh1 at gmail.com> wrote:
> Thank you Tyler. I will try this and will reply....
>
> On 24 October 2016 at 06:22, Tyler Gustafson <tgustafson at solacom.com>
> wrote:
>
>> I think that happens when your installer is trying to change a file
>> that is locked in some way and can't so it wants to finish up after a
>> re-boot. I have a powershell script that can temporarily lock a file
>> which I was going to use to test some functionality around that area.
>> You're welcome to try if if you like. Stick the following in a .ps1
>> file and run it with the -filePath argument as the path to a file you
>> want locked eg Locker.ps1 -filePath C:\lockme.txt
>>
>> param(
>> [string]$filePath
>> )
>>
>> $lock = [System.IO.File]::Open("$filePath", "Open", "ReadWrite")
>> Write-Host "Press any key to release the file..."
>> $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
>> $lock.Close()
>>
>>
>> Let me know how it goes!
>> Tyler
>>
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of Farrukh Waheed
>> Sent: October-24-16 6:30 AM
>> To: WiX Toolset Users Mailing List
>> Subject: [wix-users] BootstrapperApplication.RestartRequired
>>
>> Hi,
>>
>> Can someone please guide, when
>> BootstrapperApplication.RestartRequired
>> is triggered?
>>
>> I tried to trigger it using Schedulereboot from my Msi, i.e.
>>
>> <InstallExecuteSequence>
>> <ScheduleReboot After="InstallFinalize"/>
>> </InstallExecuteSequence>
>>
>>
>> But it never triggered RestartRequired. But in ApplyComplete,
>> e.Restart = ApplyRestart.RestartRequired
>>
>> So wondering what could trigger RestartRequired event?
>>
>>
>> Regards
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>> --
>> Scanned by Total Defense Email Cloud Security
>> http://cloud.totaldefense.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/
--
Scanned by Total Defense Email Cloud Security http://cloud.totaldefense.com
More information about the wix-users
mailing list