!include "MUI.nsh" !include "Sections.nsh" !include "LogicLib.nsh" !define PRODUCT_NAME "test" !define PRODUCT_VERSION "1.0" !define PRODUCT_PUBLISHER "test, Inc." !define PRODUCT_WEB_SITE "http://www.mycompany.com" ; MUI Settings !define MUI_ABORTWARNING !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" ; Language Selection Dialog Settings !define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" !define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" ; Welcome page !insertmacro MUI_PAGE_WELCOME Page custom a1 b2 ; Instfiles page !insertmacro MUI_PAGE_INSTFILES ; Finish page !insertmacro MUI_PAGE_FINISH ; Language files !insertmacro MUI_LANGUAGE "English" ReserveFile "ab.ini" !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" OutFile "test.exe" InstallDir "$PROGRAMFILES\test" ShowInstDetails show Function .onInit !insertmacro MUI_INSTALLOPTIONS_EXTRACT "ab.ini" FunctionEnd ;================================================== ;In Droplist each selection item application Hagosipeunde how do must ? Section a RegDLL "$SYSDIR\ac3filter.ax" SectionEnd Section b UnRegDLL "$SYSDIR\ac3filter.ax" SectionEnd Section c RegDLL "$SYSDIR\matrix_mixer.ax" SectionEnd Section d UnRegDLL "$SYSDIR\matrix_mixer.ax" SectionEnd ;================================================== Section -AdditionalIcons SetOutPath $INSTDIR WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" CreateDirectory "$SMPROGRAMS\test" CreateShortCut "$SMPROGRAMS\test\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" SectionEnd Function a1 ;Do not know establishment method of here. !insertmacro MUI_INSTALLOPTIONS_WRITE "ab.ini" "Field 1" "Text" "a,b,c,d" !insertmacro MUI_INSTALLOPTIONS_DISPLAY "ab.ini" FunctionEnd Function b2 ;Do not know establishment method of here. !insertmacro MUI_INSTALLOPTIONS_READ $R0 "ab.ini" "Field 1" "a,b,c,d" FunctionEnd Section -Post SectionEnd