Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 09 14:39
    cybercatgurrl commented #617
  • Aug 01 08:39
    pascalberger commented #692
  • Aug 01 07:56
    gep13 commented #692
  • Aug 01 07:34

    mwallner on develop

    (build) Disable documentation o… (compare)

  • Aug 01 07:34
    mwallner closed #692
  • Aug 01 07:33

    mwallner on develop

    (doc) Fix typo (#691) (compare)

  • Aug 01 07:33
    mwallner closed #691
  • Jul 31 05:46
    AdmiringWorm commented #637
  • Jul 30 21:36
    pascalberger opened #692
  • Jul 30 21:32
    pascalberger opened #691
  • Jul 30 19:41
    mwallner commented #637
  • Jul 28 13:02
    pherwanikar commented #12
  • Jul 11 07:43
    mtnielsen commented #511
  • Jul 11 07:43
    mtnielsen commented #511
  • Jul 08 10:35
    gep13 milestoned #690
  • Jul 08 10:35
    gep13 labeled #690
  • Jul 08 10:13
    pascalberger commented #690
  • Jul 08 10:13
    pascalberger commented #690
  • Jul 08 09:31

    gep13 on develop

    (maint) Fix StyleCop error (compare)

  • Jul 08 09:00

    gep13 on develop

    (maint) Fix name of configurati… (compare)

Rob Reynolds
@ferventcoder
Now you understand what I'm saying. If you keep the same Lets.GetChocolatey and reuse it after calling Run or List, it is a bug
Without resetting the config. But beware, there is still some issue here as it doesn't appear this fixed the problem yet
Richard Simpson
@RichiCoder1
We do a fresh Lets.GetChocolatey() for every call, so it's persisting the config between those?
Rob Reynolds
@ferventcoder
No, it should not be
that's what I'm investigating
Richard Simpson
@RichiCoder1
Cool, I think we're on the same page now haha
Good luck! Let me know if you have any further questions.
I'm also available on Skype/Other if necessary
Rob Reynolds
@ferventcoder
So low down on Licensed code - it changes from ChocolateyConfiguration to LicensedChocolateyConfiguration (a subclass of ChocolateyConfiguration), then it sets that on the container. For Licensed code to run, it needs a valid license and the configuration to be an instance of LicensedChocolateyConfiguration
So I switched it to use the container to get the Configuration, which should pull back the right one. I was thinking there may be some side effects to this, so I'm trying to go through and fix those items.
Rob Reynolds
@ferventcoder
@RichiCoder1 @gep13 why is the subprocess set up as anycpu prefer32bit and the main process is simply x86?
Richard Simpson
@RichiCoder1
@ferventcoder I don't know why the subprocess is prefer anything, but the main process has to be explictly x86 or x64 because of it's dependency on Cef.
Rob Reynolds
@ferventcoder
I see
Hitesh
@TechMinder
I need some guidance or help to install Chocolatey and ChocolateyGUI with batch file. so the user run the batch file as an administrator and it installs Chocolatey, ChocolateyGUI and then add source which appears in ChocolateyGUI's sources. So far it kinds or work but ChoolateyGUI needs to be run as an administrator for the first time otherwise it throws an autofac exception. Also, source added through batch(command line) doesn't show up until chocolateyGUI is run under administrator account. Am I doing correct or is there any other better way of doing the same?
@RichiCoder1 @gep13 @ferventcoder Do you guys know why it doesn't prompt for administrator rights?
Rob Reynolds
@ferventcoder
@TechMinder install the prerelease
See the instructions on where to source it from in the github readme. HTH
Hitesh
@TechMinder
@ferventcoder I am using prerelease version.
Richard Simpson
@RichiCoder1
@TechMinder What's the AutoFac exception you're seeing? That's quite peculiar.
Hitesh
@TechMinder
I will send the screenshot shortly.
Richard Simpson
@RichiCoder1
:+1:. And the log file too if you can. Should be under %UserProfile%/AppData/Local/ChocolateyGui/Logs or something like that
@RichiCoder1 I don't see any log files generated under user's Appdata folder.
Richard Simpson
@RichiCoder1
Hmm. That def looks like a choco issue. @ferventcoder Does choco have first-start code?
Hitesh
@TechMinder
@RichiCoder1 It should prompt for administrator permission if it requires an administrator rights.
Richard Simpson
@RichiCoder1
The thing is, that call shouldn't. The fact that it does it bizzare.
Hitesh
@TechMinder
@RichiCoder1 @ferventcoder here is the example https://msdn.microsoft.com/en-us/library/bb756929.aspx
Richard Simpson
@RichiCoder1
@TechMinder Haha, you definitely don't need to tell me about proper evelation procedures. We have a whole subprocess just to deal with admin elevation issues ;P
Hitesh
@TechMinder
@RichiCoder1 :) I know you are guys know already, but I shared to clear my problem about the permission.
Rob Reynolds
@ferventcoder
@RichiCoder1 @TechMinder "Access to the path 'C:\Program Files (x86)\ChocolateyGUI\redirects\choco.exe' is denied" looks like a choco issue?
@TechMinder in PowerShell, what does the following return? $env:ChocolateyInstall
Hitesh
@TechMinder
@ferventcoder let me run this command
Rob Reynolds
@ferventcoder
@RichiCoder1 so choco will extract resources on first run, but they are already likely to exist at C:\ProgramData\chocolatey
if it is attempting to extract them elsewhere, you are using a debug-built version of chocolatey lib or that environment variable is not available
Hitesh
@TechMinder

here is my script in batch file ```
SET installerPath=\<network-location>\Packages

CD %UserProfile%\My Documents

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

CD %chocoDir%

COPY "\<NetworkPath>\choco\choco.exe"

choco.exe install Chocolatey

choco.exe install chocolateygui --source https://www.myget.org/F/chocolateygui/ --pre --force

choco.exe source add -n internalApps -s %installerPath%
```

It installs both chocolatey and then chocolateygui.
@ferventcoder I checked at user's machine and above batch didn't add environment variable. so '$env:ChocolateyInstall' returns nothing.
$env:ChocolateyInstall
Rob Reynolds
@ferventcoder
the batch may not have it available yet
if you ran that by cmd.exe, you should call echo %ChocolateyInstall%
Hitesh
@TechMinder
@ferventcoder I ran that command in windows powershell.
Rob Reynolds
@ferventcoder
so shells don't update until closed and reopened (for environment variables)
and sometimes explorer won't catch updates either
Hitesh
@TechMinder
@ferventcoder got it!
Rob Reynolds
@ferventcoder
if explorer hasn't noticed, you will need to reboot the machine for it to take effect
but an install of choco will set that variable
you will see it if you head into system properties and look at the variables
or into the registry where those are kept
Hitesh
@TechMinder
@ferventcoder I installed chocolateygui in separate cmd.exe(Administrator). And i got the same Autofac exception on first run. If I run ChocolateyGui as administrator then it works fine.
Rob Reynolds
@ferventcoder
it's creating files it should not