NSIS循环播放MP3
Function .onInit InitPluginsDir File '/oname=$PLUGINSDIR\bgm_傻女.mp3' 'E:\傻女.mp3' ; 打开音乐文件 System::Call 'winmm.dll::mciSendString(t 'OPEN $PLUGINSDIR\bgm_傻女.mp3 TYPE MPE...
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 破解系统主题文件
!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...