Old 16th October 2012, 16:28   #1
Judibet
Junior Member
 
Join Date: Oct 2012
Posts: 1
Unhappy Big problem switching options

Hi,

I have a strange problem and I would like to resolve it, like everybody .
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) :
code:
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 .
Attached Files
File Type: zip Phrases support.zip (2.1 KB, 102 views)
File Type: zip test_choix.zip (625 Bytes, 94 views)
File Type: zip Phrases_support_test.zip (2.4 KB, 96 views)
Judibet is offline   Reply With Quote
Old 17th October 2012, 07:53   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Section names are defined by the Section command. Make sure you put your sections somewhere at the top of your script, before the code that references the ${sectionname} defines.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
swithing options problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump