NSIS制作安装文件全攻略(二)
#========================================================================================= ; 头文件 !include 'MUI.nsh' !include 'Sections.nsh' !include 'LogicLib.nsh' #============...
NSIS 获取物理内存
!addplugindir . Name Memory OutFile Memory.exe XPStyle on InstallColors /windows ShowInstDetails show RequestExecutionLevel admin Page instfiles Section Install # 获取系统已识别的...
NSIS 重启Explorer
FindWindow $0 'Progman' 'Program Manager' System::Call User32::GetWindowThreadProcessId(ir0,*i.r0) System::Call Kernel32::OpenProcess(i0x0001,i,ir0)i.r0 System::Call Kernel32::Term...
调用SQL2000命令行执行sql脚本
;从注册表中读取SQL程序安装路径 ReadRegStr $R1 HKLM 'SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\ClientSetup' 'SQLPath' ;从注册表中读取当前计算机名 ReadRegStr $R2 HKLM 'SYSTEM\...
使用系统API做对比
Function GetDllProductVersion System::Store S Pop $3 System::Call 'VERSION::GetFileVersionInfoSize(tr3,*i)i.r4' System::Call '*(&i$4,t''r1,t''r2)i.r5' ; Set $1 and $2 to '' so ...
铠甲安全卫士安装程序源码分享
# ====================== Duilib NSIS =========================== # 2016.07.04 - Created by Linzw and yhxs3344 # 7Z打开空白 !system '>blank set/p=MSCF<nul' !packhdr temp.dat '...
从dll文件提取图标
!include nsDialogs.nsh Page Custom MyIconPage !define /IfNDef LOAD_LIBRARY_AS_DATAFILE 2 !define /IfNDef LR_DEFAULTSIZE 0x0040 !define /IfNDef SHGFI_ADDOVERLAYS 0x000000020 !define...


