Name "Miranda SE 1.65"
# Included files
!include MUI.nsh
# Installer pages
!insertmacro MUI_PAGE_WELCOME
Page custom cp1
Section Fields
ReadINIStr $R0 "cp1.ini" "Field 5" "State"
StrCmp $R0 1 +2
!include update.nsh
ReadINIStr $R0 "cp1.ini" "Field 6" "State"
StrCmp $R0 1 +2
!include install.nsh
SectionEnd
Function .onInit
InitPluginsDir
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "cp1.ini"
FunctionEnd
Function cp1 ;FunctionName defined with Page command
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "cp1.ini"
FunctionEnd
Custom Page
Hi, I made a custom page and it works so far. My problem: At the custom page are two options. One to install and one to update. I want if one of them is marked install.nsh or update.nsh will be included. The .nsi file should only contain this lines. But i don´t become it working. Can you say me how i get it working? I hope you can understand my miserable English ^^