7-zip Silent Install Script


I’m just sharing a little script I use to install 7zip in silent mode.

pushd "\\epmfileserver.mydomain.com\share\utilities"
7z920-x64.msi /q INSTALLDIR="C:\Program Files\7-Zip"

I’m not sure if any of you have ever used pushd and popd, but they are pretty handy. The pushd will map the network share to a drive letter and automatically change to that letter. when finished running the command locally, popd will bring the session back to the original path, before the pushd was executed. I use these commands regularly, especially with my LCM import and export scripts.

I hope someone else finds this useful.




Add a Comment

Your email address will not be published. Required fields are marked *

(adsbygoogle = window.adsbygoogle || []).push({});