Our installer is using inline PS scripts (and at one point an external PS script).
Reports started coming in about installer failure.
The reason turned out to be tightly locked-down environments where the PowerShell is running in the Restricted or Constrained language mode.
Here is a representative error for an inline PS script:
Code: Select all
MSI (c) (FC!40) [12:06:34:528]: PROPERTY CHANGE: Adding POWERSHELL_EXECUTION_LOG property. Its value is 'C:\Users\XXX\AppData\Local\Temp\pssC4EF.ps1 : Cannot dot-source this command because it was defined in a
different language mode. To invoke this command without importing its contents, omit the '.' operator.
+ CategoryInfo : InvalidOperation: (:) [pssC4EF.ps1], NotSupportedException
+ FullyQualifiedErrorId : DotSourceNotSupported,pssC4EF.ps1
Do you have a suggestion on how to resolve such issues?
Thanks!
FOLLOW US
Get the latest news in Application Packaging