[wix-users] BootstrapperApplication.RestartRequired

Farrukh Waheed farrukh1 at gmail.com
Mon Oct 24 12:01:46 PDT 2016


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/
>



More information about the wix-users mailing list