@ECHO off REM set the directory in which to save SET rootdir=%APPDATA% REM enter your license information SET licenseName=%~1 SET licenseKey=%~2 SET licenseDate=%~3 REM extract the license type from the date FOR /F "tokens=1,2,3,4 delims=-" %%i in ("%licenseDate%") do ( set licenseExpiry=%%i-%%j-%%k set licenseType=%%l ) REM Set this to true/false wheather you want Mindomo check the updates automatically SET checkForUpdates=%~4 REM Which language to use for Mindomo. E.g. en, fr, de, jp, etc... SET language=%~5 REM Create the Mindomo Application directory IF NOT EXIST %rootdir%\Mindomo\ ( mkdir %rootdir%\Mindomo\ ) SET initfile=init.json CHCP 65001 @ECHO { > %rootdir%\Mindomo\%initfile% @ECHO "licenseInfo": { >> %rootdir%\Mindomo\%initfile% @ECHO "licenseExpiryDate": "%licenseExpiry%", >> %rootdir%\Mindomo\%initfile% @ECHO "licenseKey": "%licenseKey%", >> %rootdir%\Mindomo\%initfile% @ECHO "licenseName": "%licenseName%", >> %rootdir%\Mindomo\%initfile% @ECHO "licenseType": "%licenseType%" >> %rootdir%\Mindomo\%initfile% @ECHO }, >> %rootdir%\Mindomo\%initfile% @ECHO "userSettings": { >> %rootdir%\Mindomo\%initfile% @ECHO "acceptedLicense": true, >> %rootdir%\Mindomo\%initfile% @ECHO "showWelcomeScreen": false, >> %rootdir%\Mindomo\%initfile% @ECHO "checkForUpdates": %checkForUpdates% >> %rootdir%\Mindomo\%initfile% @ECHO }, >> %rootdir%\Mindomo\%initfile% @ECHO "appData": { >> %rootdir%\Mindomo\%initfile% @ECHO "selectedLanguage": "%language%" >> %rootdir%\Mindomo\%initfile% @ECHO } >> %rootdir%\Mindomo\%initfile% @ECHO } >> %rootdir%\Mindomo\%initfile%