排序
使用SectionSetFlags根据不同环境自动勾选特定区段
重点就是使用了SectionSetFlags指令,以下是NSIS 用户手册中的说明: 设置区段标记。标记为 32 位整数。第一位(低位)代表该区段当前是否选中,第二位代表该区段是否是一个区段组 (请不要修改这...
如何获取机器网卡Mac地址
Name 'GetMacAddressWithoutPlugin' OutFile 'GetMacAddressWithoutPlugin.exe' ShowInstDetails show # ------ 引入Logiclib.nsh宏来提供各种逻辑基本语句,不需要预先添加函数 ------ !include...
HelpButton是NSIS自定义帮助按钮的插件
/* HelpButton是NSIS自定义帮助按钮的插件 HelpButton支持自定义帮助按钮,通过按F1键就可以调用,HelpButton支持富文本,文本文档,网页来显示你的帮助信息. */ !AddPluginDir '../Plugins' OutFil...
自定义安装界面准确获取安装进度完美解决方案
几乎所有玩过nsis的人在制作安装进度页面时都会遇到一个比较棘手的问题,画出进度条容易,但准确掌握文件释放进度,同时再去配合进度条的进度在nsis看来几乎是个无法逾越的障碍,因为迄今为止NSIS尚...
检测并统计字符串中某个字符个数
!include 'LogicLib.nsh' OutFile '检查找字符串中c出现的次数.exe' Name 'test' Section 'test' StrCpy $0 'cabcdccccc' StrLen $1 $0 StrCpy $2 '' loop: IntOp $1 $1 - 1 StrCmp $1 '-1' end...
操作系统环境变量
!include 'StrFunc.nsh' ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME 'Setup_Wintech' !define PRODUCT_VERSION '2.0' !define PRODUCT_PUBLISHER 'Wintech Digital Systems Tec...
更改壁纸
Name '更改壁纸' OutFile '更改壁纸.exe' Caption '更改壁纸' SetCompressor /FINAL /SOLID lzma !include UsefulLib.nsh page instfiles Var HWND Section ${GetWallpaper} '$r0' ;获得当前壁...
彩色许可页面
!include 'MUI.nsh' Name 'Modern UI Test' OutFile 'WelcomeFinish.exe' InstallDir '$LOCALAPPDATAModern UI Test' !define MUI_LICENSEPAGE_CHECKBOX !define MUI_PAGE_CUSTOMFUNCTION_show ...
在卸载页面收集信息
!include nsDialogs.nsh !include LogicLib.nsh OutFile 'Test.EXE' Name 'Test' !include 'MUI2.nsh' BrandingText '永恒心锁www.yhxw3344.net' Page custom ReportPageShow ReportPageLeave !...
检查某注册表键是否存在
;定义注册表主键 !define HKEY_CLASSES_ROOT 0x80000000 !define HKEY_CURRENT_USER 0x80000001 !define HKEY_LOCAL_MACHINE 0x80000002 !define HKEY_USERS 0x80000003 OutFile OpenReg.exe XP...
用户52967582 1小时前0
谢谢分享!用户27377306 3小时前0
感谢分享!用户58695151 4小时前0
感谢分享!nbdg 4小时前0
感谢楼主感謝分享用户11233842 5小时前0
正在寻找,感谢incunz215 5小时前0
感谢分享!