When you create packages, we highly suggest you use choco new (from the latest released version of Chocolatey) as it generates the packaging that has documentation of the differences already included in the generated chocolateyInstall.ps1. If you follow the links you will note the differences that Install-Chocolatey InstallPackage is for locally embedded or UNC share binaries, where Install-ChocolateyPackage is for pulling remote resources. You are trying to pass arguments for Install-ChocolateyInstallPackage, not Install-ChocolateyPackage. You may be experiencing other errors now if you've resolved that aspect. have specified fileType and file and called Install-ChocolateyPackage, which only has filetype (but PowerShell passes both parameters to filetype due to partial parameter name matching).had file listed twice in your $packageArgs.The error is telling you that you specified the file parameter more than once, which means you likely had one of the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |