rem Script to create a license database for Server Enterprise Edition
rem The script also installs a Server license silently.
rem Where c:\user-choice\mfaslmf is the directory for the new database
rem Where license-key is the license key
rem Where "d:\mfserver" is where Server is installed
aslmpclocate -q
if errorlevel 1 goto ASLMFDIR-NOTSET
:ASLMFDIR-SET
echo Found the path to the license database
goto ASLMPLOCATE-OK
:ASLMFDIR-NOTSET
echo License database doesn't exist
md c:\user-choice\mfaslmf
copy d:\mfserver\prodfile c:\user-choice\mfaslmf
copy d:\mfserver\semfile c:\user-choice\mfaslmf
aslmpclocate -q "c:\user-choice\mfaslmf"
if errorlevel 0 goto ASLMPLOCATE-OK
:ASLMPLOCATE-NOTOK
echo License database cannot be created
goto END
:ASLMPLOCATE-OK
aslmpcsilent 1 NXDEVAS5 license-key
echo License database created
:END