Skip to content

Conversation

@HedgeComp
Copy link
Contributor

Had a recent issues with some custom app installation failing without dependencies because the installers don't have access to the internet to download them it they are not detected.

  1. Example is CtirixWorkspace requires x86 version of .NET Desktop Runtime 8.0.11 even if OS is 64-bit.

Current Code assumes all packages are x64 and adds it to command winget --architecture $windowsArch

  • Added the Ability to specify the Architecture for Winget Packages.

  • If Winget has seperate packages for each architecture, then downloads it.

  • You can specify the exact Architecture or add the value 'both' to return both x86 and x64

Simply Add to the Applist.json the property "architecture:" @('x86','x64','both')

If no "Architecture" set, then go back to assuming running $windowsArch

    "apps": [
	{
	    "name": "Microsoft Visual C++ 2015-2022 Redistributable (x86)",
            "id": "Microsoft.VCRedist.2015+.x86",
            "source": "winget"
	},
	{
            "name": "Microsoft .NET Windows Desktop Runtime 8.0",
            "id": "Microsoft.DotNet.DesktopRuntime.8",
	    "source": "winget",
	    "architecture": "both"
        },
            "name": "Microsoft .NET Windows Desktop Runtime 8.0",
            "id": "Microsoft.DotNet.DesktopRuntime.8",
	    "source": "winget",
	    "architecture": "x86"
         },

--add the Ability to specific Architecture in Applist.json
--Values are 'x86' , 'x64' or 'both'
remove testing lines for returning values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant