I'm recieving the error below when trying to get a property through a Powershell inline script Custom Action. Setting the property works fine.
I'm using AI_GetMsiProperty COMPANY. I've tried this at different points in the sequence and also with or without storing it to a variable.
Code: Select all
AI_MsiGetProperty : The term 'AI_MsiGetProperty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Users\el23903\AppData\Local\Temp\pssB7CD.ps1:53 char:1
+ AI_MsiGetProperty COMPANY;
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (AI_MsiGetProperty:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Regards,
Carl
FOLLOW US
Get the latest news in Application Packaging