MSI (c) (34:74) [18:04:36:161]: PROPERTY CHANGE: Adding CustomActionData property. Its value is 'Is64BitParamsScriptfunction CheckPendingReboot {if (Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -ErrorAction SilentlyContinue) { return $true }
if (Get-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -ErrorAction SilentlyContinue) { return $true }
if (Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name PendingFileRenameOperations -ErrorAction SilentlyContinue) { return $true }
try
{
  $util = [wmiclass]"\\.\root\ccm\clientsdk:CCM_ClientUtilities"
  $status = $util.DetermineIfRebootPending()
  if (($status -ne $null) -and $status.RebootPending){
        return $true
  }
}
catch { }
return $false
} 

function IsSQLInstalled {   $returnvalue = $null
   try {
       $sqlversion = Get-ItemPropertyValue -Path Registry::"HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\130\Tools\ClientSetup\CurrentVersion" -Name CurrentVersion -ErrorAction Sil
Action ended 18:04:36: AI_DATA_SETTER_18. Return value 1.
MSI (c) (34:74) [18:04:36:161]: Doing action: DetectPendingReboot
Action 18:04:36: DetectPendingReboot. 
Action start 18:04:36: DetectPendingReboot.
MSI (c) (34:48) [18:04:36:270]: Invoking remote custom action. DLL: C:\Users\BCG\AppData\Local\Temp\MSIFFA4.tmp, Entrypoint: RunPowerShellScript
MSI (c) (34!8C) [18:04:40:333]: PROPERTY CHANGE: Modifying REBOOT_FLAG_PROP property. Its current value is '0'. Its new value: '1'.
Dumping PowerShell invoke log ...
--> Found PowerShell path: C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
--> PowerShell Script Execution Result Code: 0
--> PowerShell Script Execution log: 

Action ended 18:04:40: DetectPendingReboot. Return value 1.
MSI (c) (34:74) [18:04:40:333]: Doing action: AI_EnableDebugLog
Action 18:04:40: AI_EnableDebugLog. 
Action start 18:04:40: AI_EnableDebugLog.
MSI (c) (34:FC) [18:04:40:427]: Invoking remote custom action. DLL: C:\Users\BCG\AppData\Local\Temp\MSI1000.tmp, Entrypoint: EnableDebugLog
AI_EnableDebugLog: Log disabled