These are chat archives for chocolatey/ChocolateyGUI

16th
May 2017
Hitesh
@TechMinder
May 16 2017 14:13
@ferventcoder I didn't found any entry in the registry. I tried same approach on at least three different machines, and I got same error on each. I restarted computer and still no changes to environment variable.
Rob Reynolds
@ferventcoder
May 16 2017 17:17
How are you installing choco?
@TechMinder ^^
Hitesh
@TechMinder
May 16 2017 17:34
@ferventcoder running batch file as an admin

@ferventcoder ```
CD %UserProfile%\My Documents

SET chocoDir=choco
IF not exist %chocoDir% (mkdir %chocoDir%)

CD %chocoDir%

COPY "\<network path>\choco\choco.exe"

choco.exe install Chocolatey

setx ChocolateyInstall "%UserProfile%\My Documents\choco"

start CMD /k "\<network path>\choco\installgui.bat"```

this is the script.
Rob Reynolds
@ferventcoder
May 16 2017 17:37
So that explains the issue :+1:
https://chocolatey.org/install - click on more options and see offline script
Rob Reynolds
@ferventcoder
May 16 2017 17:44
@TechMinder ^^
Hitesh
@TechMinder
May 16 2017 18:25
@ferventcoder thanks for pointing to me right material. I am still trying to understand the issue. My understanding is Choco.exe is standalone executable so it should not matter how the install Chocolatey command is called. Please correct me if I am wrong. The issue with my script is powershell executionpolicy, is that correct?
I am talking about without downloading chocolatey nupkg file.
Richard Simpson
@RichiCoder1
May 16 2017 18:29
@TechMinder Choco.exe is not standalone. Or at least not completely. It initializes a fair amount of context and settings that must be present for it to work properly.
If you poke inside the nupkg (It's just a zip), you'll notice there's install scripts and tools and helpers and more.
Hitesh
@TechMinder
May 16 2017 18:30
Thanks @RichiCoder1 , now I got the answer. I will follow the steps defined on the page.
Richard Simpson
@RichiCoder1
May 16 2017 18:30
:+1: Good luck! If you have anymore questions, feel free to ask (though preferably in chocolatey/choco ;P)
Hitesh
@TechMinder
May 16 2017 18:31
okay, my goal was to run ChocolateyGUI . so I posted all the questions here. :smile:
Richard Simpson
@RichiCoder1
May 16 2017 18:32
Absolutely, if you run into Gui specific issues post here.
Hitesh
@TechMinder
May 16 2017 18:32
Thanks @ferventcoder @RichiCoder1 for help and answering questions.
@RichiCoder1 do we have plan to make choco standalone? It worked for me with extra command to setup environment variable.
Richard Simpson
@RichiCoder1
May 16 2017 18:34
@TechMinder That's a @ferventcoder question. My understanding is no, but that could change.
Rob Reynolds
@ferventcoder
May 16 2017 18:59
@TechMinder choco is not required to be downloaded, but you do need the chocolateyInstall.ps1 (and other PowerShell scripts in the package) to get it installed properly
@TechMinder if you do it outside of that as standalone (it could work), but we won't consider that a supported scenario. So when new things would be added, you would be broken and that would be in your purview to find and fix. We prefer you do things in a supported manner. HTH
Hitesh
@TechMinder
May 16 2017 19:01
@ferventcoder I see choco in nupkg. Anyways, thanks for your help. I have already replaced my script with recommended one.
Hitesh
@TechMinder
May 16 2017 19:07
@ferventcoder just ignore my last question. I got the answer. I must have this package to get choco. then I can run command.
Rob Reynolds
@ferventcoder
May 16 2017 19:07
perfect. Was just providing insight for both you and anyone that happens across the convo. :D