Probleme recuperate var in custom pages
Hi
I want to recuperate some var in a custom pages but i can't realise it.
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
Page custom ShowCustomPageConfigurationMatricesServeur LeaveCustomPageConfigurationMatricesServeur
Function ShowCustomPageConfigurationMatricesServeur
ReserveFile "${PAGE_CUSTOM_MATRICES_SERVEUR}"
!insertmacro MUI_HEADER_TEXT "Personnalisation" ""
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "${PAGE_CUSTOM_MATRICES_SERVEUR}"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "${PAGE_CUSTOM_MATRICES_SERVEUR}"
FunctionEnd
Function LeaveCustomPageConfigurationMatricesServeur
ReadINIStr $R0 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 1" "State"
ReadINIStr $R1 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 2" "State"
ReadINIStr $R2 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 3" "State"
ReadINIStr $R4 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 4" "State"
ReadINIStr $R5 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 9" "State"
ReadINIStr $R6 "${PAGE_CUSTOM_MATRICES_SERVEUR}" "Field 12" "State"
FileOpen $0 ${NOM_FICHIER_PARAMETRAGE_XML} w
FileWrite $0 "<?xml version=$\"1.0$\" encoding=$\"ISO-8859-1$\" standalone=$\"no$\"?$\r$\n"
FileWrite $0 "<!-- standalone=no pour faire savoir à l'analyseur syntaxique xml que la dtd se trouve dans un fichier séparé-->$\r$\n"
FileWrite $0 "<!DOCTYPE ParametrageGeneral SYSTEM $\"Parametrage.dtd$\">$\r$\n"
FileWrite $0 "<ParametrageGeneral>$\r$\n$\t"
FileWrite $0 "<!--Configuration des éléments nécéssaires aux types de connexions aux bases de données-->$\r$\n$\t"
FileWrite $0 "<TypeConnexions>$\r$\n$\t"
FileWrite $0 "<ParamTypeConnexion id=$\"CONNECTION_TO_ACCESS$\">odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=</ParamTypeConnexion>$\r$\n$\t"
FileWrite $0 "</TypeConnexions>$\r$\n"
FileWrite $0 "<Connexions>$\r$\n$\t"
FileWrite $0 "<ParamConnexion id=$\"CONNECTION_TO_ACCESS_ANALYSIMMO$\">$R0</ParamConnexion>$\r$\n$\t"
FileWrite $0 "<ParamConnexion id=$\"CONNECTION_TO_MYDB$\">$R2</ParamConnexion>$\r$\n$\t"
FileWrite $0 "<ParamConnexion id=$\"CONNECTION_TO_ACCESS_DPE$\">$R1</ParamConnexion>$\r$\n$\t"
FileWrite $0 "<ParamConnexion id=$\"CONNECTION_TO_CADASTRE$\">http://www.cadastre.gouv.fr</ParamConnexion>$\r$\n"
FileWrite $0 "</Connexions>$\r$\n"
FileWrite $0 "<!--Configuration des éléments nécéssaires aux documents-->$\r$\n"
FileWrite $0 "<Generations>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"SCRIPT_VB_TO_PDF$\">$INSTDIR\${PDFCREATOR_DATA_FICHIERS_SOURCES}\Convert2Pdf.vbs</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"SCRIPT_VB_TO_PNG$\">$INSTDIR\${PDFCREATOR_DATA_FICHIERS_SOURCES}\Convert2Png.vbs</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"SCRIPT_VB_TO_TIFF$\">$INSTDIR\${PDFCREATOR_DATA_FICHIERS_SOURCES}\Convert2Tiff.vbs</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"SCRIPT_VB_TO_BMP$\">$INSTDIR\${PDFCREATOR_DATA_FICHIERS_SOURCES}\Convert2Bmp.vbs</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"SCRIPT_VB_TO_JPG$\">$INSTDIR\${PDFCREATOR_DATA_FICHIERS_SOURCES}\Convert2Jpg.vbs</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"CHEMIN_DE_GENERATION$\">$R6</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"MATRICE_ERNT$\">$R2</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"MATRICE_NON_INDEMNISATION$\">$R4</ParamGeneration>$\r$\n$\t"
FileWrite $0 "<ParamGeneration id=$\"MATRICE_INDEMNISATION$\">$R5</ParamGeneration>$\r$\n"
FileWrite $0 "<Versions>$\r$\n$\t"
FileWrite $0 " <ParamVersion id=$\"VERSION_FICHIER_XML_PARAMETRAGE$\">2.0.3</ParamVersion>$\r$\n$\t"
FileWrite $0 "<!--<ParamVersion id=$\"VERSION_LOGICIEL$\">2.0.0</ParamVersion>-->$\r$\n$\t"
FileWrite $0 "<ParamVersion id=$\"VERSION_SERVEUR_ERNT$\">3.0.0</ParamVersion>$\r$\n"
FileWrite $0 "</Versions>$\r$\n"
FileClose $0
FunctionEnd
i write an xml file but whitout any var.
But if i write manually the state in the .ini file, the xml file output contain the variable.
Where is my error?