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

Commit

Permalink
Clean a little bit Scheme 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed May 7, 2015
1 parent 6c5545e commit a464428
Showing 1 changed file with 23 additions and 36 deletions.
59 changes: 23 additions & 36 deletions decrypt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -573,43 +573,30 @@ if %Build[1]% GEQ 10100 (
exit /b

:GENISONAME2
if not "%counter2%"=="1" (
for /l %%n in (1 1 %counter2%) do (
if "!Edition!"=="" (
if /i !EditionID[%%n]!==Core set Edition=CORE
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=SINGLELANGUAGE
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=CHINA
if /i !EditionID[%%n]!==Professional set Edition=PRO
if /i !EditionID[%%n]!==Enterprise set Edition=ENTERPRISE
if /i !EditionID[%%n]!==Core set Licensing=RET
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=RET
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=RET
if /i !EditionID[%%n]!==Professional set Licensing=RET
if /i !EditionID[%%n]!==Enterprise set Licensing=VOL
) else (
if /i !EditionID[%%n]!==Core set Edition=!Edition!-CORE
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=!Edition!-SINGLELANGUAGE
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=!Edition!-CHINA
if /i !EditionID[%%n]!==Professional set Edition=!Edition!-PRO
if /i !EditionID[%%n]!==Enterprise set Edition=!Edition!-ENTERPRISE
if /i !EditionID[%%n]!==Core set Licensing=!Licensing!-RET
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=!Licensing!-RET
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=!Licensing!-RET
if /i !EditionID[%%n]!==Professional set Licensing=!Licensing!-RET
if /i !EditionID[%%n]!==Enterprise set Licensing=!Licensing!-VOL
)
for /l %%n in (1 1 %counter2%) do (
if "!Edition!"=="" (
if /i !EditionID[%%n]!==Core set Edition=CORE
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=SINGLELANGUAGE
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=CHINA
if /i !EditionID[%%n]!==Professional set Edition=PRO
if /i !EditionID[%%n]!==Enterprise set Edition=ENTERPRISE
if /i !EditionID[%%n]!==Core set Licensing=RET
if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=RET
if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=RET
if /i !EditionID[%%n]!==Professional set Licensing=RET
if /i !EditionID[%%n]!==Enterprise set Licensing=VOL
) else (
if /i !EditionID[%%n]!==Core set Edition=!Edition!-CORE
if /i !EditionID[%%n]!==CoreSingleLanguage set Edition=!Edition!-SINGLELANGUAGE
if /i !EditionID[%%n]!==CoreCountrySpecific set Edition=!Edition!-CHINA
if /i !EditionID[%%n]!==Professional set Edition=!Edition!-PRO
if /i !EditionID[%%n]!==Enterprise set Edition=!Edition!-ENTERPRISE
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==Core set Licensing=!Licensing!-RET
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==CoreSingleLanguage set Licensing=!Licensing!-RET
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==CoreCountrySpecific set Licensing=!Licensing!-RET
echo !Licensing! | findstr>nul /C:"RET" || if /i !EditionID[%%n]!==Professional set Licensing=!Licensing!-RET
echo !Licensing! | findstr>nul /C:"VOL" || if /i !EditionID[%%n]!==Enterprise set Licensing=!Licensing!-VOL
)
) else (
if /i %EditionID[1]%==Core set Edition=CORE
if /i %EditionID[1]%==CoreSingleLanguage set Edition=SINGLELANGUAGE
if /i %EditionID[1]%==CoreCountrySpecific set Edition=CHINA
if /i %EditionID[1]%==Professional set Edition=PRO
if /i %EditionID[1]%==Enterprise set Edition=ENTERPRISE
if /i !EditionID[1]!==Core set Licensing=RET
if /i !EditionID[1]!==CoreSingleLanguage set Licensing=RET
if /i !EditionID[1]!==CoreCountrySpecific set Licensing=RET
if /i !EditionID[1]!==Professional set Licensing=RET
if /i !EditionID[1]!==Enterprise set Licensing=VOL
)
if /i %Architecture[1]%==x86_64 set arch=x64
if /i %Architecture[1]%==x86 set arch=x86
Expand Down

0 comments on commit a464428

Please sign in to comment.