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 ...