排序
NSIS调用卸载日志进行安全卸载
1、在普通安装脚本前添加库 !include 'LogicLib.nsh' 2、; 激活安装日志记录,该日志文件将会作为卸载文件的依据(注意,本区段必须放置在所有区段之前) Section '-LogSetOn' LogSet on SectionEnd...
使用PassDialog插件实现密码安装(卸载)功能
有时,出于特殊的需求,我们要给安装或卸载程序加一个密码,只有输入了正确的密码才可以继续。 下面我们使用插件来实现安装密码: 1、设定字体及大小 ;www.yhxs3344.net SetFont 'tahoma' 8 2、...
使用WinVer.nsh头文件判断操作系统版本
AtLeastWin<version> 检测是否高于指定版本 IsWin<version> 检测指定版本(唯一限定版本) AtMostWin<version> 检测是否低于指定版本 <version> 允许的值: 95、98、ME...
延时启动软件的几个方法及探索
延时启动解决方案一:批处理方式 1、用批处理写好延时启动代码,把这个批处理命名为“延时启动轻狂志.bat”并在安装应用软件时释放到安装目录下。 @echo off if '%1' == 'h' goto begin mshta v...
WinXP简易优化核心部分源代码
Have Enjoy! ReserveFile '${NSISDIR}PluginsInstallOptions.dll' ReserveFile 'XPOP15.ini' ReserveFile 'hxlogo.bmp' Function XPOP15 !insertmacro MUI_HEADER_TEXT '$(TEXT_IO_TITLE)' '$(...
创建带有图标的url
XPStyle on OutFile 'nsisTest.exe' Name 'Test' Section 'Test' WriteINIStr '$exedirShortcut.URL' 'InternetShortcut' 'URL' 'http://www.yhxs3344.net' WriteINIStr '$exedirShortcut.URL' ...
获取网站缓存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 ...
重新启动计算机
NSIS打包软件安装完毕后选择是否重新启动计算机,实现方法一: SetRebootFlag true IfRebootFlag 0 +2 同时如果有!define MUI_FINISHPAGE_NOREBOOTSUPPORT 记得删掉; 实现方法二: MessageBox MB_Y...
NSIS源码makenssi学习笔记
// nsis版本 const char *NSIS_VERSION='v2.46'; // 将标准输出重定向到文件当中 FILE *g_output=stdout; // 指针的指针** int main(int argc, char **argv) /* #include <stdio.h> #incl...
获取本机IP
SetCompressor lzma OutFile 'Test.exe' Name '获取本机IP' Section System::Alloc 400 Pop $0 System::Call Ws2_32::WSAStartup(i0x0202,ir0)i.r1 StrCmp $1 0 0 WSAStartup_failed System::Ca...
用户37588540 3小时前0
谢谢分享!用户93985409 15小时前0
谢谢分享!!!用户49916690 20小时前0
感谢分享到彼岸 前天0
感谢分享用户23764627 前天0
谢谢分享用户23764627 前天0
谢谢分享