tgustafson at solacom.com
Mon Oct 24 06:22:19 PDT 2016
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
$lock = [System.IO.File]::Open("$filePath", "Open", "ReadWrite")
Write-Host "Press any key to release the file..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Let me know how it goes!
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
Can someone please guide, when BootstrapperApplication.RestartRequired is triggered?
I tried to trigger it using Schedulereboot from my Msi, i.e.
<ScheduleReboot After="InstallFinalize"/> </InstallExecuteSequence>
But it never triggered RestartRequired. But in ApplyComplete, e.Restart = ApplyRestart.RestartRequired
So wondering what could trigger RestartRequired event?
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