Hello,
I have 2 Advanced Installer versions installed (16.6.1 and 19.2).
I am trying to create a PowerShell script to edit the "MSIX/APPX Path" property in the "Install MSIX/Appx Package" custom action.
It looks like support for using this feature in PowerShell was first introduced in version 17.0 of Advanced Installer.
I have started a script:
$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.LoadProject($aiProjectPath)
$project
OUTPUT:
FilesComponent : System.__ComObject
XmlFilesComponent : System.__ComObject
TempFilesComponent : System.__ComObject
IniFilesComponent : System.__ComObject
ShortcutsComponent : System.__ComObject
FoldersComponent : System.__ComObject
PredefinedFolders : System.__ComObject
ProductDetails : System.__ComObject
InstallParameters : System.__ComObject
RegistryComponent : System.__ComObject
DigitalSignature : System.__ComObject
PropertyComponent : System.__ComObject
It does not look like the script is recognizing the CustomActionsComponent mentioned in the example from this documentation
https://www.advancedinstaller.com/user- ... onent.html
Does PowerShell not register the new features (i.e. editing Custom Actions) in version 19.2 because of the side-by-side installations? Do I need to uninstall 16.6.1 in order for PowerShell to recognize the new features? Or is there a way to target the newest version within PowerShell?
Thanks.
FOLLOW US
Get the latest news in Application Packaging