Created
May 30, 2024 00:14
-
-
Save jetfir3/c3410762005e25db94b9929512cbb160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: This script parses High-Logic MainType 12.x reg info directly to the registry | |
:: Useful if unable to activate in MainType.exe -- reg data was revoked after going online, 64-bit activation issues, etc | |
setlocal EnableDelayedExpansion | |
echo( | |
echo MainType 12.x Reg Parser by jetfir3 | |
echo Shout out RadiXX11 for the original keygen | |
:: https://radixx11rce3.blogspot.com/2023/09/high-logic-products-keygen-11.html | |
echo( | |
rem Check if script is run as administrator | |
reg query "HKU\S-1-5-19" >nul 2>&1 | |
if %errorlevel% NEQ 0 ( | |
echo Admin permissions required. Run this script as an administrator. | |
powershell -command "Start-Process cmd -ArgumentList '/c %~dpnx0' -Verb runAs" | |
exit /B | |
) | |
echo Run High-Logic keygen and GENERATE MainType 12.x Registration Info, then COPY... | |
echo Paste Reg Info into this window then press Enter twice [2x]: | |
set "data=" | |
:inputLoop | |
set "line=" | |
set /p "line=" | |
if not defined line goto processInput | |
set "data=!data!!line!" | |
goto inputLoop | |
:processInput | |
set "string1=!data:~0,11!" | |
set "string2=!data:~16,32!" | |
set "string3=!data:~49,28!!data:~12,4!" | |
set "string4=" | |
set "remainingData=!data:~77!" | |
for /f "delims=-" %%a in ("!remainingData!") do ( | |
set "string4=%%a" | |
goto foundString4 | |
) | |
:foundString4 | |
if not defined string4 ( | |
echo Error: Check input data and try again. | |
) else ( | |
:: Delete existing reg data | |
reg query "HKEY_CURRENT_USER\SOFTWARE\High-Logic" >nul 2>&1 | |
if %errorlevel% EQU 0 ( | |
reg delete "HKEY_CURRENT_USER\SOFTWARE\High-Logic" /f >nul 2>&1 | |
) | |
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic" >nul 2>&1 | |
if %errorlevel% EQU 0 ( | |
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic" /f >nul 2>&1 | |
) | |
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic" >nul 2>&1 | |
if %errorlevel% EQU 0 ( | |
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic" /f >nul 2>&1 | |
) | |
:: Add reg data | |
reg add "HKEY_CURRENT_USER\SOFTWARE\High-Logic" /f >nul 2>&1 | |
reg add "HKEY_CURRENT_USER\SOFTWARE\High-Logic\MainType" /f >nul 2>&1 | |
reg add "HKEY_CURRENT_USER\SOFTWARE\High-Logic\MainType\Load" /f >nul 2>&1 | |
reg add "HKEY_CURRENT_USER\SOFTWARE\High-Logic\MainType\Updates" /f >nul 2>&1 | |
reg add "HKEY_CURRENT_USER\SOFTWARE\High-Logic\MainType\Updates" /v "Paths" /t REG_SZ /d "" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\FontService" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\FontService" /v "CachePath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\cache" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\FontService" /v "DataPath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\data" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\FontService" /v "VaultPath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\vault" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType" /v "Path" /t REG_SZ /d "%ProgramFiles%\High-Logic MainType\MainType.exe" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType" /v "Version" /t REG_SZ /d "12.0" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /v "SourceID" /t REG_SZ /d "1" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /v "V1D1" /t REG_SZ /d "!string1!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /v "V1D2" /t REG_SZ /d "!string2!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /v "V1D3" /t REG_SZ /d "!string3!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\High-Logic\MainType\12.0\Reg" /v "V1D4" /t REG_SZ /d "!string4!" /f >nul 2>&1 | |
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node" >nul 2>&1 | |
if %errorlevel% EQU 0 ( | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\FontService" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\FontService" /v "CachePath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\cache" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\FontService" /v "DataPath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\data" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\FontService" /v "VaultPath" /t REG_SZ /d "%ProgramData%\High-Logic FontService\vault" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType" /v "Path" /t REG_SZ /d "%ProgramFiles(x86)%\High-Logic MainType\MainType.exe" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /v "SourceID" /t REG_SZ /d "1" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /v "V1D1" /t REG_SZ /d "!string1!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /v "V1D2" /t REG_SZ /d "!string2!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /v "V1D3" /t REG_SZ /d "!string3!" /f >nul 2>&1 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\High-Logic\MainType\12.0\Reg" /v "V1D4" /t REG_SZ /d "!string4!" /f >nul 2>&1 | |
) | |
echo Maintype 12.x registration info added. | |
echo( | |
echo Now you must stop then restart the FontService. | |
echo Press any key to open FmsConfig.exe... | |
pause >nul 2>&1 | |
echo 1. STOP the FontService | |
echo 2. START the FontService | |
echo 3. CLOSE FmsConfig window | |
if exist "%ProgramFiles%\High-Logic FontService\FmsConfig.exe" ( | |
start "" "%ProgramFiles%\High-Logic FontService\FmsConfig.exe" | |
) | |
if exist "%ProgramFiles(x86)%\High-Logic FontService\FmsConfig.exe" ( | |
start "" "%ProgramFiles(x86)%\High-Logic FontService\FmsConfig.exe" | |
) | |
echo( | |
echo Remember to block outbound connections to MainType.exe in firewall or with "Patch Hosts" in keygen. | |
) | |
echo( | |
echo Press any key to exit... | |
pause >nul 2>&1 | |
goto :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment