Joel
20th June 2004 18:28 UTC
a Section question
Reading the Sections.nsh I found usefull the
define SECTION_OFF 0xFFFFFFFE
>
Using it, works great but appears on the left of the disabled section a "-" of the tree (I'm not using SubSections). If not use the SECTION_OFF it doesn't appear the "-" :igor:
Is this normal? How do I remove it?
Thanks
deguix
21st June 2004 02:30 UTC
To help to solve scripting problems you need to attach the script.
Joel
21st June 2004 14:43 UTC
really? :)
SetCompressor /FINAL lzma
XPStyle on
Name "Lobo Lunar"
OutFile "setup.exe"
BrandingText "Lobo Lunar"
InstallDir "$EXEDIR"
ShowInstDetails show
Page components "comp_pre" "" ""
Page instfiles "" "inst_show" ""
!define DISABLE1 0xFFFFFFFE
Section "Hola" SEC_1
DetailPrint "Instalando [Hola]..."
SectionEnd
Section "Archivo (No instalado)" SEC_2
DetailPrint "Instalando [Archivo]..."
SectionEnd
Function "comp_pre"
IfFileExists "$SYSDIR\msvcrt.dll" SiEsta Salir
SiEsta:
SectionSetFlags ${SEC_2} ${DISABLE1}
SectionSetText ${SEC_2} "Archivo (Instalado)"
Salir:
FunctionEnd
Function "inst_show"
DetailPrint "InstalaciĆ³n..."
FunctionEnd
deguix
21st June 2004 15:02 UTC
really?
Do you want my help or not?
About the problem, use:
!define DISABLE1 16
instead of the old define.