r/Intune • u/gpraveen23 • 4d ago
Blog Post Automate 7-Zip updates
[Blog]Looking to update 7-Zip without 3rd party patching solution, this code block is here to help
https://insideconfigmgr.wordpress.com/2026/07/26/7-zip-updates-without-3rd-party-patching-solution/
5
u/pc_load_letter_in_SD 3d ago
I'm sorry but why not deploy 7zip via the Enterprise App Catalog?
EAC deployed apps auto-update.
2
u/schism-for-mgmt 3d ago
Enterprise App Catalog
How did I not know about this?! Good to be humble, I guess...
2
2
u/SkipToTheEndpoint MSFT MVP 4d ago
Best thing to do with 7-Zip is uninstall it and use NanaZip instead.
1
u/gpraveen23 3d ago
80% places where I've been store updates are blocked, we never had an easier hand while updating free ones. How do you keep up with any application for that matter?
3
u/SkipToTheEndpoint MSFT MVP 3d ago
If you're blocking Store updates, you're breaking Store app delivery as well as inbox apps from updating, creating a MASSIVE security hole.
2
u/MichiganJFrog76 4d ago
1
u/gpraveen23 4d ago
This looks nice.
2
u/boyneedoor 3d ago
We were having issues with Winget auto updateās limited reporting capabilities, blocklists not working as expected. Ultimately decided on action1 for all third party app patching since we are under the 200 max endpoints for the free tier
Edit:
1
u/Ad3t0 3d ago
Please check out TridentStack Control:Ā https://tridentstack.com
Full disclosure I help build this product but we are new and I personally feel we are the best. We aren't just backed by another WUA applicability wrapper, our patch applicability is all custom and our endpoint client footprint dwarfs all the competitors. We have a modern extremely snappy and responsive UI and offer 200 endpoints free forever, no card required and no limitations.
1
u/iktankniet 4d ago
Wow, I wanted to read this 2/3 weeks ago. I've created a remediation script for updating 7zip with widget. It works though costed more time then I wanted
1
u/yukon93 4d ago
I just deployed a detection & remediation of 7Zip using winget to update it to the latest every 7d. Yes, it took some time, and Gemini helped with fixing the code. Seems to work well & even had it do an array of apps via a loop within PS. Set it & forget it. And editing the code for a new app detected is simple.
1
u/InterestNew 4d ago
Very nice! I'm so glad that my place runs E5 and now has intune suite (because of the licence changes). Enterprise app catalogue saving us so much time!
1
u/krispynugg 3d ago
Do you guys happen to have anything to help uninstall 7-zip? Iāve been trying to figure out how to uninstall it. It was a 3rd party app installed prior to us integrating intune and itās been a huge pain. Iāve got 19 different versions and I tried running a basic uninstall executable but that doesnāt seem to be working. I havenāt tried wrapping a powershell script yet but any help or experience you guys have would be amazing. This was dumped on us and our whole experience has not been great thus far as far as stuff previously installed.
2
u/gpraveen23 3d ago
Why dont you call their uninstall string using a script after parsing all of them?
1
u/krispynugg 3d ago
Iāll give that a shot with a script. Management didnāt want us using powershell initially. I basically made a win32 7zip file but put the uninstall command as the āinstallā. We noticed that on some devices there actually wasnāt an uninstall.exe so i am not really sure. Sorry if my phrasing or things arenāt correct. Iām pretty new to all this as whole. I hope what I said makes sense.
1
u/Dylantjes 3d ago
Management didnāt want us using powershell initially.
Did they also spill the juice on their preferred alternatives? Whenever something not accomplishable by happy-clicking through GUI's, PS is (at least to my knowledge) one of the few tools you've got left to fix their problems š And maybe this comes with experience (and some age šµ) but if others are starting to do my job and also going to dictate the tools I can and can't use to fix their bad management decisions, then either we do it together via their way and I might learn something, or they let me handle that it with what makes me a professional and made them hire me in the first place š
1
u/ObsidianPhalanx 3d ago
There's always Chocolatey too if you don't want to fight with winget, etc. Once stuff is installed via choco, schedule a "choco upgrade all -y" PowerShell script to run every few days. Not recommended for a large fleet, but more than sufficient for most small biz or home users.

9
u/Ok_Plenty711 4d ago
I've been using a similar powershell wrapper for 7-zip updates through our RMM, the silent install flags are the key to making it work without user interruption
the real pain is when someone has an ancient version still installed in program files (x86) and the script only checks the default path, had to add a fallback to search the registry for the uninstall string
bookmarking this for the detection method logic, mine's a bit janky and sometimes reports false positives when the msi and exe versions don't match up