folder = SystemPath("ScriptPath")
reg_file = "\temp\settings.reg"
reg_key = "Software\CNT"
#Run(folder \ "Load.exe")
XCopy ( folder \ "storage\settings.reg","\temp",True,True)
XCopy ( folder \ "storage\GPS Tracks and Waypoints\*.*","\My Documents\GPS Tracks and Waypoints",True,True)
RunWait ( folder \ "Params.exe", "-w -path:" & reg_file & " -reg:"&reg_key&" -read")
RunWait ( folder \ "Navitel.exe")
RunWait ( folder \ "Params.exe", "-w -path:" & reg_file & " -reg:"&reg_key&" -write")
XCopy ("\My Documents\GPS Tracks and Waypoints\*.*",folder \"storage\GPS Tracks and Waypoints",True,True)
XCopy (reg_file,folder \ "storage",True,True)
PlaySound ( folder \ "ok.wav")