Bonjour je souhaitais savoir comment faire pour griser une section en fonction des sections sélectionnée.
exemple :
Section "Appli1" SEC01
File "D:\Install\ressources\${EXE_app1}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli2" SEC02
File "D:\Install\ressources\${EXE_app2}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli3" SEC03
File "D:\Install\ressources\${EXE_app3}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Si la case de l'app1 est coché je souhaite que le choix app3 soit de-coché par default et griser et inversement si app3 cocher app1 grisé
Pouvez vous me venir en aide.
Merci
Liste choix NSIS
7 posts
sorry but English is the forum language
if you can't do that --> http://forums.winamp.com/forumdisplay.php?f=19
if you can't do that --> http://forums.winamp.com/forumdisplay.php?f=19
I don't see any calls to SetOutPath $InstDir.
List choice NSIS2
Hello I wished to know how to intoxicate(tint) a section according to sections selected player.
Example:
Section "Appli1" SEC01
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app1}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli2" SEC02
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app2}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli3" SEC03
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app3}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
If the compartment of him(her,it) app1 is marked I wish that the choice app3 is shot by default and to intoxicate(tint) and conversely if app3 to mark app1 intoxicated(tinted)
Can you help me.
Thank you
Hello I wished to know how to intoxicate(tint) a section according to sections selected player.
Example:
Section "Appli1" SEC01
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app1}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli2" SEC02
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app2}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli3" SEC03
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app3}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
If the compartment of him(her,it) app1 is marked I wish that the choice app3 is shot by default and to intoxicate(tint) and conversely if app3 to mark app1 intoxicated(tinted)
Can you help me.
Thank you
i think you need this:Originally Posted by Ptitus37 View PostHello I wished to know how to intoxicate(tint) a section according to sections selected player.
Example:
Section "Appli1" SEC01
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app1}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli2" SEC02
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app2}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
Section "Appli3" SEC03
SetOutPath "$INSTDIR"
File "D:\Install\ressources\${EXE_app3}"
ExecWait '"$INSTDIR\${EXE_app1}"'
SectionEnd
If the compartment of him(her,it) app1 is marked I wish that the choice app3 is shot by default and to intoxicate(tint) and conversely if app3 to mark app1 intoxicated(tinted)
Can you help me.
Thank you
;--------------------
XPStyle on
SetDateSave on
AllowSkipFiles on
SetOverwrite on
ShowInstDetails nevershow
ShowUninstDetails nevershow
;--------------------
;--------------------
!include "Sections.nsh"
!include "MUI.nsh"
!include "X64.nsh"
;--------------------
;--------------------
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_Directory
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_finish
!insertmacro MUI_LANGUAGE English
;--------------------
Section "Appli1" SEC01
SetOutPath "$INSTDIR"
File "D:\1.exe"
ExecWait "$INSTDIR\1.exe"
SectionEnd
Section "Appli2" SEC02
SetOutPath "$INSTDIR"
File "D:\2.exe"
ExecWait "$INSTDIR\2.exe"
SectionEnd
Section "Appli3" SEC03
SetOutPath "$INSTDIR"
File "D:\3.exe"
ExecWait "$INSTDIR\3.exe"
SectionEnd
Function .onInit
Push $0
;--------------
StrCpy $1 ${SEC01}
SectionGetFlags ${SEC01} $0
IntOp $0 $0 | ${SECTION_ON}
SectionSetFlags ${SEC01} $0
;--------------
SectionGetFlags ${SEC02} $0
IntOp $0 $0 & ${SECTION_OFF}
SectionSetFlags ${SEC02} $0
;--------------
SectionGetFlags ${SEC03} $0
IntOp $0 $0 & ${SECTION_OFF}
SectionSetFlags ${SEC03} $0
;--------------
Pop $0
FunctionEnd
http://nsis.sourceforge.net/Examples/one-section.nsi if I understand you correctly. If not, use the helper macros from Sections.nsh in .onSelChange to turn whichever sections you want on and off.
