we are facing issue where we are unable to install msi application created with Advanced Installer. Problem occurs when there is WDAC used in production and during installation there is powershell script execution.
The installer and powershell script are both signed and the certificate is added to WDAC policy file (added also Advanced Installer certificate).
I did some tests and e.g. if I convert the powershell script to exe file via ps2exe command, the the script/exe is executed correctly but not sure how exactly ps2exe works I would suppose it just encapsulate into exe and in the inner parts it still invoke pure PS.
I've also tried to put the certificates directly into computer cert store (Trusted Root Certification Authorities and Trusted Publishers) but I got the same result.
I always get error:
Code: Select all
Property(C): POWERSHELL_EXECUTION_LOG = C:\Users\User\AppData\Local\Temp\pss3FFE.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: (:) [pss3FFE.ps1], NotSupportedException
+ FullyQualifiedErrorId : DotSourceNotSupported,pss3FFE.ps1
I attached a sample aip project + policy...To setup the environment (Win 11), you need to unzip binary policies and set them via citool --update-policy $file...
I already checked this but this is probably related only to the installer execution (which itself works ok except for the PS): viewtopic.php?t=51147
Thank for help