@@ -844,7 +844,7 @@ echo:
844
844
845
845
if %counter% EQU 0 (
846
846
echo :
847
- echo Installed Office is not found .
847
+ echo Office ^ (2010 and later ^ ) is not installed .
848
848
goto :repairend
849
849
echo :
850
850
) else (
983
983
984
984
echo :
985
985
echo Deleting WMI repository
986
- rmdir /s /q " %windir% \System32 \wbem\repository\" %nul%
987
- if exist " %windir% \System32 \wbem\repository\" (
986
+ rmdir /s /q " %SysPath% \wbem\repository\" %nul%
987
+ if exist " %SysPath% \wbem\repository\" (
988
988
call :dk_color %Red% " [Failed]"
989
989
) else (
990
990
echo [Successful]
@@ -1029,9 +1029,9 @@ goto :at_back
1029
1029
:: https://eskonr.com/2012/01/how-to-fix-wmi-issues-automatically/
1030
1030
1031
1031
%psc% Stop-Service Winmgmt -force %nul%
1032
- cd /d %systemroot% \system32 \wbem\
1033
- regsvr32 /s %systemroot% \system32 \scecli.dll
1034
- regsvr32 /s %systemroot% \system32 \userenv.dll
1032
+ cd /d %SysPath% \wbem\
1033
+ regsvr32 /s %SysPath% \scecli.dll
1034
+ regsvr32 /s %SysPath% \userenv.dll
1035
1035
mofcomp cimwin32.mof
1036
1036
mofcomp cimwin32.mfl
1037
1037
mofcomp rsop.mof
@@ -1277,9 +1277,9 @@ function ReinstallLicenses() {
1277
1277
1278
1278
set token =
1279
1279
for %% # in (
1280
- %Systemdrive% \Windows\System32 \spp\store_test\2.0\
1281
- %Systemdrive% \Windows\System32 \spp\store\
1282
- %Systemdrive% \Windows\System32 \spp\store\2.0\
1280
+ %SysPath% \spp\store_test\2.0\
1281
+ %SysPath% \spp\store\
1282
+ %SysPath% \spp\store\2.0\
1283
1283
%Systemdrive% \Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\
1284
1284
) do (
1285
1285
0 commit comments