Chocolatey failed to download app from my source(via powershell) #2711
-
I put a software on my Chocolatey Package Repository and want to install it, but the downloaded URL is from my Laravel website, the website needs to be logged in to download files, so Chocolatey will have an error and cannot be installed, how can I install this application? I search some solution following, but still can't work it: How to Download a File with PowerShell The above website mentioned that if the website needs to log in to download, you can use the sample code in the website, but I still can't download it. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Why not embed the software into the package, instead of downloading it during install? |
Beta Was this translation helpful? Give feedback.
-
How can I embed the sofware into the package , is there any reference? |
Beta Was this translation helpful? Give feedback.
-
There are instructions in the default package template (what you get by default when you run To be more specific than that, it depends on what type of app you are packaging. For example, if you need to extract an archive, use |
Beta Was this translation helpful? Give feedback.
-
Thank you, I'll go to check out. If there 's any question, I might ask you again. |
Beta Was this translation helpful? Give feedback.
-
In addition, I would like to ask why the installation of the 7-Zip program I placed in Chocolatey Package Repository shows that the installation failed, but it has actually been installed successfully. What parameters need to be set? |
Beta Was this translation helpful? Give feedback.
There are instructions in the default package template (what you get by default when you run
choco new <name>
).To be more specific than that, it depends on what type of app you are packaging. For example, if you need to extract an archive, use
Get-ChocolateyUnzip
to extract an embedded file.