let’s take 7zip as example, first I tested the location on a testing PC, found that the location is C:\Program Files\7-Zip\,
@echo off set Deploysoftware=\\path\to\the\7zipmsifile if exist "%programfiles%\7-Zip\7zFM.exe" goto _End Pushd "%Deploysoftware" MSIEXEC.exe /i "7z1700-x64.msi" /q echo "installation completed" popd :_End