Hello,
I am trying to update the "Path" property of an "Install MSIX/APPX Package" custom action using PowerShell (using Advanced Installer version 19.2)
I can access the custom action in PS but my question is how do I update the path?
I'm not sure if I see a corresponding implementation of ICustomAction in the documentation?
https://www.advancedinstaller.com/user- ... onent.html
$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.LoadProject($aiProjectPath)
$project.CustomActionsComponent.CustomActions[2]
OUTPUT:
Name : ExecutorAppx
RunUnderLocalSystemAccount : False
WaitToFinish : True
FailInstallationIfReturnsError : True
ExecutionTime : Deferred
UiSequenceCondition :
ExecuteSequenceCondition : System.__ComObject
Object
and,
$project.CustomActionsComponent.CustomActions[2] | Get-Member
OUTPUT:
TypeName: System.__ComObject#{253c1946-fbfe-46c7-aa61-6d969d6d3967}
Name MemberType Definition
---- ---------- ----------
CreateExecuteSequence Method void CreateExecuteSequence (string)
CreateUiSequence Method void CreateUiSequence (string)
RemoveExecuteSequence Method void RemoveExecuteSequence ()
RemoveUiSequence Method void RemoveUiSequence ()
ExecuteSequenceCondition Property ICustomActionSequence ExecuteSequenceCondition () {get}
ExecutionTime Property string ExecutionTime () {get} {set}
FailInstallationIfReturnsError Property bool FailInstallationIfReturnsError () {get} {set}
Name Property string Name () {get} {set}
Object Property uint Object () {get}
RunUnderLocalSystemAccount Property bool RunUnderLocalSystemAccount () {get} {set}
UiSequenceCondition Property ICustomActionSequence UiSequenceCondition () {get}
WaitToFinish Property bool WaitToFinish () {get} {set}
Thanks