Reputation: 9
Pls! I want to convert .exe to .nupkg or .nuspec with choco new --file . But i have error : Error converted to warning: (183) Cannot create a file when that file already exists: [\?\C:\tools\chocolatey.server\App_Data\Packages\UniKeyNT.exe]
Upvotes: 0
Views: 137
Reputation: 18981
Based on your screenshot, it would seem like you are using the Open Source version of Chocolatey, is that correct? If so, please read the documentation here:
--file, --url=VALUE
Location of binary. In Chocolatey for Business, file is used for auto-detection (native installer, zip, patch/upgrade file, or remote url to download first) to completely create a package with proper silent arguments! Can be 32-bit or 64-bit architecture. Available in licensed editions only (licensed version 1.4.0+, url/zip starting in 1.6.0). See https://chocolatey.org/docs/features-create-packages-from-installers
i.e. the parameter that you are trying to use isn't available in the version of Chocolatey that you are using.
If you are using Chocolatey for Business, looks like your license hasn't been installed correctly.
Upvotes: 1