Romanitho / Romanitho/Winget-AutoUpdate

[Bug]: MSI with Constrained Language Mode

Open
#1,112 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
2k
Forks
194
Avg merge
22h 54m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with WAU-MSI_Actions.ps1 and reproduce the MSI deployment through Intune with Windows Defender Application Control and Constrained Language Mode enabled. Trace the reported DotSourceNotSupported error and verify that the MSI installation completes without the 1603 failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.