zoukankan      html  css  js  c++  java
  • NSIS InstallOptions

    !include "MUI.nsh"


    OutFile "test.exe"
    ShowInstDetails nevershow
    BrandingText "test it!"


    !insertmacro MUI_PAGE_COMPONENTS
    Page custom test
    !insertmacro MUI_PAGE_INSTFILES


    !insertmacro MUI_LANGUAGE "SimpChinese"


    Section "SectionA" SecA
    ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 2" State
    ReadINIStr $R1 "$PLUGINSDIR\test.ini" "Field 3" State
    MessageBox MB_OK "$R0"
    MessageBox MB_OK $R1
    ;nsExec::ExecToLog "net user $R0 $R1 /add"
    ;nsExec::ExecToLog "net localgroup Administrators $R0 /add"
    ;nsExec::ExecToLog "net accounts /maxpwage:unlimited"
    SectionEnd

    Section "SectionB" SecB
    MessageBox MB_OK "SectionB"
    SectionEnd

    Function .Oninit
    InitPluginsDir
    File /oname=$PLUGINSDIR\test.ini "test.ini"
    FunctionEnd


    Function test
    InstallOptions::initDialog /NOUNLOAD "$PLUGINSDIR\test.ini"
    !insertmacro MUI_HEADER_TEXT "test" "todo"
    InstallOptions::show
    FunctionEnd

  • 相关阅读:
    C#中的委托和事件的使用
    C#中Attribute/特性的使用
    Eclipase + CDT
    设计模式总结
    Nginx源码编译
    Nginx自定义扩展模块
    电池的寿命
    大盗阿福
    河中跳房子
    An Easy Problem
  • 原文地址:https://www.cnblogs.com/zdxster/p/2014300.html
Copyright © 2011-2022 走看看