Don't add SharedComputerLicensing registry on Server for old Office versions
							parent
							
								
									1e3c0aaedf
								
							
						
					
					
						commit
						60dd549a49
					
				| 
						 | 
				
			
			@ -2812,7 +2812,7 @@ call :dk_color %_Yellow% "%mas%"
 | 
			
		|||
::  Add SharedComputerLicensing registry key if Retail Office C2R is installed on Windows Server
 | 
			
		||||
::  https://learn.microsoft.com/en-us/office/troubleshoot/office-suite-issues/click-to-run-office-on-terminal-server
 | 
			
		||||
 | 
			
		||||
if defined winserver if defined _config (
 | 
			
		||||
if defined winserver if defined _config if exist "%_oLPath%\Word2019VL_KMS_Client_AE*.xrm-ms" (
 | 
			
		||||
echo %_oIds% | find /i "Retail" %nul1% && (
 | 
			
		||||
set scaIsNeeded=1
 | 
			
		||||
reg add %_config% /v SharedComputerLicensing /t REG_SZ /d "1" /f %nul1%
 | 
			
		||||
| 
						 | 
				
			
			@ -4869,7 +4869,7 @@ echo "!allapps!" | find /i "!_actid!" %nul1% || call :oh_installlic
 | 
			
		|||
::  Add SharedComputerLicensing registry key if Retail Office C2R is installed on Windows Server
 | 
			
		||||
::  https://learn.microsoft.com/en-us/office/troubleshoot/office-suite-issues/click-to-run-office-on-terminal-server
 | 
			
		||||
 | 
			
		||||
if defined winserver if defined _config (
 | 
			
		||||
if defined winserver if defined _config if exist "%_oLPath%\Word2019VL_KMS_Client_AE*.xrm-ms" (
 | 
			
		||||
echo %_oIds% | find /i "Retail" %nul1% && (
 | 
			
		||||
set scaIsNeeded=1
 | 
			
		||||
reg add %_config% /v SharedComputerLicensing /t REG_SZ /d "1" /f %nul1%
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1027,7 +1027,7 @@ call :dk_color %_Yellow% "%mas%"
 | 
			
		|||
::  Add SharedComputerLicensing registry key if Retail Office C2R is installed on Windows Server
 | 
			
		||||
::  https://learn.microsoft.com/en-us/office/troubleshoot/office-suite-issues/click-to-run-office-on-terminal-server
 | 
			
		||||
 | 
			
		||||
if defined winserver if defined _config (
 | 
			
		||||
if defined winserver if defined _config if exist "%_oLPath%\Word2019VL_KMS_Client_AE*.xrm-ms" (
 | 
			
		||||
echo %_oIds% | find /i "Retail" %nul1% && (
 | 
			
		||||
set scaIsNeeded=1
 | 
			
		||||
reg add %_config% /v SharedComputerLicensing /t REG_SZ /d "1" /f %nul1%
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1638,7 +1638,7 @@ echo "!allapps!" | find /i "!_actid!" %nul1% || call :oh_installlic
 | 
			
		|||
::  Add SharedComputerLicensing registry key if Retail Office C2R is installed on Windows Server
 | 
			
		||||
::  https://learn.microsoft.com/en-us/office/troubleshoot/office-suite-issues/click-to-run-office-on-terminal-server
 | 
			
		||||
 | 
			
		||||
if defined winserver if defined _config (
 | 
			
		||||
if defined winserver if defined _config if exist "%_oLPath%\Word2019VL_KMS_Client_AE*.xrm-ms" (
 | 
			
		||||
echo %_oIds% | find /i "Retail" %nul1% && (
 | 
			
		||||
set scaIsNeeded=1
 | 
			
		||||
reg add %_config% /v SharedComputerLicensing /t REG_SZ /d "1" /f %nul1%
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue