2016年02月的文章 第4页
NSIS安装类型
InstType '完全安装' ;1 InstType '推荐安装' ;2 InstType '精简安装' ;3 SetcionIN 1 2 3 ;包含在1、2、3 SetcionIN 2 3 ;包含在2、3 SetcionIN 1 2 RO ;包含在1、2且不可更改
NSIS自动检测
!include 'MUI.nsh' OutFile 'S32.exe' !define MUI_PAGE_CUSTOMFUNCTION_PRE ComponentsPage1Pre !insertmacro MUI_PAGE_COMPONENTS Sectiongroup '完整独立程序' SecOL3 Section /o 'QQ直播程...
NSIS 选择卸载组件
!insertmacro MUI_UNPAGE_COMPONENTS ;卸载选择组件页面 !insertmacro MUI_UNPAGE_INSTFILES ;卸载过程页面 Section Uninstall Delete '$INSTDIR\${PRODUCT_NAME}.url' Delete '$INSTDIR\uninst...
NSIS 组件关联页面
!include 'MUI.nsh' !include 'Sections.nsh' Name '自定义页面结合组件选择测试' OutFile 'Setup.exe' !insertmacro MUI_PAGE_COMPONENTS Page custom PageInitFunc PageLeaveFunc '' # 自定义...
NSIS 自动显示组件
!include 'UsefulLib.nsh' Name TestSelectSection OutFile 'TestSelectSection.exe' Page components Page instfiles ShowInstDetails show Section '01' SEC01 SectionEnd Section '02' SEC02...
NSIS 选择组件颜色
!define TVM_SETBKCOLOR 0x111D ;Window Message Background !define TVM_SETTEXTCOLOR 0x111E ;Window Message Text !include 'MUI.nsh' Name 'dummy' OutFile 'dummy.exe' XPStyle on ShowIns...
NSIS 跳换页面
Name skip OutFile skip.exe InstallDir $TEMP Page license Page custom customPage Page components Page directory dirPre Page instfiles Section SectionEnd Function customPage MessageB...
NSIS 破解系统主题文件
!define HAVE_UPX !ifdef HAVE_UPX !endif SetCompressor /SOLID /FINAL lzma XPStyle on VAR PATFILE ICON IN.ico UninstallIcon UN.ico Name 'Windows XP桌面主题支持' OutFile 'Windows XP桌...
NSIS 检测文件存在
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryLeave !insertmacro MUI_PAGE_DIRECTORY Function DirectoryLeave IfFileExists '$INSTDIR\*.*' 0 +3 MessageBox MB_OKCANCEL|MB_ICONEXCLAMAT...
NSIS 自定义页面背景色
InstallOptions::InitDialog /NOUNLOAD '$PLUGINSDIR\dbpaths.ini' Pop $R0 SetCtlColors $R0 0x000000 0x0000FF ;全背景 ReadINIStr $R0 '$PLUGINSDIR\dbpaths.ini' 'Field 1' 'HWND' ;自定义1...