Hello,
before I describe the issue, I have to state that I am of sound mind and don't believe in miracles.
Now, I am seeing a really strange issue. We have a PowerShell script that is executed via the 'run powershell script file' custom action. In the script, a few properties are read and set.
I noticed that some properties (not all) are not available - the Get-Property (or the direct AI_GetMsiPropertycall) return empty values.
I tried various things and ended up calling the Get-Property/AI_GetMsiProperty more than once. And that resulted in the properties to become available. Strange, but OK.
Here is the weird part.
I simply commented out these additional calls. Things still work. I removed the commented-out block. Things break - properties are not available. No matter where in the .ps1 file I place this comments block, things work. If I remove the comments, things break.
I know this sounds crazy, but that's what it is.
The CA is immediate, with the UI and Execution sequences.
Any ideas?
Thanks!
FOLLOW US
Get the latest news in Application Packaging