set ver=16
if exist "%ProgramFiles%\Microsoft Office\Office%ver%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office%ver%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office%ver%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office%ver%"
for /f %i in ('dir /b ..\root\Licenses%ver%\ProPlus2019R_Retail*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses%ver%\%i"
for /f %i in ('dir /b ..\root\Licenses%ver%\ProPlus2019MSDNR*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses%ver%\%i"
exit