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

Cannot add Chocolatey to SCCM? #3

Open
theherodied opened this issue Apr 20, 2018 · 6 comments
Open

Cannot add Chocolatey to SCCM? #3

theherodied opened this issue Apr 20, 2018 · 6 comments

Comments

@theherodied
Copy link

Hi, I'm seeing the following error when trying this. I'm running it from a Windows 10 Device connecting to SCCM 1802. Any ideas on what's wrong? Interestingly it creates the Chocalatey folder still.

PS SSS:> Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox" -CMSiteCode "SSS"
Checking if Chocolatey repository is configured: OK
Checking if SCCM module is imported: OK
Connecting to SCCM site: Already connected
Checking SCCM Folder 'SSS:\Application\Chocolatey' OK
Checking Chocolatey installer: Adding Chocolatey installer to SCCM
WARNING: The maximum size of an icon is 250px X 250px.
Failed
Cannot add Chocolatey installer to SCCM
At C:\choco\SCCMChoco.psm1:229 char:13

  •         throw "Cannot add Chocolatey installer to SCCM"
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Cannot add Chocolatey installer to SCCM:String) [], RuntimeException
    • FullyQualifiedErrorId : Cannot add Chocolatey installer to SCCM

PS SSS:>

Thanks for this. It looks promising!

@theherodied
Copy link
Author

theherodied commented Apr 20, 2018

It's the icon. I fiddled with it in GIMP and it's working now. I'll post another update when I figure out what change to the icon made it work.

I also had to add the command
-IconsDir C:\choco\

@jckbrown
Copy link

What icon were you having to adjust?

@theherodied
Copy link
Author

The chocolatey icon. It didn't like the size and the type of image if I remember correctly. I haven't had a chance to get back to it. It complained about it being a few pixels to large.

@jckbrown
Copy link

Would it be possible for you to share the corrected image? And to confirm you just placed it in the powershell module folder for it to run correctly.

Thanks

@theherodied
Copy link
Author

I used this switch on the end -IconsDir C:\choco\
All I did was place the modified image in the above directory. I ended up tweaking the image to 240x240 which probably doesn't need to be that small. Also had to change it to ico from png I believe.

The error I was getting is WARNING: The maximum size of an icon is 250px X 250px.

chocolatey.ico.zip

@jckbrown
Copy link

THANK YOU!!! Worked perfectly!!!

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

No branches or pull requests

2 participants