Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 24 2021 12:20
    @pauby banned @danaqq2_twitter
  • Feb 01 2021 17:14
    @pauby banned @boubou
  • Nov 26 2018 18:09
    @ferventcoder banned @Mikewazovsk1
Paul Broadwith
@pauby
@/all Starting in just under an hour, the third day of The 12 Days Of Chocolatey! See the events page for more information or register here!
Paul Broadwith
@pauby
@/all Just started, the FIFTH day of The 12 Days Of Chocolatey streaming to Twitch, YouTube, Twitter and Facebook! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in 5 minutes, the SIXTH day of The 12 Days Of Chocolatey streaming to Twitch, YouTube and Facebook! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in just under an hour, the SEVENTH day of The 12 Days Of Chocolatey streaming to Twitch, YouTube and Facebook! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in an hour, the EIGHTH day of The 12 Days Of Chocolatey! Today's event requires separate registration. See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in just over an hour, the NINTH day of The 12 Days Of Chocolatey! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in 15 minutes, the TENTH day of The 12 Days Of Chocolatey! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in just under an hour, the ELEVENTH and penultimate day of The 12 Days Of Chocolatey! See the events page for more information!
Paul Broadwith
@pauby
@/all Starting in just under an hour, the TWELFTH and FINAL day of The 12 Days Of Chocolatey! See the events page for more information!
Dan Friedman
@MisinformedDNA
Any idea why the $PROFILE properties are all empty? They are not empty outside of Boxstarter.
Profile: C:\Users\Dan\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Profile: C:\Users\Dan\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Profile.CurrentUserAllHosts:
Profile.CurrentUserAllHosts:
Profile.CurrentUserCurrentHost:
Profile.CurrentUserCurrentHost:
Profile.AllUsersAllHosts:
Profile.AllUsersAllHosts:
Profile.AllUsersCurrentHost:
Profile.AllUsersCurrentHost:
Paul Broadwith
@pauby
@MisinformedDNA Can you raise an issue for that?
Dan Friedman
@MisinformedDNA
Paul Broadwith
@pauby
@MisinformedDNA Thanks.
Dan Friedman
@MisinformedDNA
@pauby If I don't have a $Profile script, refreshenv runs successfully, but doesn't update $env:path. But if I then run Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1; refreshenv, then it does. Is it expected that refreshenv doesn't do a complete refresh? Also, is there a reason why Boxstarter doesn't automatically import chocolateyProfile.psm1?
Dan Friedman
@MisinformedDNA
Also, is there a way to restart the PowerShell script? I need to upgrade a package provider, but I can't re-import the provider. I have to restart powershell somehow. I guess I can invoke a restart, but that seems excessive
Dan Friedman
@MisinformedDNA
Oh, well invoke-reboot creates an infinite loop, so that's out
Paul Broadwith
@pauby
@MisinformedDNA Boxstarter controls the PowerShell script you're using so anything you do has to be with that in mind. If you are simply calling Invoke-Reboot in the script without any tests around about it, you will get a reboot every time Boxstarter gets to that line in your script. Have a look at the function help.
Dan Friedman
@MisinformedDNA
@pauby This ended up working powershell -Command { Install-Module posh-git -Scope CurrentUser -Force -AllowPrerelease }. Thanks.
Paul Broadwith
@pauby
@MisinformedDNA Awesome. Glad you got it sorted!
Dan Friedman
@MisinformedDNA
image.png
I'm trying to run Install-ChocolateyVsixPackage in my Boxstarter package, but it always fails with "ERROR: Visual Studio is not installed or the specified version is not present". Debugging through the code, I believe it is looking for a registry entry with a property named "InstallDir", but it doesn't exist.
NOTE: VS was installed in a previous package with choco upgrade visualstudio2019enterprise
Kim J. Nordmo
@AdmiringWorm
@MisinformedDNA the Install-ChocolateyVsixPackage helper unfortunately only works for older version of Visual Studio (I think it was for VS2015 and below). You need to use a helper function in the package chocolatey-visualstudio.extension instead
Dan Friedman
@MisinformedDNA
ok thanks. I'll give it a go
Kim J. Nordmo
@AdmiringWorm
The helper you need to use in that package is called Install-VisualStudioVsixExtension
Dan Friedman
@MisinformedDNA
Worked great. Thanks!
Kim J. Nordmo
@AdmiringWorm
:+1:
Dan Friedman
@MisinformedDNA
Kim J. Nordmo
@AdmiringWorm
AFAIK, there is no way to get a versionless url.
You would probably know of the marketplace API to be able to do that, but that is something I have never looked into
Dan Friedman
@MisinformedDNA
ok cool thx
Dan Friedman
@MisinformedDNA
I couldn't find a Marketplace API, so I just threw this together:
function Install-VisualStudioVsixExtensionFromVSMarketplace($itemName) {
    $packageUrl = Get-VisualStudioMarketplaceDownloadUrl($itemName)
    Install-VisualStudioVsixExtension -Name $itemName -Url $packageUrl
}

function Get-VisualStudioMarketplaceDownloadUrl($itemName) {
    $marketplaceUrl = "https://marketplace.visualstudio.com/"
    $itemUrl = "$($marketplaceUrl)items?itemName=$itemName"
    $response = Invoke-WebRequest $itemUrl -UseBasicParsing
    $href = ($response.Links | Where-Object { $_.class -eq "install-button-container" }).href

    return "$marketplaceUrl$href"
}

Install-VisualStudioVsixExtensionFromVSMarketplace MadsKristensen.Tweaks
Paul Broadwith
@pauby
This isn't directly related to Boxstarter @MisinformedDNA - this is an issue with that particular helper.
Gary Ewan Park
@gep13
@/all Starting at 0830 UTC, we will be performing some scheduled maintenance on the Chocolatey Community Repository. We will notify again once this work is complete. You can follow the status here: https://status.chocolatey.org/issues/2021-03-10-scheduled-maintenance/
Gary Ewan Park
@gep13
@/all The scheduled maintenance has now been completed, and systems are operating normally again. Thank you for your patience.
Paul Broadwith
@pauby
@/all Maintenance has been scheduled on Monday 22 March at 8am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all The website is going down for scheduled maintenance. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all Maintenance is now complete. Thank you for your patience. https://status.chocolatey.org
Paul Broadwith
@pauby
@/all Downtime on the website and other Chocolatey services has been scheduled for Wednesday 31 March between 6am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all Scheduled updates have now been completed and the site and Chocolatey services are available again. Thank you for your patience. See the status page for more information.
Dan Friedman
@MisinformedDNA
Hi, a question for my ignorance: Why does New-BoxstarterPackage not create the nuspec in the current directory (or in -Path, if specified)? Nuspec's are generally committed to source control, right?
Manfred Wallner
@mwallner
Hi @MisinformedDNA - imo this is just the way it has been designed by Matt initially.
by moving the nuspec/package directly into the "boxstarter repository" you can easily transform an arbitrary powershell file into a package and install it right away / later on :-)
Gary Ewan Park
@gep13
@/all Downtime on the website and other Chocolatey services has been scheduled for Wednesday 21 April between 9am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Gary Ewan Park
@gep13
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We have completed the updates and the Chocolatey website and Chocolatey services are now available. See the status page for more information.
Paul Broadwith
@pauby
@/all Downtime on the website and other Chocolatey services has been scheduled for Tuesday 27 April between 9am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page https://status.chocolatey.org for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We have completed maintenance and the Chocolatey website and Chocolatey services are now available. See the status page https://status.chocolatey.org for more information.
Kiran Hegde
@kirannhegde

Hello All, I am trying to use the Chocolatey test runner's powershell cmdlet: Set-BoxstarterDeployOptions. As arguments to this cmdlet, i am providing the url to our internal Artifactory server using the DefaultNugetFeed parameter. I am trying to use the API key using the parameter : DefaultFeedAPIKey. However, i am running into the following issue
```Cannot process argument transformation on parameter 'DefaultFeedAPIKey'. Cannot convert
value "<my API key>" to type "System.Guid". Error: "Guid
should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
At line:1 char:295

  • ... tFeedAPIKey AKCp8hzDDZBqPt1TBD3uRVdfTw8NpwR9A5iySWZHdtdykFyrUgfpZDHNC ...
  • ~~~~~~~~~~~~~
    • CategoryInfo : InvalidData: (:) [Set-BoxstarterDeployOptions], ParameterBindingArgumentTransformationEx
      ception
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-BoxstarterDeployOptions```

The API key is more than 32 characters in length. So is this a limitation of the Chooclatey test runner that the API key needs to be 32 characters in length?
Any help would be very much appreciated.

Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! More details to follow. Join us at https://ch0.co/community and https://ch0.co/community-support!