Big problem switching options
Hi,
I have a strange problem and I would like to resolve it, like everybody :rolleyes:.
I writed the NSIS script in Phrases support.zip.
I would like the same result as Phrases support.nsi but without possibility to chosse more than one caption.
The problem is when I would like to use the script in test_choix.zip, my script don't work and I've some messages like that (you can see in phrases_support_test.nsi) :
alerte: variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:266)
StrCpy $1 "${sec_defaut}" () ()
alerte: variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:267)
SectionGetFlags: ${sec_defaut}->$0
IntOp: $0=$0|1
alerte: variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:269)
SectionSetFlags: ${sec_defaut}->$0
alerte: variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:271)
SectionGetFlags: ${sec_prefs}->$0
IntOp: $0=$0&0xFFFFFFFE
alerte: variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:273)
SectionSetFlags: ${sec_prefs}->$0
alerte: variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:275)
SectionGetFlags: ${sec_prefsplus}->$0
IntOp: $0=$0&0xFFFFFFFE
alerte: variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:277)
SectionSetFlags: ${sec_prefsplus}->$0
Pop: $0
FunctionEnd
Fonction: ".onSelChange"
Push: $0
SectionGetFlags: $1->$0
IntOp: $0=$0&0xFFFFFFFE
SectionSetFlags: $1->$0
Push: $2
StrCpy $2 "$1" () ()
alerte: variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:295)
SectionGetFlags: ${sec_defaut}->$0
IntOp: $0=$0&1
IntCmp $0:1 equal=0, < +2, > +2
alerte: variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:298)
StrCpy $1 "${sec_defaut}" () ()
alerte: variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:299)
SectionGetFlags: ${sec_prefs}->$0
IntOp: $0=$0&1
IntCmp $0:1 equal=0, < +2, > +2
alerte: variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:302)
StrCpy $1 "${sec_prefs}" () ()
alerte: variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:303)
SectionGetFlags: ${sec_prefsplus}->$0
IntOp: $0=$0&1
IntCmp $0:1 equal=0, < +2, > +2
alerte: variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:306)
StrCpy $1 "${sec_prefsplus}" () ()
StrCmp "$2" "$1" egal=0, nonegal=+3
SectionGetFlags: $1->$0
IntOp: $0=$0|1
SectionSetFlags: $1->$0
Pop: $2
Pop: $0
FunctionEnd
Traitement 1 fichier, ecriture sortie:
Ajout des fonction d'initialisation des plug-ins... Fait!
Traitement des pages... Fait!
Suppression des ressources inutilisees... Fait!
Generation des tables de langue... Fait!
Generation du desinstallateur... Fait!
Sortie: "U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases support.exe"
Install: 5 pages (320 octets), 4 sections (4192 octets), 185 instructions (5180 octets), 152 chaines (3709 octets), 1 table de langue (334 octets).
Desinstallation: 3 pages (192 octets),
1 section (1048 octets), 78 instructions (2184 octets), 105 chaines (1977 octets), 1 table de langue (254 octets).
Utilise la compression zlib.
Taille Entete EXE: 62976 / 36352 octets
Code Installation: 3234 / 14111 octets
Donnees Installation: 12452 / 50692 octets
Code+donnees Desinstallation: 17339 / 30436 octets
CRC (0x1EE2E545): 4 / 4 octets
Taille Totale: 96005 / 131595 bytes (72.9%)
13 alertes:
variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:266)
variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:267)
variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:269)
variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:271)
variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:273)
variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:275)
variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:277)
variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:295)
variable/constante "{sec_defaut}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:298)
variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:299)
variable/constante "{sec_prefs}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:302)
variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:303)
variable/constante "{sec_prefsplus}" inconnue detectee, ignoree (U:\Documents and Settings\Mes documents\Développement\NSIS\Phrases_support_test.nsi:306)
But the script test_choix.nsis is OK.
I don't understant why I've this problem.
Who can help me please?
Thanks :).