Skip to content

Commit

Permalink
win installer: turn all components on in /S mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jan 5, 2021
1 parent 60d8e98 commit 28facfe
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions windows/Coq.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ SetCompressor lzma
!include "MUI2.nsh"
!include "FileAssociation.nsh"
!include "winmessages.nsh"
!include "Logiclib.nsh"
;!include "StrRep.nsh"
;!include "ReplaceInFile.nsh"

Expand Down Expand Up @@ -342,17 +343,22 @@ Function .onInit
Push $R0
; For licensing reasons CompCert and VST are off by default
; (By agreement with Xavier CompCert shall be explicitly selected)
!ifdef Sec_coq_compcert
SectionGetFlags ${Sec_coq_compcert} $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags ${Sec_coq_compcert} $R0
!endif

!ifdef Sec_coq_vst
SectionGetFlags ${Sec_coq_vst} $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags ${Sec_coq_vst} $R0
!endif
;
; Anyway in silent (batch) mode we let everything on in order to be
; able able to test the installer in CI
${IfNot} ${Silent}
!ifdef Sec_coq_compcert
SectionGetFlags ${Sec_coq_compcert} $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags ${Sec_coq_compcert} $R0
!endif

!ifdef Sec_coq_vst
SectionGetFlags ${Sec_coq_vst} $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags ${Sec_coq_vst} $R0
!endif
${EndIf}
Pop $R0
FunctionEnd

Expand Down

0 comments on commit 28facfe

Please sign in to comment.