Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Add Support for Local Installers on Install-ChocolateyPackage #587

Open
lmayorga1980 opened this issue Oct 7, 2014 · 3 comments
Open

Add Support for Local Installers on Install-ChocolateyPackage #587

lmayorga1980 opened this issue Oct 7, 2014 · 3 comments

Comments

@lmayorga1980
Copy link

We have a number of MSI, EXE files that are compiled internally and are not available at any url on the internet.

Based on the documentation it seems that this function Install-ChocolateyPackage only supports a URL as the last argument.

Would it be possible to add support for a local MSI, EXE package that it is shipped within the nuget package?

@lmayorga1980
Copy link
Author

What about adding support for relative paths instead of full paths

https://github.com/chocolatey/chocolatey/wiki/HelpersInstallChocolateyInstallPackage

@ferventcoder
Copy link
Contributor

You can easily get the path to the file using $installDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" - https://github.com/chocolatey/chocolateytemplates/blob/master/_templates/chocolatey3/__NAME__.portable/tools/chocolateyInstall.ps1#L8

@ferventcoder
Copy link
Contributor

This is a good idea though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants