Skip to content

[Bug]: MSI with Constrained Language Mode #1112

@AdamJParker

Description

@AdamJParker

The problem

Pushing MSI from Intune, so its as managed installer is allowing past WDAC, but constrained language mode seems to be an issue with as DotSource is not supported.

WixQuietExec: C:\Program Files\Winget-AutoUpdate\config\WAU-MSI_Actions.ps1 : Cannot dot-source this command because it was defined
WixQuietExec: in a different language mode. To invoke this command without importing its contents, omit the '.' operator.
WixQuietExec: + CategoryInfo : InvalidOperation: (:) , NotSupportedException
WixQuietExec: + FullyQualifiedErrorId : DotSourceNotSupported,WAU-MSI_Actions.ps1
WixQuietExec:
WixQuietExec: Error 0x80070001: Command line returned an error.
WixQuietExec: Error 0x80070001: QuietExec Failed
WixQuietExec: Error 0x80070001: Failed in ExecCommon method
CustomAction CA_PowerShell_Install returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

What version of WAU has the issue?

2.9.1

What version of Windows are you using (ex. Windows 11 22H2)?

No response

What version of winget are you using?

v1.12.440

Log information

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions