# -----------------------------------------
# Adjust following variables to your system:
# INSTALLDIR must contain: MixSerDrv.dll , mixser_tmc.bin, activatedevice.exe
INSTALLDIR = "\Storage Card\MixSer"
# MIXSER_PORT must be a free COM port number in your system
# Set the TMC port of your navigation software to this port!
MIXSER_PORT = 6
# COM port name and baudrate of the RoyalTek TMC chip
TMC_PORT = "COM3:"
TMC_BAUD = 38400
# Navigation software executable
NAVI_SW_PATH = "\Storage Card\NAVIGON\navigon.exe"
# If DEBUG is 1 then a log file is written into INSTALLDIR every time when MixSerDrv is activated
DEBUG = 0
# -----------------------------------------
# you should know what you do from here on !!
# copy MixSerDrv driver DLL to Windows directory
Copy( INSTALLDIR & "\MixSerDrv.dll", "\Windows\MixSerDrv.dll", TRUE )
# write settings for MixSerDrv to registry
RegWriteString( "HKLM", "\Drivers\MixSer", "FriendlyName", "MixSerDrv" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Dll", "MixSerDrv.dll" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Prefix", "COM" )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "Index", MIXSER_PORT )
RegWriteString( "HKLM", "\Drivers\MixSer", "InstallPath", INSTALLDIR )
RegWriteString( "HKLM", "\Drivers\MixSer", "TmcPortName", TMC_PORT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcBaudRate", TMC_BAUD )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "DebugMode", DEBUG )
# activate the new COM port
RunWait ( INSTALLDIR & "\activatedevice.exe", "\Drivers\MixSer" )
# start the navigation software
Run ( NAVI_SW_PATH )
# wait for Navigation software to start up until the STVO disclaimer is shown
Sleep( 30000 )
# press the "OK" button of Navigon STVO disclaimer on a 800x480 screen
MouseClick( 610, 430 )