Skip to content

[Bug]: PowerShell when using "-version latest" the winget installer parameters seems not to be complete #240

@RonBartsch

Description

@RonBartsch

CommandLet

New-WtWingetPackage

Full command

New-WtWingetPackage -PackageId Microsoft.VisualStudioCode -PackageFolder D:\Temp -installercontext User -version latest -PackageScript

Module version

1.3.2

What happened?

When using the parameter "-version latest", the winget install command is missing options in the install.ps1 and uninstall.ps1.

The install command with -version latest is:
$procOutput = & $(Get-WingetCmd) "install" "--id" "Microsoft.VisualStudioCode" "--exact"

The install command without using version is:
$procOutput = & $(Get-WingetCmd) "install" "--id" "Microsoft.VisualStudioCode" "--version" "1.104.2" "--source" "winget" "--silent" "--accept-package-agreements" "--accept-source-agreements" "--scope" "user"

The same applies for the created uninstall scripts.

Command output

PowerShell version

7.5.3

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I won't demand an immediate answer

Metadata

Metadata

Assignees

Labels

PowerShellIssues related to the WinTuner PowerShell modulebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions