Skip to content

Add-Unixwin.Niubash-1.1.4 - #437563

Merged
Stephen Gillie (stephengillie) merged 2 commits into
microsoft:masterfrom
arookieofc:add-unixwin-niubash-1.1.4
Oct 21, 2026
Merged

Stephen Gillie (stephengillie) merged 2 commits into
microsoft:masterfrom
arookieofc:add-unixwin-niubash-1.1.4

Conversation

@arookieofc

@arookieofc arookieofc (arookieofc) commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds Niubash 1.1.4 to WinGet.

Validation

  • winget validate passes locally
  • x64 and arm64 installer SHA256 values verified against GitHub Release assets
  • Installer is an Inno Setup per-user installer

Release: https://github.com/unixwin/niubash/releases/tag/v1.1.4

Microsoft Reviewers: Open in CodeFlow

close unixwin/niubash#104

@wingetvalidator-prod wingetvalidator-prod Bot added New-Package The pull request adds the first version of a package to the repository. Validation-Unattended-Failed During installation testing the installer was blocked on user input and no switches were provided. labels Sep 19, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Hello @a-rookie-of-C-language,

During installation testing, this application failed to install without user input. Did you forget to add Silent or SilentWithProgress switches?

This can also happen when a dependency is missing. You can test based on the documentation.

Please investigate a fix and resubmit the Pull Request.

You may also try using the Windows Package Manager Manifest Creator to determine the proper installer type. If the installer type is MSIX, MSI, or a known installer technology like NullSoft, Inno, etc. the wingetcreate tool can detect them and the winget client will know what switches to pass. If it's a .exe installer of an unknown type, you will need to search to determine the proper switches for Silent and SilentWithProgress.

Template: msftbot/validationError/installation/unattended

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution @a-rookie-of-C-language! There was an issue validating your pull request. Many common validation questions and issues can be resolved by reading through the Validation Guide. Please review the guide and update your pull request if needed. If you have any questions, feel free to ask for help!

Template: msftbot/validation/validationGuideAdded

@microsoft-github-policy-service microsoft-github-policy-service Bot removed Needs-Author-Feedback This needs a response from the author. New-Package The pull request adds the first version of a package to the repository. Validation-Unattended-Failed During installation testing the installer was blocked on user input and no switches were provided. labels Sep 19, 2026
@wingetvalidator-prod wingetvalidator-prod Bot added New-Package The pull request adds the first version of a package to the repository. Azure-Pipeline-Passed Validation pipeline passed. There may still be manual validation requirements. Validation-Executable-Error Post-install executable validation returned an unexpected result; review is required. labels Sep 19, 2026
@stephengillie

Copy link
Copy Markdown
Collaborator

Automatic Validation ended with:

Caught exception while trying to kill child processes: System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\niu.exe returned exit code: -1073741515

Hex Dec Inverted Dec Symbol Description
C0000135 -1073741515 3221225781 STATUS_DLL_NOT_FOUND Possibly due to a missing dependency. (The most common dependency is Microsoft.VCRedist.2015+.x64 / .x86).

(Deterministic automation - build 1820.)

@caomengxuan666

Copy link
Copy Markdown
Contributor

Root cause found. Not a niubash binary bug.

The manifest is InstallerType: zip + NestedInstallerType: portable, which
makes WinGet's portable shim copy only the single declared niu.exe into
%LOCALAPPDATA%\Microsoft\WinGet\Links. The winuxcmd/usr/bin tree that
ships next to it never comes along, so niu starts up, finds no WinuxCmd in any
of its candidate paths, and aborts with 0xC0000135.

The WMI wminet_utils.dll line in the log is noise — that's the validator
failing to kill an already-dead child process.

Fix is on the manifest side: InstallerType: inno pointing at the
-setup.exe assets the release already publishes (the Inno installer lays down
the full directory tree and registers PATH). Same reasoning applies to the
Silent switch warning from the policy bot.

Upstream tracking:

@a-rookie-of-C-language did you want to update this PR to 1.2.1 + inno, or
should we close it and file a fresh one? The 1.2.1 release needs to go out
first either way, so there's no rush.

曹梦轩 (caomengxuan666) added a commit to unixwin/niubash that referenced this pull request Oct 1, 2026
Bumps niubash to 1.2.1.

Records the WinGet packaging root cause from microsoft/winget-pkgs#437563:
`InstallerType: zip` + `NestedInstallerType: portable` makes WinGet's
portable shim copy only the declared niu.exe into
%LOCALAPPDATA%\Microsoft\WinGet\Links, dropping the sibling
winuxcmd/usr/bin tree that niu.exe resolves at startup via
bundled_winuxcmd_candidates. Exit code 0xC0000135.

Manifest fix is separate (InstallerType: inno against the published
-setup.exe assets). See #150.

Version metadata and changelog only; no source behavior changes.
Engine bump: rubash 1.2.1 (unixwin/rubash#366).
@stephengillie

Copy link
Copy Markdown
Collaborator

Automatic Validation ended with:

Caught exception while trying to kill child processes: System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\niu.exe returned exit code: -1073741515

Hex Dec Inverted Dec Symbol Description
C0000135 -1073741515 3221225781 STATUS_DLL_NOT_FOUND Possibly due to a missing dependency. (The most common dependency is Microsoft.VCRedist.2015+.x64 / .x86).

(Deterministic automation - build 1820.)

@caomengxuan666

Copy link
Copy Markdown
Contributor

Superseded by #444854 (Add-Unixwin.Niubash-1.2.1).

Root cause of the failed installation validation here: the zip + NestedInstallerType: portable layout loses the bundled WinuxCmd command tree (winuxcmd/usr/bin) that ships next to niu.exe — the portable shim moves only the single declared portable file into Links, so niu aborted at launch with 0xC0000135. Full analysis: unixwin/niubash#150.

The replacement submission uses the Inno Setup installer from the v1.2.1 release (silent-verified locally: /VERYSILENT /NORESTART → rc 0, tree + version check pass). Suggest closing this PR in favor of #444854; 1.1.4 never merged, so there is no gap in the catalog. Thanks!

@stephengillie

Copy link
Copy Markdown
Collaborator

Automatic Validation ended with:

Caught exception while trying to kill child processes: System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\niu.exe returned exit code: -1073741515

Hex Dec Inverted Dec Symbol Description
C0000135 -1073741515 3221225781 STATUS_DLL_NOT_FOUND Possibly due to a missing dependency. (The most common dependency is Microsoft.VCRedist.2015+.x64 / .x86).

(Deterministic automation - build 1820.)

@caomengxuan666

Copy link
Copy Markdown
Contributor

Confirming the VCRedist hint from the latest validation output was the primary cause here: our binaries dynamically imported VCRUNTIME140.dll (MSVC Rust default CRT linkage), so on the clean sandbox the process exited STATUS_DLL_NOT_FOUND at loader time, before any shell code ran — the same exit code as the portable-tree issue we had diagnosed in unixwin/niubash#150 on machines that do have VCRedist. Two stacked causes, one symptom.

Both are fixed on the superseding #444854 (Add-Unixwin.Niubash-1.2.4): release builds now statically link the CRT (OS in-box imports only, objdump-verified), and the Inno Setup installer lays down the full winuxcmd command tree. Suggest closing this PR in favor of #444854.

@stephengillie

Copy link
Copy Markdown
Collaborator

Automatic Validation ended with:

Caught exception while trying to kill child processes: System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.WmiNetUtilsHelper' threw an exception.
---> System.ComponentModel.Win32Exception (193): Failed to load required native library 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\wminet_utils.dll'.
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\niu.exe returned exit code: -1073741515

Hex Dec Inverted Dec Symbol Description
C0000135 -1073741515 3221225781 STATUS_DLL_NOT_FOUND Possibly due to a missing dependency. (The most common dependency is Microsoft.VCRedist.2015+.x64 / .x86).

(Deterministic automation - build 1821.)

@stephengillie

Copy link
Copy Markdown
Collaborator

Manual Validation ended with:

Niubash 1.1.4 ΓÇö bash-compatible shell for Windows
rubash git 8b81c7501646

(Deterministic automation - build 1829.)

@stephengillie Stephen Gillie (stephengillie) added Validation-Completed Validation passed and removed Validation-Executable-Error Post-install executable validation returned an unexpected result; review is required. labels Oct 20, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Moderator-Approved One of the Moderators has reviewed and approved this PR label Oct 20, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation has completed.

Template: msftbot/validationCompleted

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation has completed.

Template: msftbot/validationCompleted

@wingetbot wingetbot (wingetbot) added Validation-Completed Validation passed and removed Validation-Completed Validation passed labels Oct 20, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation has completed.

Template: msftbot/validationCompleted

@wingetbot wingetbot (wingetbot) added Validation-Completed Validation passed and removed Validation-Completed Validation passed labels Oct 20, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation has completed.

Template: msftbot/validationCompleted

@wingetbot wingetbot (wingetbot) added Validation-Completed Validation passed and removed Validation-Completed Validation passed labels Oct 20, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation has completed.

Template: msftbot/validationCompleted

@stephengillie
Stephen Gillie (stephengillie) merged commit 1e6cb54 into microsoft:master Oct 21, 2026
257 checks passed
@wingetbot

Copy link
Copy Markdown
Collaborator

Publish pipeline succeeded for this Pull Request. Once you refresh your index, this change should be present.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Publish-Pipeline-Succeeded The package publishing pipeline completed successfully. label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure-Pipeline-Passed Validation pipeline passed. There may still be manual validation requirements. Moderator-Approved One of the Moderators has reviewed and approved this PR New-Package The pull request adds the first version of a package to the repository. Publish-Pipeline-Succeeded The package publishing pipeline completed successfully. Validation-Completed Validation passed Validation-Guide Something happened during validation. Provide the guide.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

建议添加至Winget仓库

4 participants