############################################### # Restauration MN4 / MN5 sur PNA # # Version : 0.1 par Xania # ############################################### Set DirMN4, "\Storage Card\mnav4\" Set DirMN5, "\Storage Card\mnav\" Choice "Mobile Navigator", "Version ŕ restaurer :","Mobile Navigator 4","Mobile Navigator 5" Case 1 Set VersionMN,4 Case 2 Set VersionMN,5 Case 0 Message "Cancel" Exit EndChoice IF { %VersionMN% = 4 } IF fileExists {%DirMN4% & "mnavdce.exe"} GetVersion {%DirMN4% & "mnavdce.exe"} , Version IF { %Version% = "1.0.0.1" } IF Question "Etes-vous sűr ?","Restauration de MN 4" DelTree="\mnav\*.*" mkdir \mnav xcopy {%DirMN4%&"*"},"\mnav" mkdir \mnav\ConfigFiles xcopy {%DirMN4%&"ConfigFiles\*"},"\mnav\ConfigFiles" mkdir \mnav\ConfigFiles\HiWayImages xcopy {%DirMN4%&"ConfigFiles\HiWayImages\*"},"\mnav\ConfigFiles\HiWayImages" mkdir \mnav\LayoutLandscape xcopy {%DirMN4%&"LayoutLandscape\*"},"\mnav\LayoutLandscape" mkdir \mnav\Skins mkdir \mnav\Skins\BlueRed mkdir \mnav\Skins\Green mkdir \mnav\Skins\Orange mkdir \mnav\Skins\Red mkdir \mnav\Skins\Standard xcopy {%DirMN4%&"Skins\BlueRed\*"},"\mnav\Skins\BlueRed" xcopy {%DirMN4%&"Skins\Green\*"},"\mnav\Skins\Green" xcopy {%DirMN4%&"Skins\Orange\*"},"\mnav\Skins\Orange" xcopy {%DirMN4%&"Skins\Red\*"},"\mnav\Skins\Red" xcopy {%DirMN4%&"Skins\Standard\*"},"\mnav\Skins\Standard" mkdir \mnav\sound xcopy {%DirMN4%&"sound\*"},"\mnav\sound" Message "Traitement terminé", "Restauration de MN 4" ENDIF ELSE Message {"Mauvaise version de Mobile Navigator :""" & %Version% & """"} ENDIF ELSE Message {"Mobile Navigator 4 pas trouvé !"} ENDIF ELSE IF fileExists {%DirMN5% & "mnavdce.exe"} GetVersion {%DirMN5% & "mnavdce.exe"} , Version IF { %Version% = "5.1.0.0" } IF Question "Etes-vous sűr ?","Restauration de MN 5" DelTree="\mnav\*.*" mkdir \mnav xcopy {%DirMN5%&"*"},"\mnav" mkdir \mnav\ConfigFiles xcopy {%DirMN5%&"ConfigFiles\*"},"\mnav\ConfigFiles" mkdir \mnav\ConfigFiles\HiWayImages xcopy {%DirMN5%&"ConfigFiles\HiWayImages\*"},"\mnav\ConfigFiles\HiWayImages" mkdir \mnav\LayoutLandscape xcopy {%DirMN5%&"LayoutLandscape\*"},"\mnav\LayoutLandscape" mkdir \mnav\POI mkdir \mnav\POI\leroutard xcopy {%DirMN5%&"POI\leroutard\*"},"\mnav\POI\leroutard" mkdir \mnav\Signs xcopy {%DirMN5%&"Signs\*"},"\mnav\Signs" mkdir \mnav\Skins mkdir \mnav\Skins\MN5 mkdir \mnav\Skins\XANIA xcopy {%DirMN5%&"Skins\MN5\*"},"\mnav\Skins\MN5" xcopy {%DirMN5%&"Skins\XANIA\*"},"\mnav\Skins\XANIA" mkdir \mnav\sound xcopy {%DirMN5%&"sound\*"},"\mnav\sound" mkdir \mnav\tmc xcopy {%DirMN5%&"tmc\*"},"\mnav\tmc" mkdir \mnav\tmc\Signs xcopy {%DirMN5%&"tmc\Signs\*"},"\mnav\tmc\Signs" Message "Traitement terminé","Restauration de MN 5" ENDIF ELSE Message {"Mauvaise version de Mobile Navigator :""" & %Version% & """"} ENDIF ELSE Message {"Mobile Navigator 5 pas trouvé !"} ENDIF ENDIF