Uninstall Office 2013, lync 2013 and install Office 16 C2R
Hello,
I'm trying to create a deployment to Uninstall Office 2013 and Lync 2013, then to install office 2016 C2R.
These are my steps:
1. Close lync
$lync = get-process lync -ErrorAction SilentlyContinue
if ($lync) {
$lync | Stop-Process -force
}
2. Uninstall Lync
\\server\Share\Lync13\setup.exe \uninstall lync /config \\server\share\lync13\SilentUninstall.xml
3. Close office programs
$program = get-process winword,excel,powerpnt,outlook,onenote,onenotem,mspub -ErrorAction SilentlyContinue
if ($program) {
$program | Stop-Process -force
}
4. Install office 2016
\\server\Share\2016\click2run\setup.exe /configure \\server\share\2016\click2run\Office2016.xml
5. Uninstall office 2013
Script from the package library
The sequence DOES uninstall Office 2013 and installs Office 2016 just fine. BUT, it does not successfully uninstall Lync 2013. Now the weird thing is it does uninstall if I run that step by itself, so it doesn't work in the sequence. What do I have to do to get this to work? And is there a more efficient way to do this?
Thanks,
Noah
Comments
Is that the command you are running for Lync? And it actually works when run by itself standalone?
I believe it should probably be this:
I got this to work with a powershell script