Old 25th September 2018, 15:45   #1
Ptitus37
Junior Member
 
Join Date: Sep 2018
Posts: 3
Liste choix NSIS

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
Ptitus37 is offline   Reply With Quote
Old 25th September 2018, 19:19   #2
NJK
Frisian Spamfighting Mod
 
NJK's Avatar
 
Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 14,791
sorry but English is the forum language
if you can't do that --> http://forums.winamp.com/forumdisplay.php?f=19

Each Thursday a new show on Celtica Radio with Darkwave music.
NJK is offline   Reply With Quote
Old 25th September 2018, 20:05   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
I don't see any calls to SetOutPath $InstDir.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 26th September 2018, 14:06   #4
Ptitus37
Junior Member
 
Join Date: Sep 2018
Posts: 3
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
Ptitus37 is offline   Reply With Quote
Old 26th September 2018, 14:35   #5
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 272
Quote:
Originally Posted by Ptitus37 View Post
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:
HTML Code:
;--------------------
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
r2du-soft is offline   Reply With Quote
Old 26th September 2018, 17:20   #6
Ptitus37
Junior Member
 
Join Date: Sep 2018
Posts: 3
Hello, not I have just made out a will and it does not give what I want
I wish that when one compartment is to mark the other one is inactive and conversely.

If I mark *******eutical File(Case) I would want that DMP is inactive

Ptitus37 is offline   Reply With Quote
Old 26th September 2018, 17:52   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

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