Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select and Monitor Installation Path For Portables #1360

Closed
zero77 opened this issue Jul 13, 2017 · 15 comments
Closed

Select and Monitor Installation Path For Portables #1360

zero77 opened this issue Jul 13, 2017 · 15 comments

Comments

@zero77
Copy link

zero77 commented Jul 13, 2017

When initially installing portable applications can you add an option for a default path, that will then be used when updating the application.
Thanks

@ferventcoder
Copy link
Member

You mean like in the package directory or outside? We have a ChocolateyToolsFolder, however there are benefits to keeping a portable in the packaging folder that are not realized when it is put outside of there.

@ferventcoder
Copy link
Member

Here is the considerations in much more detail - https://github.com/chocolatey/choco/issues/1303#issuecomment-303804561

@zero77
Copy link
Author

zero77 commented Jul 13, 2017

so something like this ?

choco install sysinternals Install-ChocolateyPath -PathToInstall "C:\Users\User\Desktop\TEST"

@ferventcoder
Copy link
Member

The comment I pointed you to was from the perspective of the creation of the package.

@ferventcoder
Copy link
Member

ferventcoder commented Jul 13, 2017

We are looking at adding an installation directory override in the licensed edition to match what we do for installers. That might match closer with what you are looking to do?

@zero77
Copy link
Author

zero77 commented Jul 14, 2017

Ok, I see so it’s not currently supported.
Yes, a directory over right is what I am looking for.
Thanks

@joyliao
Copy link

joyliao commented Jul 14, 2017 via email

@stevenwdv
Copy link

Is it currently possible to set the installation path for portable tools? I like to have them all in C:\prog but setting $env:ChocolateyToolsLocation does not seem to do anything as it still installs to C:\ProgramData\chocolatey\lib.

@TheCakeIsNaOH
Copy link
Member

@stevenwdv Yes, it is, possible.

However, the package itself will still always install to $env:ChocolateyInstall\lib\<package name>.

So you need to add a chocolateyinstall.ps1 and manually copy over the required files to $env:ChocolateyToolsLocation, or unzip to there if the software comes in an archive.

@stevenwdv
Copy link

@TheCakeIsNaOH Ok but is it also possible with an existing chocolateyinstall.ps1 of a portable utility? E.g. https://community.chocolatey.org/packages/cports does not seem to do this, does it?

@TheCakeIsNaOH
Copy link
Member

Correct, it does not have that ability. You would have to ask the maintainer to allow selection of the install location, or wait for this feature to be implemented in the licensed editions as mentioned above and then purchase a license.
chocolatey/chocolatey-licensed-issues#7

@stevenwdv
Copy link

@TheCakeIsNaOH That's a pity... I guess I could use symlinks and stuff instead.. Any particular reason why this will only be in the licensed version? It seems like a pretty easy function to implement.
By the way, am I misunderstanding what this current issue is for or is it the same feature?

@TheCakeIsNaOH
Copy link
Member

Any particular reason why this will only be in the licensed version? It seems like a pretty easy function to implement.

🤷, perhaps because the licensed version already has an override for installers.

@ferventcoder would be the one answer that.

By the way, am I misunderstanding what this current issue is for or is it the same feature?

I think this issue is for a very similar feature. So it will definitely go into the licensed edition at some point, and it might go into open source as well at some point, but that is undecided as this still has the triaging tag.

@ferventcoder
Copy link
Member

It seems like a pretty easy function to implement.

While some part of this could be easy to implement, there are a whole list of things that Chocolatey does (shimming, calls to items expected to be in a particular folder, etc) that does not make this as easy as most folks might think.

After much review and thought, this feels like the same feature that was tagged for licensed editions (Pro+).

@ferventcoder
Copy link
Member

Duplicate of chocolatey/chocolatey-licensed-issues#7

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

No branches or pull requests

5 participants