有关SimpleSC插件的实例
!include MUI2.nsh !include LogicLib.nsh !include nsDialogs.nsh Name 'NetHalt' OutFile 'nhclient.exe' InstallDir $PROGRAMFILESNetHalt InstallDirRegKey HKLM 'SOFTWARENetHalt' 'Instal...
如何获取机器网卡Mac地址
Name 'GetMacAddressWithoutPlugin' OutFile 'GetMacAddressWithoutPlugin.exe' ShowInstDetails show # ------ 引入Logiclib.nsh宏来提供各种逻辑基本语句,不需要预先添加函数 ------ !include...
NSIS获取系统时间
编译时使用系统时间字符串作为常量: 1. ${__TIME__} 常量代表形如 0:18:40 的时间,是脚本编译的时间。 如:Name 'Setup ${__TIME__}',则安装程序为 Setup 后面跟当前时间的时分秒字符串。 2. 使...
在x64系统下的使用禁止注册表重定向
NSIS生成的安装程序都是32位的应用程序,所以在x64下运行时,所安装的文件会被自动转向, 如安装到C:WindowsSystem32目录下的文件会被安装到C:WindowsSysWOW64目录下。这对于有些软件是不方便的。 ...
使用System::Call调用自定义dll中的导出函数
Function un.MyRemoveData SetOutPath $INSTDIR StrCpy $1 ${NSIS_MAX_STRLEN} System::Call 'MiPlugin4NSIS::MiPIGetDataPath(t, *i) i(.r0, r1r1).r2 ? u' IntCmp $2 0 +1 skiprmdir RMDir /r...
隐藏窗口标题栏自带的按钮最大化最小化关闭
Function onGUIInit System::Call 'user32::GetWindowLong(i$hwndparent,i -16)i.r0' intop $1 0x80000 ~ intop $0 $0& $1 System::Call 'user32::SetWindowLong(i$hwndparent,i -16,i$0)i'...
自定义界面的几种用法
!define APP_NAME 'Test' name ${APP_NAME} outfile '${APP_NAME}.exe' showinstdetails show InstallDir '$PROGRAMFILES${APP_NAME}' !include 'mui.nsh' !define MUI_PAGE_CUSTOMFUNCTION_PRE...
获取网站缓存Cookie
OutFile 'InternetGetCookie.exe' Name 'InternetGetCookie' !macro InternetGetCookie URL CookieName Push $0 Push $1 Push $2 Push $3 StrCpy $0 '' StrCpy $1 '' StrCpy $2 1020 StrCpy $3 ...