It seems to work for the most part, however whenever I use the upgrade, the previous version is uninstalled successfully, however any existing installation custom actions will fail when installing the ugraded version. (they do not fail when doing initial install; In the upgrade, they give a "Could not find source script file error")
Code: Select all
MSI (s) (B0:F0) [11:52:35:633]: Executing op: CustomActionSchedule(Action=PowerShellScriptFile,ActionType=3073,Source=BinaryData,Target=RunPowerShellFileScript,CustomActionData=Flags0ParamsPropertyC:\Users\SPT~1.BUI\AppData\Local\Temp\AddHostsEntry.ps1ScriptPreambleparam(
[alias("propFile")] [Parameter(Mandatory=$true)] [string] $msiPropOutFilePath
,[alias("propSep")] [Parameter(Mandatory=$true)] [string] $msiPropKVSeparator
,[alias("lineSep")] [Parameter(Mandatory=$true)] [string] $msiPropLineSeparator
,[alias("scriptFile")] [Parameter(Mandatory=$true)] [string] $userScriptFilePath
,[alias("scriptArgsFile")][Parameter(Mandatory=$false)][string] $userScriptArgsFilePath
,[Parameter(Mandatory=$true)] [string] $testPrefix
,[switch] $isTest
)
Function AI_GetMsiProperty( [Parameter(Mandatory=$true)] [string] $name
, [Parameter(Mandatory=$false)] $testValue = $null
)
{
if ($isTest -and ($testValue -ne $null
MSI (s) (B0:F8) [11:52:35:666]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI7358.tmp, Entrypoint: RunPowerShellFileScript
[INFO] PowerShell script preferred invocation folder:
Dumping PowerShell invoke log ...
--> Found PowerShell path: C:\Users\SPT~1.BUI\AppData\Local\Temp\AddHostsEntry.ps1
--> PowerShell Script Execution Result Code: -1
--> PowerShell Script Execution log:
[ERR] Could not find source script file!
CustomAction PowerShellScriptFile returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Does anyone know why this might be?