Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit a464428

Browse files
committed
Clean a little bit Scheme 2
1 parent 6c5545e commit a464428

1 file changed

Lines changed: 23 additions & 36 deletions

File tree

decrypt.bat

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -573,43 +573,30 @@ if %Build[1]% GEQ 10100 (
573573
exit /b
574574

575575
:GENISONAME2
576-
if not "%counter2%"=="1" (
577-
for /l %%n in (1 1 %counter2%) do (
578-
if "!Edition!"=="" (
579-
if /i !EditionID[%%n]!==Core set Edition=CORE
580-
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=SINGLELANGUAGE
581-
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=CHINA
582-
if /i !EditionID[%%n]!==Professional set Edition=PRO
583-
if /i !EditionID[%%n]!==Enterprise set Edition=ENTERPRISE
584-
if /i !EditionID[%%n]!==Core set Licensing=RET
585-
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=RET
586-
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=RET
587-
if /i !EditionID[%%n]!==Professional set Licensing=RET
588-
if /i !EditionID[%%n]!==Enterprise set Licensing=VOL
589-
) else (
590-
if /i !EditionID[%%n]!==Core set Edition=!Edition!-CORE
591-
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=!Edition!-SINGLELANGUAGE
592-
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=!Edition!-CHINA
593-
if /i !EditionID[%%n]!==Professional set Edition=!Edition!-PRO
594-
if /i !EditionID[%%n]!==Enterprise set Edition=!Edition!-ENTERPRISE
595-
if /i !EditionID[%%n]!==Core set Licensing=!Licensing!-RET
596-
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=!Licensing!-RET
597-
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=!Licensing!-RET
598-
if /i !EditionID[%%n]!==Professional set Licensing=!Licensing!-RET
599-
if /i !EditionID[%%n]!==Enterprise set Licensing=!Licensing!-VOL
600-
)
576+
for /l %%n in (1 1 %counter2%) do (
577+
if "!Edition!"=="" (
578+
if /i !EditionID[%%n]!==Core set Edition=CORE
579+
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=SINGLELANGUAGE
580+
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=CHINA
581+
if /i !EditionID[%%n]!==Professional set Edition=PRO
582+
if /i !EditionID[%%n]!==Enterprise set Edition=ENTERPRISE
583+
if /i !EditionID[%%n]!==Core set Licensing=RET
584+
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=RET
585+
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=RET
586+
if /i !EditionID[%%n]!==Professional set Licensing=RET
587+
if /i !EditionID[%%n]!==Enterprise set Licensing=VOL
588+
) else (
589+
if /i !EditionID[%%n]!==Core set Edition=!Edition!-CORE
590+
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=!Edition!-SINGLELANGUAGE
591+
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=!Edition!-CHINA
592+
if /i !EditionID[%%n]!==Professional set Edition=!Edition!-PRO
593+
if /i !EditionID[%%n]!==Enterprise set Edition=!Edition!-ENTERPRISE
594+
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==Core set Licensing=!Licensing!-RET
595+
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=!Licensing!-RET
596+
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=!Licensing!-RET
597+
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==Professional set Licensing=!Licensing!-RET
598+
echo !Licensing! | findstr>nul /C:"VOL" || if /i !EditionID[%%n]!==Enterprise set Licensing=!Licensing!-VOL
601599
)
602-
) else (
603-
if /i %EditionID[1]%==Core set Edition=CORE
604-
if /i %EditionID[1]%==CoreSingleLanguage set Edition=SINGLELANGUAGE
605-
if /i %EditionID[1]%==CoreCountrySpecific set Edition=CHINA
606-
if /i %EditionID[1]%==Professional set Edition=PRO
607-
if /i %EditionID[1]%==Enterprise set Edition=ENTERPRISE
608-
if /i !EditionID[1]!==Core set Licensing=RET
609-
if /i !EditionID[1]!==CoreSingleLanguage set Licensing=RET
610-
if /i !EditionID[1]!==CoreCountrySpecific set Licensing=RET
611-
if /i !EditionID[1]!==Professional set Licensing=RET
612-
if /i !EditionID[1]!==Enterprise set Licensing=VOL
613600
)
614601
if /i %Architecture[1]%==x86_64 set arch=x64
615602
if /i %Architecture[1]%==x86 set arch=x86

0 commit comments

Comments
 (0)