Closed teknowledgist closed 6 years ago
Thank you for the comment, I really appreciate your feedback.
1) Update management is in plans and it being tested. I would like to avoid automatic update by detection method because it doesn't give enough control on update process. Instead of that I prefer to run choco upgrade all
and deploy it to multiple collections (testing, staging, prod, x% of computers a day, etc.). That should allow to test updates and block in case of issues.
2) That sounds interesting and I can see some benefits of keeping local repository. However, now the priority is getting basic functionality in SCCM console extension because I believe that having easy GUI will make project more accessible for bigger audience.
Good day,followed Your manual (I have SCCM 1702 on Server 2016) ,but getting following error while trying to add apps - WARNING: The specified file is not a valid image file. (please find screenshot attached) Any advice,please?
Hey, do you have chocolatey.ico in the directory with scripts? It looks that the file is missing in c:\Users\Administrator.VIAMONSTRA\Desktop\sokolade\
Please let me know if missing file is a source of the problem. I don't know should I put extra checking if file exists or add troubleshooting messages to find where is the issue.
Thank You for fast feedback,really apreciate that! Yes,.ico file is presented,also redownloaded it,but,what is interesting,when trying to open that .ico file with IrfanView,Irfan
throws up Warning message,that it is PNG file with wrong extention.
After saving it as .ico file,situation didnt changed,the same warning message abou wrong image file and result in powershell..
Also renamed other random .ico files to chocolately.ico and put them in folder with scripts,it didnt worked neither.. (do original chocolately.ico holds some specific info or its just an image? )
May be You can recheck *.ico file ,which is uploaded to github,please? Or give some suggestions,where to look for logs to get more precise picture about whats going on..
Additional info : Seems it is *.ico file problem....
I added -IconsDir after chochourl with path to shared folder witch contains .ico file ( in this case i tooked randomly chosen *.ico file ( originally citrix-receiver icon ) renamed it to chocolately.ico
Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/GoogleChrome" -IconsDir '\cm01\New folder'
Everything worked as it should be by Your manual..
Put "working" *.ico file in directory with scripts and run script with no path to icons dir SCCMChocoApplication -chocourl "https://chocolatey.org/packages/GoogleChrome" -everything is working fine.
After that I deleted 'working' ico file and replaced with downloaded one from github .. And get the following (please see screenshot)
As far as I understand situation, 'working' *.ico file is beeing copied to App data\Local\Temp\2\ and is replacing originally one chocolately.ico in case,if original one is beeing missed or broken?
Situation is kinda tricky for making edessisions,because:
Only difference between desktop folder and shared was ,taht shared had rights for everyone. (what permissions for witch users shoud be on folder,where script files and *.ico files are located???)
On other hand- I tested renamed Citrix ico file from Desktop folder ,as I menationed before,and with no result,it started working only after I moved it to shared location..
Hope,any provided information by me will be helpful for other dudes with same situation :)
First of all thank you for deep testing and extensive feedback. I'm trying to reproduce the issue and I'm not able to do that :( I've set up brand new testing environment (Windows 2016 + SCCM 1702) and it works fine.
I downloaded the icon as a part of full repo ZIP file (https://github.com/kubasiatkowski/SCCMChoco/archive/master.zip) and as a single file (https://github.com/kubasiatkowski/SCCMChoco/blob/master/PowerShellModule/chocolatey.ico?raw=true) and both are ok.
Maybe you have to unblock the file or it was broken by AV or proxy when downloading?
Can you try to unblock the file and open the icon in VS Code?
First run in my lab (adding Chocolatey package):
Adding application with default icon:
Adding application with custom icon:
Firstly,thank You for Your great job with sccm integration module and sharing it and Your knowledge with others and giving my feedback is must have and less I can do :)
Downloaded full zip file,and get following in Visual Studio Code (please find screenshots attached)
Matter fact-while trying to download with FF browser from https://raw.githubusercontent.com/kubasiatkowski/SCCMChoco/master/PowerShellModule/chocolatey.ico ,FF recognises it as PNG file.
Also,when opening ico file from zip package with Notepad ++,ico file holds PNG header.
Must addmit,that I have no AV on or proxy connection that can corrupt file + I tried 2 ways- downloading straight to server and downlaoding to my PC (different subnet,AV (Kaspersky) on ,WIn 10 1703) and copieing to server-the same results in both cases.
At least we have a workaround what to do and make it working :)
I updated new ico file. Could you please test it?
Good day,sorry for late answer-I tested new ico file,works fine (as You can see from screenshot ) ,thank You :) Please,explain,what was the issue??
P.S. Question out of topic- there is no difference pshell scripts are been runned from PS console in SCCM console or MS server's powershell (which is connected to SCCM',as it is in my situation ) ??
It's also a mistery for me why the file worked for me and not for you :-/ To be honest I have no idea why one SCCM accepted PNG and another only ICO.
p.s. TL/DR: No, there is no difference. If you manage your SCCM running console at the server then you should stop doing it.
You can run the script for any computer with SCCM console which is connected to your environment. It is advised to run it from your management workstation because you should avoid logging on interactively to production servers. Furthermore, my script adds Chocolatey as a trusted repository on a computer you run the script. You have to answer yourself if you want to do it on a server.
I'm closing this comment. Please rise another issue if you have more questions.
@kubasiatkowski I like it! Certainly a nice start.
Two things to think about:
I believe this is already a feature of the licensed versions of Chocolatey, but nothing really prevents someone from doing this on their own. If I somehow figure out how to have 27 hours in a day, this is one thing I'd like to work on. My inspiration is the install script parsing that the "au" package by majkinetor does.
In any case, Chocolatey combined with SCCM is super cool! Anything that makes it easier is welcome.